fix:【C端】【订单】用户有待领取的订单,再次下单购买该立减金商品提示不是有效路由

This commit is contained in:
Apple 2022-10-27 16:04:08 +08:00
parent 0b72be4ca6
commit 07437fbd1d
1 changed files with 3 additions and 2 deletions

View File

@ -533,8 +533,9 @@
this.payType = payType
this.show = false
let orderInfo = await this.createdOrder(payType);
if (orderInfo.pay_status == 2) {//pay_status 2已支付
window.location.replace('http://test.86885.cn/paysuccess.html?order_number=' + orderInfo.order_number);
if (orderInfo.pay_status == 2||[1,2].includes(orderInfo.channel)) {//pay_status 2已支付 channel 1 支付宝 2微信
let orderNumber=orderInfo.pay_status == 2?orderInfo.order_number:orderInfo.original_order_number;
window.location.replace('http://test.86885.cn/paysuccess.html?order_number=' + orderNumber);
} else {
this.createdPay(orderInfo.order_number);
}