fix:修复【C端】【订单】立减金订单支付成功页面点击返回,没有返回到正确的订单列表。
This commit is contained in:
parent
a7f8b199f5
commit
5f90def608
|
@ -72,7 +72,7 @@
|
||||||
);
|
);
|
||||||
this.orderNumber = orderNumber;
|
this.orderNumber = orderNumber;
|
||||||
this.getOrderDetail(orderNumber);
|
this.getOrderDetail(orderNumber);
|
||||||
|
localStorage.setItem('token',this.getQueryString( window.location.search,"token"));
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getQueryString(path, name) {
|
getQueryString(path, name) {
|
||||||
|
@ -109,17 +109,16 @@
|
||||||
req.axiosGet("/key/order/detail/" + id).then((res) => {
|
req.axiosGet("/key/order/detail/" + id).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.orderInfo = res.data;
|
this.orderInfo = res.data;
|
||||||
|
this.payResult=true;
|
||||||
if (res.data.type == 2) { //1 商品 2立减金
|
if (res.data.type == 2) { //1 商品 2立减金
|
||||||
//channel 1支付宝 2微信
|
//channel 1支付宝 2微信
|
||||||
this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段
|
this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段
|
||||||
this.redirect_url = res.data.wechat_redirect_url;
|
this.redirect_url = res.data.wechat_redirect_url;
|
||||||
this.payStatus=res.data.pay_status;
|
this.payStatus=res.data.pay_status;
|
||||||
this.payResult=true;
|
}else{
|
||||||
if(res.data.type!=2){
|
|
||||||
this.countdownFn();
|
this.countdownFn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}).catch();
|
}).catch();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue