Procházet zdrojové kódy

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

gcz před 3 dny
rodič
revize
221b0e9a9e
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  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);
 		}
       }
     },