fix:预留位置支付后续代码
This commit is contained in:
parent
cecf078aa0
commit
f994cf76c5
|
@ -235,7 +235,7 @@
|
||||||
/* 去支付 */
|
/* 去支付 */
|
||||||
payFunction ({ payType }) {
|
payFunction ({ payType }) {
|
||||||
/* payType 1:微信 2:支付宝 */
|
/* payType 1:微信 2:支付宝 */
|
||||||
/* 后端 微信是5 */
|
/* 后端 微信是5 支付宝是1 */
|
||||||
this.active = payType === 2 ? 1 : 5
|
this.active = payType === 2 ? 1 : 5
|
||||||
this.show = false
|
this.show = false
|
||||||
|
|
||||||
|
@ -250,16 +250,16 @@
|
||||||
|
|
||||||
if (code === 200) {
|
if (code === 200) {
|
||||||
this.getOrderList()
|
this.getOrderList()
|
||||||
this.payRealFunction()
|
this.payRealFunction(payType)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.payRealFunction()
|
this.payRealFunction(payType)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/* 调用支付 */
|
/* 调用支付 */
|
||||||
payRealFunction () {
|
payRealFunction (payType) {
|
||||||
req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`, { token: localStorage.getItem('token') }).then(({ code, data, message }) => {
|
req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`, { token: localStorage.getItem('token') }).then(({ code, data, message }) => {
|
||||||
if (code === 403) {
|
if (code === 403) {
|
||||||
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
|
||||||
|
@ -268,8 +268,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 跳转链接 */
|
/* 跳转链接 */
|
||||||
if (code === 200) {
|
/* 支付宝支付 */
|
||||||
|
if (code === 200 && payType === 2) {
|
||||||
window.location.href = data
|
window.location.href = data
|
||||||
|
} else { /* 微信支付 */
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue