Commit abaeb33eaabe8f9b340f68871699e486b59c0700
1 parent
328149f7
现在线上代码
Showing
16 changed files
with
125 additions
and
29 deletions
MP_verify_RraH33H3qcFBr5f1.txt
0 → 100644
home.html
@@ -33,6 +33,7 @@ | @@ -33,6 +33,7 @@ | ||
33 | <div><span>停车时长:</span><span id="staytime"></span></div> | 33 | <div><span>停车时长:</span><span id="staytime"></span></div> |
34 | <div><span>进场时间:</span><span id="inparktime"></span></div> | 34 | <div><span>进场时间:</span><span id="inparktime"></span></div> |
35 | <div><span>停车总费用:</span><span id="due"></span></div> | 35 | <div><span>停车总费用:</span><span id="due"></span></div> |
36 | + <div id="businessFeeWrap"><span>商户优惠减免:</span><span id="businessFee"></span></div> | ||
36 | <div><span>已支付金额:</span><span id="paid"></span></div> | 37 | <div><span>已支付金额:</span><span id="paid"></span></div> |
37 | <div><span>优惠金额:</span><span id="discountFee"></span><span id="discountDesc"></span></div> | 38 | <div><span>优惠金额:</span><span id="discountFee"></span><span id="discountDesc"></span></div> |
38 | <div><span>订单编号: </span><span id="orderNum">1234567890</span> </div> | 39 | <div><span>订单编号: </span><span id="orderNum">1234567890</span> </div> |
@@ -82,10 +83,10 @@ | @@ -82,10 +83,10 @@ | ||
82 | 83 | ||
83 | 84 | ||
84 | <script src="js/jquery-3.2.1.min.js"></script> | 85 | <script src="js/jquery-3.2.1.min.js"></script> |
85 | -<script src="js/config.js?v=0.1"></script> | ||
86 | -<script src="js/common.js?v=1.11"></script> | 86 | +<script src="js/config.js?j=4.1"></script> |
87 | +<script src="js/common.js?f=3.51"></script> | ||
87 | <!--<script src="js/jweixin-1.0.0.js?v=0.1"></script>--> | 88 | <!--<script src="js/jweixin-1.0.0.js?v=0.1"></script>--> |
88 | -<script src="js/pay.js?v=1.5120"></script> | 89 | +<script src="js/pay.js?b=2.5120"></script> |
89 | </body> | 90 | </body> |
90 | 91 | ||
91 | </html> | 92 | </html> |
img/default.png
0 → 100644
2.08 KB
img/no.png
0 → 100644
19.2 KB
img/ok.png
0 → 100644
29 KB
img/zero.png
100755 → 100644
js/ajax.js
js/config.js
1 | -/* | 1 | +/* |
2 | @songcxa | 2 | @songcxa |
3 | @2018-12-14 | 3 | @2018-12-14 |
4 | @移动支付配置[配置项除ip地址外勿动] | 4 | @移动支付配置[配置项除ip地址外勿动] |
@@ -7,11 +7,11 @@ window.webAppH5 = {}; | @@ -7,11 +7,11 @@ window.webAppH5 = {}; | ||
7 | 7 | ||
8 | 8 | ||
9 | /*服务器地址*/ | 9 | /*服务器地址*/ |
10 | -var webAppRoot = "http://pay.service.renniting.cn/v1"; | 10 | + var webAppRoot = "http://pay.service.huangshiparking.com"; |
11 | //test 测试环境 | 11 | //test 测试环境 |
12 | // var webAppRoot = "http://39.98.54.240:8090"; | 12 | // var webAppRoot = "http://39.98.54.240:8090"; |
13 | //微信支付结果回调地址 | 13 | //微信支付结果回调地址 |
14 | -var webAppPayResult = "http://wxgzh.renniting.cn/wechatwuxi/DEV/Threewf/codepay/page/wxpayResult.html"; | 14 | +var webAppPayResult = "http://wxgzh.huangshiparking.com/HSwechat/PDA-Payment/wxpayResult.html"; |
15 | 15 | ||
16 | /*公共参数*/ | 16 | /*公共参数*/ |
17 | webAppH5.comParams = { | 17 | webAppH5.comParams = { |
js/list.js renamed to js/listnew.js
@@ -68,7 +68,7 @@ jsajax.defaultReq( | @@ -68,7 +68,7 @@ jsajax.defaultReq( | ||
68 | 68 | ||
69 | var data = data.data.dataList; | 69 | var data = data.data.dataList; |
70 | if(data.length==0){ | 70 | if(data.length==0){ |
71 | - $('#tip-title').text('暂无停车记录') | 71 | + $('#tip-title').text('您的停车费用为0元,无须缴费,谢谢!') |
72 | return | 72 | return |
73 | } | 73 | } |
74 | var htmls=''; | 74 | var htmls=''; |
@@ -381,6 +381,8 @@ function getOneorder(carNumber,parkCode,orderId,_paySrcType){ | @@ -381,6 +381,8 @@ function getOneorder(carNumber,parkCode,orderId,_paySrcType){ | ||
381 | var unpaid = datas.unpaid;//待支付 | 381 | var unpaid = datas.unpaid;//待支付 |
382 | var paid = datas.paid;//实付 | 382 | var paid = datas.paid;//实付 |
383 | var discountType = datas.discountType; | 383 | var discountType = datas.discountType; |
384 | + var businessUsedType = datas.businessUsedType //商户信息-是否使用商户券,1-使用,0-未使用 | ||
385 | + var businessFee = datas.businessFee //商户减扣金额 | ||
384 | 386 | ||
385 | if(datas.discountFee&&datas.discountFee!=''&&datas.discountFee!=undefined){ | 387 | if(datas.discountFee&&datas.discountFee!=''&&datas.discountFee!=undefined){ |
386 | discountFee = datas.discountFee;//已优惠 | 388 | discountFee = datas.discountFee;//已优惠 |
@@ -411,7 +413,8 @@ function getOneorder(carNumber,parkCode,orderId,_paySrcType){ | @@ -411,7 +413,8 @@ function getOneorder(carNumber,parkCode,orderId,_paySrcType){ | ||
411 | +'&appId='+datas.appId | 413 | +'&appId='+datas.appId |
412 | +'&orderId='+datas.orderId | 414 | +'&orderId='+datas.orderId |
413 | +'&_paySrcType='+_paySrcType | 415 | +'&_paySrcType='+_paySrcType |
414 | - +"&"; | 416 | + + "&businessUsedType=" + businessUsedType |
417 | + + "&businessFee=" + businessFee | ||
415 | console.log(src) | 418 | console.log(src) |
416 | window.location.assign(encodeURI(src)) | 419 | window.location.assign(encodeURI(src)) |
417 | },100); | 420 | },100); |
@@ -445,7 +448,7 @@ function getMd5sign() | @@ -445,7 +448,7 @@ function getMd5sign() | ||
445 | 448 | ||
446 | $('.outBtn').on('click',function () { | 449 | $('.outBtn').on('click',function () { |
447 | //window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/Chifeng/Threewf/stoppayment/select.html' | 450 | //window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/Chifeng/Threewf/stoppayment/select.html' |
448 | - window.location.href = 'http://wxgzh.renniting.cn/wechatwuxi/DEV/PDA-Payment/out.html' | 451 | + window.location.href = 'http://wxgzh.huangshiparking.com/HSwechat/PDA-Payment/out.html' |
449 | 452 | ||
450 | }) | 453 | }) |
451 | $('.hiddenBtn').on('click',function () { | 454 | $('.hiddenBtn').on('click',function () { |
js/pay.js
1 | -/* | 1 | +/* |
2 | @songcxa | 2 | @songcxa |
3 | @2018-12-14 | 3 | @2018-12-14 |
4 | @移动支付 | 4 | @移动支付 |
@@ -647,6 +647,8 @@ var webAppClass = { | @@ -647,6 +647,8 @@ var webAppClass = { | ||
647 | $paid = getObjectByID("paid"),//已支付金额 | 647 | $paid = getObjectByID("paid"),//已支付金额 |
648 | $discountDesc = getObjectByID("discountDesc"),//8折优惠折扣费用 | 648 | $discountDesc = getObjectByID("discountDesc"),//8折优惠折扣费用 |
649 | $discountFee = getObjectByID("discountFee");//优惠金额 | 649 | $discountFee = getObjectByID("discountFee");//优惠金额 |
650 | + $businessFeeWrap = getObjectByID("businessFeeWrap") | ||
651 | + $businessFee = getObjectByID("businessFee") | ||
650 | 652 | ||
651 | if (params != null && params != "") { | 653 | if (params != null && params != "") { |
652 | var price = keepTwoDecimalFull((params.orderFee / 100));//(params.orderFee / 100); | 654 | var price = keepTwoDecimalFull((params.orderFee / 100));//(params.orderFee / 100); |
@@ -660,6 +662,14 @@ var webAppClass = { | @@ -660,6 +662,14 @@ var webAppClass = { | ||
660 | $parkName.innerHTML = params.parkName; | 662 | $parkName.innerHTML = params.parkName; |
661 | $inparktime.innerHTML = params.inparktime; | 663 | $inparktime.innerHTML = params.inparktime; |
662 | $staytime.innerHTML = formatSeconds(params.staytime); | 664 | $staytime.innerHTML = formatSeconds(params.staytime); |
665 | + // alert(params.parkName) | ||
666 | + // alert(params.businessFee) | ||
667 | + if (params.businessUsedType == 0) { | ||
668 | + $('#businessFeeWrap').css('display', 'none') | ||
669 | + } else { | ||
670 | + var _mon = Number(params.businessFee) | ||
671 | + $businessFee.innerHTML = '¥' + ( _mon / 100).toFixed(2); | ||
672 | + } | ||
663 | 673 | ||
664 | $due.innerHTML = keepTwoDecimalFull((params.due / 100));//停车总费用 | 674 | $due.innerHTML = keepTwoDecimalFull((params.due / 100));//停车总费用 |
665 | $paid.innerHTML = keepTwoDecimalFull(params.paid / 100); | 675 | $paid.innerHTML = keepTwoDecimalFull(params.paid / 100); |
js/url.js
1 | -var mUrl = mUrl || {}; | 1 | +var mUrl = mUrl || {}; |
2 | 2 | ||
3 | 3 | ||
4 | //songcxa 15801541129 | 4 | //songcxa 15801541129 |
@@ -89,7 +89,7 @@ mUrl.getJx = function(){ | @@ -89,7 +89,7 @@ mUrl.getJx = function(){ | ||
89 | 89 | ||
90 | // var cepath = 'http://39.98.54.240:8090'; | 90 | // var cepath = 'http://39.98.54.240:8090'; |
91 | 91 | ||
92 | -var cepath = 'http://pay.service.renniting.cn/v1'; | 92 | +var cepath = 'http://pay.service.huangshiparking.com'; |
93 | // http://pay.service.renniting.cn | 93 | // http://pay.service.renniting.cn |
94 | // var cepath = 'http://39.98.54.240:8090' | 94 | // var cepath = 'http://39.98.54.240:8090' |
95 | // http://app.api.dyszt.com:8090 | 95 | // http://app.api.dyszt.com:8090 |
list.html
@@ -183,7 +183,7 @@ | @@ -183,7 +183,7 @@ | ||
183 | </style> | 183 | </style> |
184 | </head> | 184 | </head> |
185 | <body ontouchstart=""> | 185 | <body ontouchstart=""> |
186 | -<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div> | 186 | +<!--<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div>--> |
187 | <div id="pay_listcont"> | 187 | <div id="pay_listcont"> |
188 | 188 | ||
189 | </div> | 189 | </div> |
@@ -224,7 +224,7 @@ | @@ -224,7 +224,7 @@ | ||
224 | 224 | ||
225 | <script src="js/md5.min.js"></script> | 225 | <script src="js/md5.min.js"></script> |
226 | 226 | ||
227 | -<script src="js/url.js?a=1.11"></script> | 227 | +<script src="js/url.js?u=1.11"></script> |
228 | <script src="js/ajax.js"></script> | 228 | <script src="js/ajax.js"></script> |
229 | <script type="text/javascript"> | 229 | <script type="text/javascript"> |
230 | //微信浏览器中,aler弹框不显示域名 | 230 | //微信浏览器中,aler弹框不显示域名 |
@@ -244,6 +244,6 @@ | @@ -244,6 +244,6 @@ | ||
244 | } | 244 | } |
245 | })(); | 245 | })(); |
246 | </script> | 246 | </script> |
247 | -<script src="js/list.js?b=11141.31"></script> | 247 | +<script src="js/list.js?h=11141.31"></script> |
248 | </body> | 248 | </body> |
249 | </html> | 249 | </html> |
listnew.html
@@ -183,7 +183,7 @@ | @@ -183,7 +183,7 @@ | ||
183 | </style> | 183 | </style> |
184 | </head> | 184 | </head> |
185 | <body ontouchstart=""> | 185 | <body ontouchstart=""> |
186 | -<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div> | 186 | +<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center"></div> |
187 | <div id="pay_listcont"> | 187 | <div id="pay_listcont"> |
188 | 188 | ||
189 | </div> | 189 | </div> |
@@ -224,8 +224,8 @@ | @@ -224,8 +224,8 @@ | ||
224 | 224 | ||
225 | <script src="js/md5.min.js"></script> | 225 | <script src="js/md5.min.js"></script> |
226 | 226 | ||
227 | -<script src="js/url.js?a=1.11"></script> | ||
228 | -<script src="js/ajax.js"></script> | 227 | +<script src="js/url.js?a=4.11"></script> |
228 | +<script src="js/ajax.js?a=44"></script> | ||
229 | <script type="text/javascript"> | 229 | <script type="text/javascript"> |
230 | //微信浏览器中,aler弹框不显示域名 | 230 | //微信浏览器中,aler弹框不显示域名 |
231 | (function(){ | 231 | (function(){ |
@@ -244,6 +244,6 @@ | @@ -244,6 +244,6 @@ | ||
244 | } | 244 | } |
245 | })(); | 245 | })(); |
246 | </script> | 246 | </script> |
247 | -<script src="js/list.js?b=11141.31"></script> | 247 | +<script src="js/listnew.js"></script> |
248 | </body> | 248 | </body> |
249 | </html> | 249 | </html> |
out.html
@@ -15,8 +15,8 @@ | @@ -15,8 +15,8 @@ | ||
15 | <meta http-equiv="Expires" content="0"> | 15 | <meta http-equiv="Expires" content="0"> |
16 | <link rel="stylesheet" href="css/reset.css?v=0.1"> | 16 | <link rel="stylesheet" href="css/reset.css?v=0.1"> |
17 | <link rel="stylesheet" href="css/provinceKey.css?v=0.1"> | 17 | <link rel="stylesheet" href="css/provinceKey.css?v=0.1"> |
18 | - <script src="js/config.js"></script> | ||
19 | - <script src="js/common.js?v=0.01"></script> | 18 | + <script src="js/config.js?b=111"></script> |
19 | + <script src="js/common.js?i=1.01"></script> | ||
20 | <!-- | 20 | <!-- |
21 | Notice the use of %PUBLIC_URL% in the tags above. | 21 | Notice the use of %PUBLIC_URL% in the tags above. |
22 | It will be replaced with the URL of the `public` folder during the build. | 22 | It will be replaced with the URL of the `public` folder during the build. |
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | work correctly both with client-side routing and a non-root public URL. | 26 | work correctly both with client-side routing and a non-root public URL. |
27 | Learn how to configure a non-root public URL by running `npm run build`. | 27 | Learn how to configure a non-root public URL by running `npm run build`. |
28 | --> | 28 | --> |
29 | + | ||
29 | <title>扫码查询出场</title> | 30 | <title>扫码查询出场</title> |
30 | <style> | 31 | <style> |
31 | body { | 32 | body { |
@@ -153,7 +154,7 @@ | @@ -153,7 +154,7 @@ | ||
153 | <input type="tel" id="inputPhoneNum" value="" onkeydown="inputDown();" placeholder="请输入手机号码" maxlength="14" onpaste="return false" style="display:block;" /> | 154 | <input type="tel" id="inputPhoneNum" value="" onkeydown="inputDown();" placeholder="请输入手机号码" maxlength="14" onpaste="return false" style="display:block;" /> |
154 | </div> | 155 | </div> |
155 | <div id="carNumBox" style="display:block;" class="flexBoxRow"> | 156 | <div id="carNumBox" style="display:block;" class="flexBoxRow"> |
156 | - <input class="input_province" type="text" readonly="readonly" maxlength="1" id="selProvince" onclick="provinceSelect();" value="蒙"> | 157 | + <input class="input_province" type="text" readonly="readonly" maxlength="1" id="selProvince" onclick="provinceSelect();" value="鄂"> |
157 | <span class="splitLine2"> |</span> | 158 | <span class="splitLine2"> |</span> |
158 | <input type="text" maxlength="10" name="inputCarNum" id="inputCarNum" /> | 159 | <input type="text" maxlength="10" name="inputCarNum" id="inputCarNum" /> |
159 | </div> | 160 | </div> |
wxpayResult.html
0 → 100644
1 | +<!doctype html> | ||
2 | +<html lang="en"> | ||
3 | +<head> | ||
4 | + <meta charset="utf-8"> | ||
5 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
6 | + <meta name="theme-color" content="#000000"> | ||
7 | + <meta name="google" value="notranslate"> | ||
8 | + <meta name="format-detection" content="telephone=no"> | ||
9 | + <meta name="format-detection" content="email=no"> | ||
10 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
11 | + <meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
12 | + <meta http-equiv="Pragma" content="no-cache"> | ||
13 | + <meta http-equiv="Cache-control" content="no-cache"> | ||
14 | + <meta http-equiv="Cache" content="no-cache"> | ||
15 | + <meta http-equiv="Expires" content="0"> | ||
16 | + <script src="js/common.js"></script> | ||
17 | + <!-- | ||
18 | + Notice the use of %PUBLIC_URL% in the tags above. | ||
19 | + It will be replaced with the URL of the `public` folder during the build. | ||
20 | + Only files inside the `public` folder can be referenced from the HTML. | ||
21 | + | ||
22 | + Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
23 | + work correctly both with client-side routing and a non-root public URL. | ||
24 | + Learn how to configure a non-root public URL by running `npm run build`. | ||
25 | + --> | ||
26 | + <title>支付状态</title> | ||
27 | +</head> | ||
28 | +<body style="background-color: #f0f4f5;"> | ||
29 | +<!--<noscript>--> | ||
30 | +<!--You need to enable JavaScript to run this app.--> | ||
31 | +<!--</noscript>--> | ||
32 | +<header id="header" style="margin-top:25%; display: flex; justify-content: center; align-items: center; flex-direction: column; "> | ||
33 | + <img id="stateImg" src="img/default.png" style="width: 64px; height: 64px; " /> | ||
34 | + <div id="stateLable" style="font-size: 18px; color: #777; margin-top: 20px;">状态</div> | ||
35 | +</header> | ||
36 | + | ||
37 | +<!-- | ||
38 | + This HTML file is a template. | ||
39 | + If you open it directly in the browser, you will see an empty page. | ||
40 | + | ||
41 | + You can add webfonts, meta tags, or analytics to this file. | ||
42 | + The build step will place the bundled scripts into the <body> tag. | ||
43 | + | ||
44 | + To begin the development, run `npm start` or `yarn start`. | ||
45 | + To create a production bundle, use `npm run build` or `yarn build`. | ||
46 | +--> | ||
47 | +<script type="text/javascript"> | ||
48 | +window.onload = function () { | ||
49 | + var tmpParams = getQueryString(window.location); | ||
50 | + if (tmpParams != null) { | ||
51 | + console.log(JSON.stringify(tmpParams)); | ||
52 | + if (tmpParams.trade_no == "success") { | ||
53 | + getResponse("success"); | ||
54 | + } else { | ||
55 | + getResponse("fail"); | ||
56 | + } | ||
57 | + //alertMsg("支付返回参数:" + JSON.stringify(tmpParams)); | ||
58 | + } else { | ||
59 | + console.log("支付返回参数" + tmpParams); | ||
60 | + } | ||
61 | +} | ||
62 | +//type[fail、sucesss] | ||
63 | +function getResponse(type) { | ||
64 | + var img = document.getElementById("stateImg"); | ||
65 | + var label = document.getElementById("stateLable"); | ||
66 | + if (type == "fail") { | ||
67 | + img.src = "img/no.png"; | ||
68 | + label.innerHTML = "支付失败,尝试重新扫码"; | ||
69 | + } else { | ||
70 | + img.src = "img/ok.png"; | ||
71 | + label.innerHTML = "订单支付成功"; | ||
72 | + } | ||
73 | +} | ||
74 | +</script> | ||
75 | +</body> | ||
76 | + | ||
77 | + | ||
78 | +</html> |
zeroout.html
@@ -67,8 +67,10 @@ | @@ -67,8 +67,10 @@ | ||
67 | <div class="float-left">温馨提示: </div> | 67 | <div class="float-left">温馨提示: </div> |
68 | <div class="float-right"> | 68 | <div class="float-right"> |
69 | <p>请尽快离场,超过15分钟将重新计费哦!</p> | 69 | <p>请尽快离场,超过15分钟将重新计费哦!</p> |
70 | - <p>索要发票请联系停车管理员或拨打</p> | ||
71 | - <p>客服电话: 400-63456881</p> | 70 | + <p>需要发票可下载APP‘黄石停车’开具电子发票 |
71 | + | ||
72 | + </p> | ||
73 | + <p>客服电话:0714-6212345</p> | ||
72 | </div> | 74 | </div> |
73 | </div> | 75 | </div> |
74 | 76 | ||
@@ -105,12 +107,12 @@ | @@ -105,12 +107,12 @@ | ||
105 | } | 107 | } |
106 | })(); | 108 | })(); |
107 | 109 | ||
108 | -setTimeout(function () { | ||
109 | - window.location.href="list.html?carNumber="+getQueryString(window.location).carNumber | ||
110 | -},3000) | 110 | +// setTimeout(function () { |
111 | +// window.location.href="list.html?carNumber="+getQueryString(window.location).carNumber | ||
112 | +// },3000) | ||
111 | 113 | ||
112 | $('#ok-btn').on('click',function () { | 114 | $('#ok-btn').on('click',function () { |
113 | - window.location.href="list.html?carNumber="+getQueryString(window.location).carNumber | 115 | + window.location.href="listnew.html?carNumber="+getQueryString(window.location).carNumber |
114 | }) | 116 | }) |
115 | 117 | ||
116 | function getQueryString(location) { | 118 | function getQueryString(location) { |