fix(创建优惠券订单):修复【c端】券后价为0的,点击立即支付直接创建订单,不需要到微信或支付宝进行支付
This commit is contained in:
parent
aa1d27f591
commit
a3e7c4f333
|
@ -451,7 +451,11 @@
|
|||
createdPay (orderNumber) {
|
||||
req.axiosGet('/key/coupon/createPay/' + orderNumber).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.payWayRun(res.data);
|
||||
if(res.data.pay_status){//pay_status 2已支付
|
||||
window.location.replace('http://test.86885.cn/paysuccess.html?order_number='+res.data.order_number);
|
||||
}else{
|
||||
this.payWayRun(res.data);
|
||||
}
|
||||
} else {
|
||||
this.openErrorDialog(res.message);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue