e80df919
atao
init
|
1
2
3
4
5
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>查看账单</title>
|
6fc5291d
atao
提交代码
|
6
7
8
9
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
e80df919
atao
init
|
11
12
13
14
15
16
17
18
19
20
|
<meta name="apple-mobile-web-app-title" content="">
<meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
<link rel="apple-touch-icon-precomposed" href="favicon.ico">
<link rel="shortcut icon" href="favicon.ico">
<link rel="Bookmark" href="favicon.ico">
<link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">
<link rel="stylesheet" href="${staticHost}/css/reset.css">
<style>
|
6fc5291d
atao
提交代码
|
21
|
.all_told, .platen_number {
|
e80df919
atao
init
|
22
23
|
text-align: center;
}
|
6fc5291d
atao
提交代码
|
24
25
|
.all_told {
|
e80df919
atao
init
|
26
27
|
padding: 30px 0 10px 0;
}
|
6fc5291d
atao
提交代码
|
28
29
|
.all_told span {
|
e80df919
atao
init
|
30
31
32
|
margin-right: 5px;
font-size: 22px;
}
|
6fc5291d
atao
提交代码
|
33
34
35
|
.discount_money {
color: #fc3817;
|
e80df919
atao
init
|
36
|
}
|
6fc5291d
atao
提交代码
|
37
38
39
|
.discount {
padding: 4px 7px;
|
e80df919
atao
init
|
40
41
42
43
|
background: #fc3817;
border-radius: 2px;
position: relative;
margin-left: 10px;
|
6fc5291d
atao
提交代码
|
44
|
color: #fff;
|
e80df919
atao
init
|
45
46
|
}
|
6fc5291d
atao
提交代码
|
47
|
.discount:before {
|
e80df919
atao
init
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
position: absolute;
content: '';
width: 0;
height: 0;
left: -6px;
top: 8px;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 6px solid #fc3817;
}
</style>
</head>
<body ontouchstart="">
<header class="demos-header">
|
6fc5291d
atao
提交代码
|
66
|
<p class="all_told discount_money"><span id="orderNotPayFee">90.00</span>元</p>
|
e80df919
atao
init
|
67
68
69
70
71
|
<p class="platen_number discount_money" style="font-weight:bold;" id="orderTitle">待付费用</p>
</header>
<div class="weui-cells weui-cells_form">
<input type="hidden" id="carNumPre" value="${carNum!''}"/>
|
6fc5291d
atao
提交代码
|
72
73
|
<input type="hidden" id="parkOrderId"/>
<input type="hidden" id="payOrderId">
|
e80df919
atao
init
|
74
75
76
|
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">当前车牌</label></div>
<div class="weui-cell__bd" id="carNumber">
|
e900ab9b
atao
提交代码
|
77
|
|
e80df919
atao
init
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">停车位置</label></div>
<div class="weui-cell__bd" id="parkName">
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">进场时间</label></div>
<div class="weui-cell__bd" id="parkInTime">
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">停车时长</label></div>
<div class="weui-cell__bd" id="parkingDuration">
</div>
</div>
</div>
<div class="weui-cells weui-cells_form" id="parkOutTime">
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">总计费用</label></div>
<div class="weui-cell__bd">
¥<span id="orderTotalFee"></span>
</div>
</div>
<div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">已付费用</label></div>
<div class="weui-cell__bd">
¥<span id="orderPayedFee"></span>
</div>
</div>
<!-- <div class="weui-cell">
<div class="weui-cell__hd"><label for="" class="weui-label">优惠费用</label></div>
<div class="weui-cell__bd discount_money">
-¥<span>2.40</span><span class="discount">8折优惠</span>
</div>
</div>-->
</div>
|
e80df919
atao
init
|
122
|
<div class="pay-content-padded">
|
6fc5291d
atao
提交代码
|
123
|
<a class="weui-btn weui-btn_primary " href="javascript:" id="showTooltips">确定支付</a>
|
e80df919
atao
init
|
124
125
126
127
128
129
130
131
|
</div>
<script src="//cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/jquery-weui.min.js"></script>
<script src="${staticHost}/js/jsutil.js"></script>
<script src="${staticHost}/js/url.js"></script>
<script type="text/javascript">
|
6fc5291d
atao
提交代码
|
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
|
var func = {
/**查询待支付订单*/
initData: function () {
$('#orderNotPayFee').empty();
$('#orderTitle').empty();
$('#carNumber').empty();
$('#parkName').empty();
$('#parkInTime').empty();
$('#parkingDuration').empty();
$('#orderTotalFee').empty();
$('#orderPayedFee').empty();
var carNumPre = $('#carNumPre').val();
jsutil.defaultReq(
mUrl.queryParkOrderForNotPay,
{"carNum": carNumPre},
function (data) {
if (data != null && "1005" == data.code) {
window.location.href = mUrl.queryOrderCheckErrorView + "&carNum=" + carNumPre;
} else if (data != null && "8888" != data.code) {
$.alert("查询待支付订单失败,请重试!");
} else {
var orderVO = data.data;
$('#parkOrderId').val(orderVO.orderId);
$('#payOrderId').val(orderVO.payOrderId)
$('#orderNotPayFee').text(orderVO.orderNotPayFee);
$('#orderTitle').text(orderVO.orderTitle);
$('#carNumber').text(orderVO.carNumber);
$('#parkName').text(orderVO.parkName);
$('#parkInTime').text(orderVO.parkInTime);
$('#parkingDuration').text(orderVO.parkingDuration);
$('#orderTotalFee').text(orderVO.orderTotalFee);
$('#orderPayedFee').text(orderVO.orderPayedFee);
}
});
},
};
$(function () {
func.initData();
});
var flg = true;
$("#showTooltips").click(function () {
if (flg) {
flg = false;
$('#showTooltips').attr('class', 'weui-btn weui-btn_primary weui-btn_disabled');
var parkOrderId = $('#parkOrderId').val();
var payOrderId = $('#payOrderId').val();
if (parkOrderId.length < 1) {
$.toptip("订单Id为空", 2000, "error");
$('#showTooltips').attr('class', 'weui-btn weui-btn_primary');
flg = true;
return false;
}
var req = {
orderId: parkOrderId,
payOrderId:payOrderId
}
$.ajax({
url: mUrl.getJSPayParam,
type: 'post',
dataType: 'json',
data: req,
success: function (res) {
if (res.code == '8888') {
var payParam = res.data;
//调用微信支付
callpay(payParam);
} else {
$.toptip(res.msg, 2000, "error");
console.log('详细错误信息为:' + res.data);
}
}
});
}//if
});
//调用微信JS api 支付
function jsApiCall(payParam) {
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
payParam,
function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") {
$.alert("亲!支付成功!");
//支付成功
windows.location.href = mUrl.paySuccessView + '&payMoney=' + totleMoney;
} else {
//支付失败
$.alert("亲!支付失败!err_msg=" + res.err_msg);
//windows.location.href='${host}/pay/payFail';
}
}
);
}
function callpay(payParam) {
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', jsApiCall);
document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
}
} else {
jsApiCall(payParam);
}
}
|
e80df919
atao
init
|
246
247
248
|
</script>
</body>
</html>
|