diff --git a/coupon/details.html b/coupon/details.html index 9fe65b3..e6c8c7a 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -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); }