From 07437fbd1d85d1c7450e8608cf71be733a7bb606 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Thu, 27 Oct 2022 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E3=80=90C=E7=AB=AF=E3=80=91=E3=80=90?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E3=80=91=E7=94=A8=E6=88=B7=E6=9C=89=E5=BE=85?= =?UTF-8?q?=E9=A2=86=E5=8F=96=E7=9A=84=E8=AE=A2=E5=8D=95=EF=BC=8C=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E4=B8=8B=E5=8D=95=E8=B4=AD=E4=B9=B0=E8=AF=A5=E7=AB=8B?= =?UTF-8?q?=E5=87=8F=E9=87=91=E5=95=86=E5=93=81=E6=8F=90=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E6=98=AF=E6=9C=89=E6=95=88=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/details.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }