Commit e03e86ac0d92387a85742bb2926868e1f4c15a17
1 parent
e66dfe12
小票码 加载提示
Showing
3 changed files
with
8 additions
and
7 deletions
src/components/dynCodePay.vue
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | 56 | ||
57 | // let Base64 = require('js-base64').Base64 | 57 | // let Base64 = require('js-base64').Base64 |
58 | 58 | ||
59 | -import {aliPay, getOpenId, vxPayQuery, bankH5Pay} from '@/api/orderPay/orderPay' | 59 | +import { aliPay, getOpenId, vxPayQuery, bankH5Pay } from '@/api/orderPay/orderPay' |
60 | 60 | ||
61 | export default { | 61 | export default { |
62 | name: 'dynCodePay', | 62 | name: 'dynCodePay', |
@@ -96,17 +96,17 @@ export default { | @@ -96,17 +96,17 @@ export default { | ||
96 | this.orderId = this.$route.query.orderId | 96 | this.orderId = this.$route.query.orderId |
97 | // console.log(this.orderId) | 97 | // console.log(this.orderId) |
98 | // this.appOrderTimeout = this.$route.query.appOrderTimeout | 98 | // this.appOrderTimeout = this.$route.query.appOrderTimeout |
99 | + this.urlAppid = this.$route.query.appId | ||
99 | if (this.clientBrowser == "微信") { | 100 | if (this.clientBrowser == "微信") { |
100 | this.webAppCode = this.getCode(); | 101 | this.webAppCode = this.getCode(); |
101 | } | 102 | } |
102 | 103 | ||
103 | - this.urlAppid = this.$route.query.appId | ||
104 | }, | 104 | }, |
105 | methods: { | 105 | methods: { |
106 | getCode() { | 106 | getCode() { |
107 | 107 | ||
108 | var appID = this.urlAppid; | 108 | var appID = this.urlAppid; |
109 | - // alert(appID) | 109 | + |
110 | var code = this.getUrlParam('code'); | 110 | var code = this.getUrlParam('code'); |
111 | var local = window.location.href; | 111 | var local = window.location.href; |
112 | if (code == null || code === '') { | 112 | if (code == null || code === '') { |
@@ -229,7 +229,7 @@ export default { | @@ -229,7 +229,7 @@ export default { | ||
229 | if (res.code == 0) { | 229 | if (res.code == 0) { |
230 | me.vxPay(res.data, this.orderId) | 230 | me.vxPay(res.data, this.orderId) |
231 | } else if (res.code == 40163) { //code been used, hints[重复code问题] | 231 | } else if (res.code == 40163) { //code been used, hints[重复code问题] |
232 | - me.$msgbox('提示', '请重新扫码') | 232 | + me.$msgbox('提示', '请重新扫码code重复') |
233 | console.log(res.message); | 233 | console.log(res.message); |
234 | } else { | 234 | } else { |
235 | me.$msgbox('提示', '请重新扫码') | 235 | me.$msgbox('提示', '请重新扫码') |
@@ -273,7 +273,7 @@ export default { | @@ -273,7 +273,7 @@ export default { | ||
273 | } | 273 | } |
274 | } else { | 274 | } else { |
275 | console.log(res.message); | 275 | console.log(res.message); |
276 | - vm.$msgbox('提示', res.message) | 276 | + vm.$msgbox('提示', '支付失败') |
277 | } | 277 | } |
278 | }) | 278 | }) |
279 | }, | 279 | }, |
@@ -313,6 +313,7 @@ export default { | @@ -313,6 +313,7 @@ export default { | ||
313 | .car-wrap { | 313 | .car-wrap { |
314 | padding: 7px 7px; | 314 | padding: 7px 7px; |
315 | background: #FFF; | 315 | background: #FFF; |
316 | + color: #fff; | ||
316 | } | 317 | } |
317 | 318 | ||
318 | .carBG { | 319 | .carBG { |
src/components/plateNumber.vue
@@ -251,7 +251,7 @@ | @@ -251,7 +251,7 @@ | ||
251 | </div> | 251 | </div> |
252 | </template> | 252 | </template> |
253 | <script> | 253 | <script> |
254 | -import {noCarQRcodeInOutPark} from '@/api/plateNumber/plateNumber' | 254 | +import { noCarQRcodeInOutPark } from '@/api/plateNumber/plateNumber' |
255 | 255 | ||
256 | export default { | 256 | export default { |
257 | data() { | 257 | data() { |
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://dev.renniting.cn/pay/', // url = base url + request url | 16 | + baseURL: 'https://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 | }) |