Commit 5ab30da71e1887b8d054a49cae7bd8a5c24cd139
1 parent
92544c76
西城家园
Showing
4 changed files
with
27 additions
and
15 deletions
src/components/orderPay.vue
| ... | ... | @@ -121,11 +121,11 @@ export default { |
| 121 | 121 | var aliParams = {}; |
| 122 | 122 | aliParams.orderId = this.orderId; |
| 123 | 123 | aliParams.carNumber = this.carNumber; |
| 124 | - aliParams.payType = 1;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | |
| 125 | - aliParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 124 | + aliParams.payType = '1';// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | |
| 125 | + aliParams.terminalSource = '3';//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 126 | 126 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
| 127 | 127 | aliParams.orgId = this.$utils.myOrgId, |
| 128 | - aliParams.backType = 2, | |
| 128 | + aliParams.backType = '2', | |
| 129 | 129 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 130 | 130 | console.log(aliParams) |
| 131 | 131 | aliPay(aliParams).then(response => { |
| ... | ... | @@ -145,7 +145,7 @@ export default { |
| 145 | 145 | bankabcParams.orderId = this.orderId; |
| 146 | 146 | bankabcParams.carNumber = this.carNumber; |
| 147 | 147 | bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 34 农行 |
| 148 | - bankabcParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 148 | + bankabcParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 149 | 149 | bankabcParams.paySrcType = this.paySrcType;//101停车支付 |
| 150 | 150 | bankabcParams.orgId = this.$utils.myOrgId, |
| 151 | 151 | bankabcParams.backType = 2, |
| ... | ... | @@ -239,7 +239,7 @@ export default { |
| 239 | 239 | wxParams.backType = 2, |
| 240 | 240 | wxParams.orgId = this.$utils.myOrgId, |
| 241 | 241 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 |
| 242 | - wxParams.terminalSource = 7;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 242 | + wxParams.terminalSource = 3;//请求端来源 1: 任你停 2:pda 3:微信公共号 7:H5扫码 10页面支付 | |
| 243 | 243 | wxParams.carNumber = this.carNumber; |
| 244 | 244 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
| 245 | 245 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
| ... | ... | @@ -293,7 +293,7 @@ export default { |
| 293 | 293 | pageNum: 1, |
| 294 | 294 | pageSize: 10000, |
| 295 | 295 | parkState: 10, |
| 296 | - terminalSource: 7, | |
| 296 | + terminalSource: 3, | |
| 297 | 297 | carNumber: me.carNumber, |
| 298 | 298 | app_id: me.$utils.myVarAppid, |
| 299 | 299 | deviceInfo: me.$utils.myDeviceInfo, | ... | ... |
src/components/parkRecord.vue
| ... | ... | @@ -181,13 +181,13 @@ export default { |
| 181 | 181 | deviceInfo: this.$utils.myDeviceInfo, |
| 182 | 182 | salt: salt, |
| 183 | 183 | sign_type: "md5", |
| 184 | - pageNum: 1, | |
| 185 | - pageSize: 1000, | |
| 186 | - parkState: 10, | |
| 187 | - terminalSource: 7, | |
| 184 | + pageNum: '1', | |
| 185 | + pageSize: '1000', | |
| 186 | + parkState: '10', | |
| 187 | + terminalSource: '3', | |
| 188 | 188 | carNumber: this.carNumber, |
| 189 | - carNumberColor: this.carColor, | |
| 190 | - orgId: this.$utils.myOrgId | |
| 189 | + // carNumberColor: this.carColor, | |
| 190 | + // orgId: this.$utils.myOrgId | |
| 191 | 191 | } |
| 192 | 192 | jsondata.sign = this.$utils.signObject(jsondata) |
| 193 | 193 | |
| ... | ... | @@ -292,7 +292,7 @@ export default { |
| 292 | 292 | payType: this.$utils.clientBrowsePayType(), |
| 293 | 293 | appId: this.$utils.myVxAppId, |
| 294 | 294 | orderId: i.orderId, |
| 295 | - terminalSource: '7', | |
| 295 | + terminalSource: '3', | |
| 296 | 296 | parkCode: i.parkCode, |
| 297 | 297 | carNumber: this.carNumber, |
| 298 | 298 | } |
| ... | ... | @@ -346,7 +346,7 @@ export default { |
| 346 | 346 | sign_type: "md5", |
| 347 | 347 | appId: this.$utils.myVxAppId, |
| 348 | 348 | orderIds: list, |
| 349 | - terminalSource: '7', | |
| 349 | + terminalSource: '3', | |
| 350 | 350 | payType: this.$utils.clientBrowsePayType(), |
| 351 | 351 | orgId: this.$utils.myOrgId, |
| 352 | 352 | } | ... | ... |
src/components/plateNumber.vue
| ... | ... | @@ -57,6 +57,10 @@ |
| 57 | 57 | <div class="submit-box" @click="submitFn()"> |
| 58 | 58 | 查询 |
| 59 | 59 | </div> |
| 60 | + | |
| 61 | + <div class="submit-box" @click="toAli()"> | |
| 62 | + 先离场后付费 | |
| 63 | + </div> | |
| 60 | 64 | </div> |
| 61 | 65 | <div class="first-word-wrap" |
| 62 | 66 | v-if="firstWrapStatus"> |
| ... | ... | @@ -341,6 +345,14 @@ export default { |
| 341 | 345 | |
| 342 | 346 | }, |
| 343 | 347 | methods: { |
| 348 | + toAli(){ | |
| 349 | + let params = {}; | |
| 350 | + let queryEncode = encodeURIComponent(params); | |
| 351 | + 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}` | |
| 353 | + console.log('zfbUrl: ', zfbUrl); | |
| 354 | + window.location.href = zfbUrl; | |
| 355 | + }, | |
| 344 | 356 | getUrlParam(name) { |
| 345 | 357 | var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); |
| 346 | 358 | var r = window.location.search.substr(1).match(reg) | ... | ... |
src/utils/request.js
| ... | ... | @@ -13,7 +13,7 @@ const service = axios.create({ |
| 13 | 13 | |
| 14 | 14 | // https://dev.renniting.cn/pay/ 赤峰农行测试环境 |
| 15 | 15 | |
| 16 | - baseURL: 'https://pay.renniting.cn/', // url = base url + request url | |
| 16 | + baseURL: 'http://pay.service.renniting.cn', // url = base url + request url | |
| 17 | 17 | // withCredentials: true, // send cookies when cross-domain requests |
| 18 | 18 | timeout: 6000 // request timeout |
| 19 | 19 | }) | ... | ... |