package com.iamberry.wechat.handles.wx;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 积分 跳转页面
 * 2016年4月26日
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/wechat/integralWechat")
public class IntegralWechatHandler {
	
	/**
	 * 积分记录 跳转
	 * 2016年4月26日
	 * @param req
	 * @param res
	 */
	@RequestMapping("/log")
	public void getIntegralList(HttpServletRequest req,HttpServletResponse res){
		try {
			req.getRequestDispatcher("/WEB-INF/views/wechat/jifen_log.html").forward(req,res);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 积分规则页面 跳转	
	 * /integralWechat/integralRule
	 * 2016年4月26日
	 * @author 穆再兴
	 * @param req
	 * @param res
	 */
	@RequestMapping("/integralRule")
	public void toIntegralRule(HttpServletRequest req,HttpServletResponse res){
		try {
			req.getRequestDispatcher("/WEB-INF/views/wechat/fenxiao_guize.html").forward(req,res);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	/**
	 * 微代理积分提现记录
	 * 2016年4月27日
	 * @author 欧阳明
	 */
	@RequestMapping("/withdrawLog")
	public void toAgentFXRule(HttpServletRequest req,HttpServletResponse res){
		try {
			req.getRequestDispatcher("/WEB-INF/views/wechat/tixian_log.html").forward(req,res);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 提现规则页面
	 * 2016年4月28日
	 * @author 穆再兴
	 * @param req
	 * @param res
	 */
	@RequestMapping("/withdrawRule")
	public void toWithdrawRule(HttpServletRequest req,HttpServletResponse res){
		try {
			req.getRequestDispatcher("/WEB-INF/views/wechat/tixian_guize.html").forward(req,res);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
