Commit 9b6fc6f2fe7cd538f277c0fa2fc0f052444994e3
1 parent
7528d5a2
add
Showing
5 changed files
with
18 additions
and
8 deletions
src/components/navigation.vue
src/components/orderPay.vue
| ... | ... | @@ -66,6 +66,7 @@ export default { |
| 66 | 66 | webAppCode: '', // 微信code |
| 67 | 67 | appOrderTimeout: '', // 超时描述 |
| 68 | 68 | tollNumber:'', // 收费员员工号 |
| 69 | + backDeveloperCode: '' | |
| 69 | 70 | } |
| 70 | 71 | }, |
| 71 | 72 | created() { |
| ... | ... | @@ -121,6 +122,11 @@ export default { |
| 121 | 122 | this.orderId = [] |
| 122 | 123 | this.orderId = _order |
| 123 | 124 | } |
| 125 | + if(this.tollNumber){ | |
| 126 | + this.backDeveloperCode = this.tollNumber | |
| 127 | + }else{ | |
| 128 | + this.backDeveloperCode = this.$route.query.backDeveloperCode | |
| 129 | + } | |
| 124 | 130 | |
| 125 | 131 | if (this.clientBrowser == '支付宝') { // 支付宝支付 |
| 126 | 132 | let me = this |
| ... | ... | @@ -132,7 +138,7 @@ export default { |
| 132 | 138 | aliParams.paySrcType = this.paySrcType;//101停车支付 |
| 133 | 139 | aliParams.orgId = this.$utils.myOrgId |
| 134 | 140 | aliParams.backType = 2 |
| 135 | - aliParams.backDeveloperCode = this.tollNumber | |
| 141 | + aliParams.backDeveloperCode = this.backDeveloperCode | |
| 136 | 142 | aliParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 137 | 143 | console.log(aliParams) |
| 138 | 144 | aliPay(aliParams).then(response => { |
| ... | ... | @@ -174,7 +180,7 @@ export default { |
| 174 | 180 | bankabcParams.orgId = this.$utils.myOrgId |
| 175 | 181 | bankabcParams.backType = 2 |
| 176 | 182 | bankabcParams.PaymentLinkType = 1 |
| 177 | - bankabcParams.backDeveloperCode = this.tollNumber | |
| 183 | + bankabcParams.backDeveloperCode = this.backDeveloperCode | |
| 178 | 184 | bankabcParams.recordArreaInfos = JSON.stringify(this.orderId); |
| 179 | 185 | console.log(bankabcParams) |
| 180 | 186 | bankH5Pay(bankabcParams).then(response => { |
| ... | ... | @@ -286,7 +292,7 @@ export default { |
| 286 | 292 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
| 287 | 293 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
| 288 | 294 | wxParams.openId = openIdData; |
| 289 | - wxParams.backDeveloperCode = this.tollNumber | |
| 295 | + wxParams.backDeveloperCode = this.backDeveloperCode | |
| 290 | 296 | wxParams.appId = this.$utils.myVxAppId; |
| 291 | 297 | vxPayQuery(wxParams).then(res => { |
| 292 | 298 | if (res.code == 0) { // | ... | ... |
src/components/parkRecord.vue
| ... | ... | @@ -192,7 +192,8 @@ export default { |
| 192 | 192 | terminalSource: 7, |
| 193 | 193 | carNumber: this.carNumber, |
| 194 | 194 | carNumberColor: this.carColor, |
| 195 | - orgId: this.$utils.myOrgId | |
| 195 | + orgId: this.$utils.myOrgId, | |
| 196 | + | |
| 196 | 197 | } |
| 197 | 198 | jsondata.sign = this.$utils.signObject(jsondata) |
| 198 | 199 | |
| ... | ... | @@ -357,6 +358,7 @@ export default { |
| 357 | 358 | terminalSource: '7', |
| 358 | 359 | payType: this.$utils.clientBrowsePayType(), |
| 359 | 360 | orgId: this.$utils.myOrgId, |
| 361 | + backDeveloperCode: this.$route.query.backDeveloperCode | |
| 360 | 362 | } |
| 361 | 363 | jsondata.sign = this.$utils.signObject(jsondata) |
| 362 | 364 | console.log(jsondata) |
| ... | ... | @@ -378,7 +380,8 @@ export default { |
| 378 | 380 | carNumber: this.carNumber, // 车牌 |
| 379 | 381 | paySrcType: 103, //支付的类型 101 是本次 103是历史欠费 |
| 380 | 382 | ordeID: this.orderIds, //支付的订单号 |
| 381 | - appOrderTimeout: '' | |
| 383 | + appOrderTimeout: '', | |
| 384 | + backDeveloperCode: response.data.inChargerCode | |
| 382 | 385 | } |
| 383 | 386 | } |
| 384 | 387 | ) | ... | ... |
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: 'https://dev.renniting.cn/pay/', // url = base url + request url | |
| 17 | 17 | // withCredentials: true, // send cookies when cross-domain requests |
| 18 | 18 | timeout: 10000 // request timeout |
| 19 | 19 | }) | ... | ... |
src/utils/utils.js
| ... | ... | @@ -122,7 +122,7 @@ export default { |
| 122 | 122 | |
| 123 | 123 | myDeviceInfo: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E', // 公共请求设备信息 |
| 124 | 124 | |
| 125 | - myVxAppId: 'wx2af2bab90d433c86', | |
| 125 | + myVxAppId: 'wxff4cebaedbf4f886', | |
| 126 | 126 | // 测试环境 微信赤峰 appid wxff4cebaedbf4f886 |
| 127 | 127 | // 微信赤峰 appid wx2af2bab90d433c86 |
| 128 | 128 | // 黄石 appid wxa1a66cc7d263afe6 | ... | ... |