Ver código fonte

Merge pull request #472 from John-Hong/John/release-3.4.0/SCRM-5888

fix(SCRM-5888): 补充对沈阳、天津优惠上限的判断逻辑
Tron 1 ano atrás
pai
commit
b402b86f6d
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      src/pages/parkingFeeV2/Discounts/index.js

+ 6 - 0
src/pages/parkingFeeV2/Discounts/index.js

@@ -294,6 +294,12 @@ export default {
           this.isMember = this.memberGrade.hasOwnProperty('selected')? !this.memberGrade.selected : !this.memberGrade.defaultSelected
           this.isReduces = this.consume.hasOwnProperty('selected')? !this.consume.selected : !this.consume.defaultSelected
         }
+        if(!this.isMember && this.remainPrice > this.availableDiscountFee && this.checkedList.indexOf('member') < 0) {
+          this.isMember = true
+        }
+        if(!this.isReduces && this.remainPrice > this.availableDiscountFee && this.checkedList.indexOf('reduces') < 0) {
+          this.isReduces = true
+        }
       }
     },
     maxReduceDiscountInit() {