fix:修复【C端】【订单】立减金订单支付成功页面点击返回,没有返回到正确的订单列表。

This commit is contained in:
Apple 2022-10-26 10:06:14 +08:00
parent a7f8b199f5
commit 5f90def608
1 changed files with 4 additions and 5 deletions

View File

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