소스 검색

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

gcz 4 일 전
부모
커밋
221b0e9a9e
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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);
 		}
       }
     },