Fix:订单取消支付问题
This commit is contained in:
@@ -324,7 +324,10 @@ export default {
|
||||
}
|
||||
getGiftCardSendOrder(this.orderKey, params).then(res => {
|
||||
uni.hideLoading();
|
||||
|
||||
const data = res.data;
|
||||
this.giftKey = data.giftCard.code;
|
||||
this.orderId = data.result.orderId || ''
|
||||
switch (data.status) {
|
||||
case "ORDER_EXIST":
|
||||
case "EXTEND_ORDER":
|
||||
@@ -353,8 +356,6 @@ export default {
|
||||
duration: 2000
|
||||
});
|
||||
this.isPayOk = true;
|
||||
this.giftKey = data.giftCard.code;
|
||||
this.orderId = data.result.orderId || ''
|
||||
break;
|
||||
case "WECHAT_H5_PAY":
|
||||
// H5支付
|
||||
@@ -365,16 +366,24 @@ export default {
|
||||
break;
|
||||
case "WECHAT_PAY":
|
||||
// 小程序支付
|
||||
weappPay(data.result.jsConfig).finally(() => {
|
||||
weappPay(data.result.jsConfig).then((e) => {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
this.isPayOk = true;
|
||||
this.giftKey = data.giftCard.code;
|
||||
this.orderId = data.result.orderId || ''
|
||||
});
|
||||
|
||||
}).catch(err => {
|
||||
this.makeAgain()
|
||||
uni.showToast({
|
||||
title: '支付取消,请在我的礼品卡中完成支付',
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
});
|
||||
}).finally(() => {
|
||||
|
||||
})
|
||||
break;
|
||||
|
||||
case "WECHAT_APP_PAY":
|
||||
|
||||
Reference in New Issue
Block a user