<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>微信购买</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		<%if(request.getAttribute("msg")!=null){%>
			alert("<%=request.getAttribute("msg")%>");
	 	<%}%>
	</script>
  </head>
  
  <body>
 
    <form id="formId" action="https://mdev.zuihuibi.cn/demo/wechatBuy" method="post">
	<table align="center">
		<tr><td colspan="2" align="center"><b>订单确认</b></td></tr>
		<tr></tr>
		<tr><td>产品名称</td><td><input type="text" id="productName"  name="productName"  value = "安联随心游全家保"></td></tr>
		<tr><td>价格</td><td>   <input type="text" id="productPrice" name="productPrice" value = "0.01"></td></tr>
		<tr><td>支付方式</td><td><input type="radio" name="paymentMethod" value="NATIVE" checked="checked">微信扫码
							   <input type="radio" name="paymentMethod" value="JSAPI" >手机微信中购买
		</td></tr>

		<tr></tr>
		<tr><td colspan="2" align="center"><input type="submit" value="购买" /></td></tr>
	</table>
	</form>
  </body>
</html>