From 5f90def6082162de21b63b8ce44998a75711aab8 Mon Sep 17 00:00:00 2001 From: Apple <> Date: Wed, 26 Oct 2022 10:06:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E3=80=90C=E7=AB=AF?= =?UTF-8?q?=E3=80=91=E3=80=90=E8=AE=A2=E5=8D=95=E3=80=91=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=82=B9=E5=87=BB=E8=BF=94=E5=9B=9E=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=BF=94=E5=9B=9E=E5=88=B0=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paysuccess.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/paysuccess.html b/paysuccess.html index 0969a04..dcc40c0 100644 --- a/paysuccess.html +++ b/paysuccess.html @@ -72,7 +72,7 @@ ); this.orderNumber = orderNumber; this.getOrderDetail(orderNumber); - + localStorage.setItem('token',this.getQueryString( window.location.search,"token")); }, methods: { getQueryString(path, name) { @@ -109,15 +109,14 @@ req.axiosGet("/key/order/detail/" + id).then((res) => { if (res.code == 200) { this.orderInfo = res.data; + this.payResult=true; if (res.data.type == 2) { //1 商品 2立减金 //channel 1支付宝 2微信 this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段 this.redirect_url = res.data.wechat_redirect_url; this.payStatus=res.data.pay_status; - this.payResult=true; - if(res.data.type!=2){ - this.countdownFn(); - } + }else{ + this.countdownFn(); } } }).catch();