提交订单页面,当取消支付之后调用取消订单的接口
This commit is contained in:
parent
e44cf88635
commit
c642678502
@ -670,9 +670,14 @@ export default {
|
|||||||
},
|
},
|
||||||
fail: (payErr) => {
|
fail: (payErr) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: payErr.errMsg == 'requestPayment:fail cancel' ? '用户取消支付' : '支付失败',
|
title: payErr.errMsg == 'requestPayment:fail cancel' ? '已取消支付' : '支付失败',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
const params = {
|
||||||
|
order_id: orderId,
|
||||||
|
}
|
||||||
|
request(apiArr.cancelPay, "POST", params).then(res => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
complete: () => {
|
complete: () => {
|
||||||
// 支付完成后的回调,无论成功失败都会执行
|
// 支付完成后的回调,无论成功失败都会执行
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user