fix(创建优惠券订单):修复【c端】券后价为0的,点击立即支付直接创建订单,不需要到微信或支付宝进行支付

This commit is contained in:
Apple 2022-10-18 14:38:46 +08:00
parent aa1d27f591
commit a3e7c4f333
1 changed files with 5 additions and 1 deletions

View File

@ -451,7 +451,11 @@
createdPay (orderNumber) {
req.axiosGet('/key/coupon/createPay/' + orderNumber).then(res => {
if (res.code == 200) {
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);
}