diff --git a/coupon/details.html b/coupon/details.html
index 5f7c6f1..6141f0e 100644
--- a/coupon/details.html
+++ b/coupon/details.html
@@ -510,7 +510,11 @@
this.payType = payType
this.show = false
let orderInfo = await this.createdOrder(payType);
- this.createdPay(orderInfo.order_number);
+ if (orderInfo.pay_status==2) {//pay_status 2已支付
+ window.location.replace('http://test.86885.cn/paysuccess.html?order_number=' + orderInfo.order_number);
+ }else{
+ this.createdPay(orderInfo.order_number);
+ }
},
//创建优惠券订单
createdOrder (payType) {
@@ -543,11 +547,7 @@
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);
- }
+ this.payWayRun(res.data);
} else {
this.openErrorDialog(res.message);
}