浏览代码

解藕单日上限跟积分上限的限制

john 2 年之前
父节点
当前提交
e2a0b41f63
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/store/order/points.js

+ 6 - 6
src/store/order/points.js

@@ -127,9 +127,9 @@ export default {
       if ( type === 'add' && (state.pointsTime >= maxPointsTime || state.usingTotalDiscount >= state.availableDiscountFee) ) {
         // 以下是深圳积分上限规则
         // 超出抵扣上限,每日最高可抵扣${this.parkFee.parkInfoEntity.maxOneDayHour}元 '优惠金额' >= '每日最高可抵扣'
-        if ( state.usingTotalDiscount >= state.availableDiscountFee && !msg ) {
-          msg = `超出抵扣上限,每日最高可抵扣${ state.maxOneDayDiscountFee }元`
-        }
+        // if ( state.usingTotalDiscount >= state.availableDiscountFee && !msg ) {
+        //   msg = `超出抵扣上限,每日最高可抵扣${ state.maxOneDayDiscountFee }元`
+        // }
         // 超出抵扣上限,每次最高可抵扣${this.integralMaxMoney}元 '积分兑换时长' >= '深圳前海停车积分上限'q
         if ( state.pointsTime >= state.maxDiscountFee && !msg ) {
           msg = `超出抵扣上限,每次最高可抵扣${ state.maxDiscountFee }元`
@@ -168,9 +168,9 @@ export default {
     }
     // 计算浦东的上限
     // if ( type === 'add' && state.usingTotalDiscount >= state.availableDiscountFee && parkMallCode === 5 && state.unlimitUsePoints === 'LIMIT') {
-    if ( type === 'add' && state.usingTotalDiscount >= state.availableDiscountFee && parkMallCode === 5 && !state.unLimitWeekendPoints) {
-      return;
-    }
+    // if ( type === 'add' && state.usingTotalDiscount >= state.availableDiscountFee && parkMallCode === 5 && !state.unLimitWeekendPoints) {
+    //   return;
+    // }
     if ( type === 'add' ) {
       let pointsTime = 0;
       pointsTime = state.pointsTime + (parkMallCode === 5 ? state.unitAmount : state.unitHour);