confirm_order.html
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="yes" name="apple-touch-fullscreen">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>确认订单</title>
<link rel="stylesheet" href="/static/css/common.css">
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body style="background-color: #f6f6f6">
<div class="box">
<div class="orderTop">
<img src="/static/image/car3.png">
</div>
<h1 class="goodsName">
<b>{$gdata.name}</b>
<i>1对1教练教学</i>
</h1>
<h2 class="goodsPrice">¥{$gdata.price}.00</h2>
<div class="orderInfo">
<h1 class="order_info_tab">
<b></b>
<i>学员信息</i>
</h1>
<ul class="infoList">
<li>
<b>姓名</b>
<i>{$data.user_nickname}</i>
</li>
<li>
<b>性别</b>
<i>{$data.sex|sex_name}</i>
</li>
<li>
<b>年龄</b>
<i>{$data.birthday|birthday_name}</i>
</li>
<li>
<b>身份证</b>
<i>{$data.idnumber}</i>
</li>
<li>
<b>手机号</b>
<i>{$data.mobile}</i>
</li>
</ul>
</div>
<div class="orderFooter_none"></div>
<div class="orderFooter">
<i>应付金额:<span>¥{$gdata.price}.00</span></i>
<b class="btn_buy">去付款</b>
</div>
</div>
<form action="/paycenter/wechat/index.php" id="wxpay" style="display: none" >
<input type="text" name="fe" value="{$gdata.price}">
<input type="text" name="ot" value="" id="otqq" class="oott">
<input type="text" name="sn" value="{$gdata.name}">
<input type="text" name="at" value="{$data.mobile}">
<input type="text" name="op" value="{$data.openid}">
</form>
<script type="text/javascript" src="/static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script>
$('.btn_buy').click(function(){
//step1--提交信息
$.ajax({
type:"post",
url:"{:url('portal/index/baoming_dodata')}",
data:{
gid:{$gid},
},
success:function(data){
if(data.code=='1'){
$("#otqq").attr("value",data.data);
$('#wxpay').submit();
}else{
alert(data.msg);
}
}
})
})
</script>
</body>
</html>