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,11 +121,11 @@ export default { | ||
| 121 | var aliParams = {}; | 121 | var aliParams = {}; |
| 122 | aliParams.orderId = this.orderId; | 122 | aliParams.orderId = this.orderId; |
| 123 | aliParams.carNumber = this.carNumber; | 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 | aliParams.paySrcType = this.paySrcType;//101停车支付 | 126 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
| 127 | aliParams.orgId = this.$utils.myOrgId, | 127 | aliParams.orgId = this.$utils.myOrgId, |
| 128 | - aliParams.backType = 2, | 128 | + aliParams.backType = '2', |
| 129 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); | 129 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 130 | console.log(aliParams) | 130 | console.log(aliParams) |
| 131 | aliPay(aliParams).then(response => { | 131 | aliPay(aliParams).then(response => { |
| @@ -145,7 +145,7 @@ export default { | @@ -145,7 +145,7 @@ export default { | ||
| 145 | bankabcParams.orderId = this.orderId; | 145 | bankabcParams.orderId = this.orderId; |
| 146 | bankabcParams.carNumber = this.carNumber; | 146 | bankabcParams.carNumber = this.carNumber; |
| 147 | bankabcParams.payType = 34;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 34 农行 | 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 | bankabcParams.paySrcType = this.paySrcType;//101停车支付 | 149 | bankabcParams.paySrcType = this.paySrcType;//101停车支付 |
| 150 | bankabcParams.orgId = this.$utils.myOrgId, | 150 | bankabcParams.orgId = this.$utils.myOrgId, |
| 151 | bankabcParams.backType = 2, | 151 | bankabcParams.backType = 2, |
| @@ -239,7 +239,7 @@ export default { | @@ -239,7 +239,7 @@ export default { | ||
| 239 | wxParams.backType = 2, | 239 | wxParams.backType = 2, |
| 240 | wxParams.orgId = this.$utils.myOrgId, | 240 | wxParams.orgId = this.$utils.myOrgId, |
| 241 | wxParams.payType = 4;// 1:支付宝 2:微信 3:银联 10:H5 4微信公众号 | 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 | wxParams.carNumber = this.carNumber; | 243 | wxParams.carNumber = this.carNumber; |
| 244 | wxParams.paySrcType = this.paySrcType;//101停车支付 | 244 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
| 245 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); | 245 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
| @@ -293,7 +293,7 @@ export default { | @@ -293,7 +293,7 @@ export default { | ||
| 293 | pageNum: 1, | 293 | pageNum: 1, |
| 294 | pageSize: 10000, | 294 | pageSize: 10000, |
| 295 | parkState: 10, | 295 | parkState: 10, |
| 296 | - terminalSource: 7, | 296 | + terminalSource: 3, |
| 297 | carNumber: me.carNumber, | 297 | carNumber: me.carNumber, |
| 298 | app_id: me.$utils.myVarAppid, | 298 | app_id: me.$utils.myVarAppid, |
| 299 | deviceInfo: me.$utils.myDeviceInfo, | 299 | deviceInfo: me.$utils.myDeviceInfo, |
src/components/parkRecord.vue
| @@ -181,13 +181,13 @@ export default { | @@ -181,13 +181,13 @@ export default { | ||
| 181 | deviceInfo: this.$utils.myDeviceInfo, | 181 | deviceInfo: this.$utils.myDeviceInfo, |
| 182 | salt: salt, | 182 | salt: salt, |
| 183 | sign_type: "md5", | 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 | carNumber: this.carNumber, | 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 | jsondata.sign = this.$utils.signObject(jsondata) | 192 | jsondata.sign = this.$utils.signObject(jsondata) |
| 193 | 193 | ||
| @@ -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: '7', | 295 | + terminalSource: '3', |
| 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: '7', | 349 | + terminalSource: '3', |
| 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
| @@ -57,6 +57,10 @@ | @@ -57,6 +57,10 @@ | ||
| 57 | <div class="submit-box" @click="submitFn()"> | 57 | <div class="submit-box" @click="submitFn()"> |
| 58 | 查询 | 58 | 查询 |
| 59 | </div> | 59 | </div> |
| 60 | + | ||
| 61 | + <div class="submit-box" @click="toAli()"> | ||
| 62 | + 先离场后付费 | ||
| 63 | + </div> | ||
| 60 | </div> | 64 | </div> |
| 61 | <div class="first-word-wrap" | 65 | <div class="first-word-wrap" |
| 62 | v-if="firstWrapStatus"> | 66 | v-if="firstWrapStatus"> |
| @@ -341,6 +345,14 @@ export default { | @@ -341,6 +345,14 @@ export default { | ||
| 341 | 345 | ||
| 342 | }, | 346 | }, |
| 343 | methods: { | 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 | getUrlParam(name) { | 356 | getUrlParam(name) { |
| 345 | var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); | 357 | var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); |
| 346 | var r = window.location.search.substr(1).match(reg) | 358 | var r = window.location.search.substr(1).match(reg) |
src/utils/request.js
| @@ -13,7 +13,7 @@ const service = axios.create({ | @@ -13,7 +13,7 @@ const service = axios.create({ | ||
| 13 | 13 | ||
| 14 | // https://dev.renniting.cn/pay/ 赤峰农行测试环境 | 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 | // withCredentials: true, // send cookies when cross-domain requests | 17 | // withCredentials: true, // send cookies when cross-domain requests |
| 18 | timeout: 6000 // request timeout | 18 | timeout: 6000 // request timeout |
| 19 | }) | 19 | }) |