Pārlūkot izejas kodu

有优惠券的项目,才请求优惠券接口

gcz 4 dienas atpakaļ
vecāks
revīzija
221b0e9a9e
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 7 2
      pages/choosePayment/choosePayment.vue

+ 7 - 2
pages/choosePayment/choosePayment.vue

@@ -335,8 +335,13 @@ export default {
       if (numType === 'single' && orderType === 'road' && !this.isMonthPay && this.wxEnv) {
         this.isShowCoupon = true;
         this.isCancelCoupon = true;
-		if(this.projectFlag !== 'zhenning'){
-			this.getCouponList(details.id);
+		// if(this.projectFlag !== 'zhenning'){
+		// 	this.getCouponList(details.id);
+		// }
+		//puding zhenning wudang zhijin
+		const excludedFlags = ['puding'];//有优惠券的项目,才请求优惠券接口
+		if (excludedFlags.includes(this.projectFlag)) {
+		    this.getCouponList(details.id);
 		}
       }
     },