Эх сурвалжийг харах

fix(KIP-10830): 【DE】【C端】【天津】临时停车,当用户的抵扣金额达到应缴金额后,用户无法操作积分的增加和减少

john 2 жил өмнө
parent
commit
125a533f2d

+ 2 - 3
src/store/order/points.js

@@ -145,8 +145,7 @@ export default {
       // 当前使用优惠 state.usingTotalDiscount
       // 判断符合上限
       // 浦东积分上限判断
-      if ( (parkMallCode === 1 && state.usingTotalDiscount >= maxOneDayDiscountFee) 
-      || (parkMallCode === 6 && state.usingTotalDiscount >= state.availableDiscountFee ) ) {
+      if ( parkMallCode === 1 && state.usingTotalDiscount >= maxOneDayDiscountFee ) {
         msg = `超出抵扣上限,每次最高可抵扣${ maxOneDayDiscountFee }元`
       }
     }
@@ -158,7 +157,7 @@ export default {
       // 当前使用优惠 state.usingTotalDiscount
       // 判断符合上限
       // 浦东积分上限判断: 减去纸质优惠券的金额
-      if ( (parkMallCode === 1 && state.usingTotalDiscount >= maxOneTimeDiscountFee) || (parkMallCode === 6 && state.usingTotalDiscount >= state.availableDiscountFee) ) {
+      if ( parkMallCode === 1 && state.usingTotalDiscount >= maxOneTimeDiscountFee) {
         msg = `超出抵扣上限,每次最高可抵扣${ maxOneTimeDiscountTime }小时`
       }
     }