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();