<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>微信扫码支付</title>
<script src="<{$__PUBLIC__}>js/jquery.min.js"></script>
<style type="text/css">
*{ font: 14px/1.5 tahoma,arial,Trebuchet MS; font-family: "Microsoft YaHei","微软雅黑",helvetica,arial,verdana,tahoma,sans-serif; color:#888888; }
.box_bar{ width:100%; padding:0 0 30px 0; margin:100px 0 0 0; position:relative; float:left;}
.box{ width:1000px; margin:0 auto;}

.conter{width:1000px; border:1px solid #ddd; float:left;}  
.lft{ width:600px; height:430px; text-align:center; line-height:120px; margin:20px 0 20px 0; float:left;} 
.pay_box{ width:260px; margin:30px 0 15px 170px; float:left;}
.pay_ewm{ width:260px; border:1px solid #ddd; float:left; }
.pay_rmk{ width:260px; border:1px solid #FB5251; background: #FB7978; float:left; }
.pay_rmk .l{ width:80px; float:left; }
.pay_rmk .l span{ padding:15px; margin:6px 10px 0 15px; float:left; }
.pay_rmk .r{ float:left; }
.pay_rmk .r p{ color:#fff; text-align:left; line-height:22px; float: left;}
.pay_rst{ width:262px; padding:10px 0 0 0; float:left; }
.pay_rst a{ text-decoration:none; font-size:12px;  } 
.rit{ width:380px; text-align:left; float: left; }
.rit img{ width:300px; }
</style> 
<div class="box_bar">
	<div class="box">
		<div class="conter"> 
			<div class="lft"> 
				<div class="pay_box"> 
					<div class="pay_ewm"><img src="index.php?m=ajax&a=qrcode&size=8&code=<{$row.code}>"/></div>
					<!--img src="index.php?m=ajax&a=qrcode&code=<?php echo $codeUrl; ?>"/><br---> 
					<div class="pay_rmk">
						<div class="l"><span><img src="public/images/wx_sao_biao.png" width="35px"></span></div>
						<div class="r"><p>请使用微信扫一扫<br>扫描二维码支付</p></div>
					</div>
					<div class="pay_rst"><a href="member.php?m=buy">订单已经支付，点击此处查看支付结果</a></div> 
				</div>  
			</div>
			<div class="rit"><img src="public/images/wx_sao.png"/></div>
		</div>
	</div>
</div>
<script type="text/javascript">
function aa(){ 
	$.getJSON("index.php?m=cart&a=check_pay_status&trade_no=<{$row.trade_no}>",function(data){ 
		if(data.error === '0'){
			alert('支付成功');
			if(data.pay_type == '1'){
				location.href="member.php?m=buy";
			}else if(data.pay_type == '2'){
				location.href="member.php?m=account";
			}else{
				location.href="member.php?m=buy";
			}
		}
	}); 
} 
setInterval("aa()",2000);
</script>
</head> 
<body>
</body>
</html>
