Commit 595f274261f5e6e23a021b5fa0d0d30321f2412e
1 parent
f780f813
西城家园
Showing
7 changed files
with
22 additions
and
10 deletions
dist 2.zip
No preview for this file type
dist.zip
No preview for this file type
index.html
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | <meta name="google" content="notranslate"> | 5 | <meta name="google" content="notranslate"> |
6 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
7 | - <title>小票码扫码支付</title> | 7 | + <title>停车支付</title> |
8 | </head> | 8 | </head> |
9 | <body> | 9 | <body> |
10 | <div id="app"></div> | 10 | <div id="app"></div> |
src/components/orderPay.vue
@@ -118,7 +118,8 @@ export default { | @@ -118,7 +118,8 @@ export default { | ||
118 | } | 118 | } |
119 | 119 | ||
120 | if (this.clientBrowser == '支付宝') { // 支付宝支付 | 120 | if (this.clientBrowser == '支付宝') { // 支付宝支付 |
121 | - var aliParams = {}; | 121 | + console.log('支付宝') |
122 | + let aliParams = {}; | ||
122 | aliParams.backDeveloperCode= ""; | 123 | aliParams.backDeveloperCode= ""; |
123 | 124 | ||
124 | aliParams.orderId = this.orderId; | 125 | aliParams.orderId = this.orderId; |
@@ -147,7 +148,7 @@ export default { | @@ -147,7 +148,7 @@ export default { | ||
147 | bankabcParams.orderId = this.orderId; | 148 | bankabcParams.orderId = this.orderId; |
148 | bankabcParams.carNumber = this.carNumber; | 149 | bankabcParams.carNumber = this.carNumber; |
149 | bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 34 农行 | 150 | bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 34 农行 |
150 | - bankabcParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | 151 | + bankabcParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 |
151 | bankabcParams.paySrcType = this.paySrcType;//101停车支付 | 152 | bankabcParams.paySrcType = this.paySrcType;//101停车支付 |
152 | bankabcParams.orgId = this.$utils.myOrgId, | 153 | bankabcParams.orgId = this.$utils.myOrgId, |
153 | bankabcParams.backType = 2, | 154 | bankabcParams.backType = 2, |
@@ -241,7 +242,7 @@ export default { | @@ -241,7 +242,7 @@ export default { | ||
241 | wxParams.backType = 2, | 242 | wxParams.backType = 2, |
242 | wxParams.orgId = this.$utils.myOrgId, | 243 | wxParams.orgId = this.$utils.myOrgId, |
243 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | 244 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
244 | - wxParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | 245 | + wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 |
245 | wxParams.carNumber = this.carNumber; | 246 | wxParams.carNumber = this.carNumber; |
246 | wxParams.paySrcType = this.paySrcType;//101停车支付 | 247 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
247 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); | 248 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
@@ -295,7 +296,7 @@ export default { | @@ -295,7 +296,7 @@ export default { | ||
295 | pageNum: 1, | 296 | pageNum: 1, |
296 | pageSize: 10000, | 297 | pageSize: 10000, |
297 | parkState: 10, | 298 | parkState: 10, |
298 | - terminalSource: 3, | 299 | + terminalSource: 7, |
299 | carNumber: me.carNumber, | 300 | carNumber: me.carNumber, |
300 | app_id: me.$utils.myVarAppid, | 301 | app_id: me.$utils.myVarAppid, |
301 | deviceInfo: me.$utils.myDeviceInfo, | 302 | deviceInfo: me.$utils.myDeviceInfo, |
src/components/parkRecord.vue
@@ -184,7 +184,7 @@ export default { | @@ -184,7 +184,7 @@ export default { | ||
184 | pageNum: '1', | 184 | pageNum: '1', |
185 | pageSize: '1000', | 185 | pageSize: '1000', |
186 | parkState: '10', | 186 | parkState: '10', |
187 | - terminalSource: '3', | 187 | + terminalSource: '7', |
188 | carNumber: this.carNumber, | 188 | carNumber: this.carNumber, |
189 | // carNumberColor: this.carColor, | 189 | // carNumberColor: this.carColor, |
190 | // orgId: this.$utils.myOrgId | 190 | // orgId: this.$utils.myOrgId |
@@ -276,7 +276,7 @@ export default { | @@ -276,7 +276,7 @@ export default { | ||
276 | sign_type: "md5", | 276 | sign_type: "md5", |
277 | orderId: i.orderId, | 277 | orderId: i.orderId, |
278 | payOrderType: '101', | 278 | payOrderType: '101', |
279 | - terminalSource: '3', | 279 | + terminalSource: '7', |
280 | } | 280 | } |
281 | params.sign = this.$utils.signObject(params) | 281 | params.sign = this.$utils.signObject(params) |
282 | appApplyParkOut(params).then(response => { | 282 | appApplyParkOut(params).then(response => { |
@@ -292,7 +292,7 @@ export default { | @@ -292,7 +292,7 @@ export default { | ||
292 | payType: this.$utils.clientBrowsePayType(), | 292 | payType: this.$utils.clientBrowsePayType(), |
293 | appId: this.$utils.myVxAppId, | 293 | appId: this.$utils.myVxAppId, |
294 | orderId: i.orderId, | 294 | orderId: i.orderId, |
295 | - terminalSource: '3', | 295 | + terminalSource: '7', |
296 | parkCode: i.parkCode, | 296 | parkCode: i.parkCode, |
297 | carNumber: this.carNumber, | 297 | carNumber: this.carNumber, |
298 | } | 298 | } |
@@ -346,7 +346,7 @@ export default { | @@ -346,7 +346,7 @@ export default { | ||
346 | sign_type: "md5", | 346 | sign_type: "md5", |
347 | appId: this.$utils.myVxAppId, | 347 | appId: this.$utils.myVxAppId, |
348 | orderIds: list, | 348 | orderIds: list, |
349 | - terminalSource: '3', | 349 | + terminalSource: '7', |
350 | payType: this.$utils.clientBrowsePayType(), | 350 | payType: this.$utils.clientBrowsePayType(), |
351 | orgId: this.$utils.myOrgId, | 351 | orgId: this.$utils.myOrgId, |
352 | } | 352 | } |
src/components/plateNumber.vue
@@ -61,6 +61,9 @@ | @@ -61,6 +61,9 @@ | ||
61 | <div class="submit-box" @click="toAli()"> | 61 | <div class="submit-box" @click="toAli()"> |
62 | 先离场后付费 | 62 | 先离场后付费 |
63 | </div> | 63 | </div> |
64 | + | ||
65 | + | ||
66 | + | ||
64 | </div> | 67 | </div> |
65 | <div class="first-word-wrap" | 68 | <div class="first-word-wrap" |
66 | v-if="firstWrapStatus"> | 69 | v-if="firstWrapStatus"> |
@@ -351,6 +354,14 @@ export default { | @@ -351,6 +354,14 @@ export default { | ||
351 | let schemeEncode = encodeURIComponent('alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2Frender.alipay.com%2Fp%2Fc%2Ftr-18jqmmvj4ehs%3FchInfo%3Dsichuanying'); | 354 | let schemeEncode = encodeURIComponent('alipays://platformapi/startapp?appId=20000067&url=https%3A%2F%2Frender.alipay.com%2Fp%2Fc%2Ftr-18jqmmvj4ehs%3FchInfo%3Dsichuanying'); |
352 | let zfbUrl = `https://ds.alipay.com/?scheme=${schemeEncode}` | 355 | let zfbUrl = `https://ds.alipay.com/?scheme=${schemeEncode}` |
353 | console.log('zfbUrl: ', zfbUrl); | 356 | console.log('zfbUrl: ', zfbUrl); |
357 | + | ||
358 | + | ||
359 | + if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) { | ||
360 | + location.href = zfbUrl;//此处判断是否为ios后,使用location.href跳转 | ||
361 | + } | ||
362 | + // window.location.href = '/dealSuccess/' + orderNum;//安卓跳转 | ||
363 | + | ||
364 | + | ||
354 | window.location.href = zfbUrl; | 365 | window.location.href = zfbUrl; |
355 | }, | 366 | }, |
356 | getUrlParam(name) { | 367 | getUrlParam(name) { |
src/utils/utils.js
@@ -128,7 +128,7 @@ export default { | @@ -128,7 +128,7 @@ export default { | ||
128 | // 微信赤峰 appid wx2af2bab90d433c86 | 128 | // 微信赤峰 appid wx2af2bab90d433c86 |
129 | // 黄石 appid wxa1a66cc7d263afe6 | 129 | // 黄石 appid wxa1a66cc7d263afe6 |
130 | 130 | ||
131 | - myOrgId: '10003', // 归属地 赤峰id 10003 黄石 10079 | 131 | + myOrgId: '10007', // 归属地 赤峰id 10003 黄石 10079 |
132 | 132 | ||
133 | myGetSign: function (objb) { // 获取签名 | 133 | myGetSign: function (objb) { // 获取签名 |
134 | var compare = function (obj1, obj2) { | 134 | var compare = function (obj1, obj2) { |