<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<link rel="stylesheet" href="__VUE__/css/base.css">
		<link rel="stylesheet" href="__VUE__/css/storeCenter.css">
		<link rel="stylesheet" href="__VUE__/css/weui.css">
		<link rel="stylesheet" href="__VUE__/css/weui-switch.css">
		<title>商家续费</title>
	</head>
	<body>
		<script src = "http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
		<script>
		wx.config({
		    debug: false,
		    appId: '<?php echo $signPackage["appId"];?>',
		    timestamp: '<?php echo $signPackage["timestamp"];?>',
		    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
		    signature: '<?php echo $signPackage["signature"];?>',
		    jsApiList: ['chooseWXPay']
		});

		wx.ready(function(){
		    wx.chooseWXPay({
			    timestamp: "<?php echo $parameters->timeStamp;?>", //支付签名时间戳，注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
			    nonceStr: "<?php echo $parameters->nonceStr;?>", // 支付签名随机串，不长于 32 位
			    package: "<?php echo $parameters->package;?>", // 统一支付接口返回的prepay_id参数值，提交格式如：prepay_id=***）
			    signType: "<?php echo $parameters->signType;?>", // 签名方式，默认为'SHA1'，使用新版支付需传入'MD5'
			    paySign: "<?php echo $parameters->paySign;?>", // 支付签名
			    success: function (res) {
			        // 支付成功后的回调函数
			        location.href="<?php echo U('Store/storeCenter')?>";
			    }
			});
		});		
		</script>
		<script src="__VUE__/js/jquery-2.1.4.min.js"></script>
		<script src="__VUE__/js/vue.js"></script>
		<script src="__VUE__/js/storeCenter.js"></script>
	</body>
</html>