Procházet zdrojové kódy

fix(SCRM-4776): [DE][C端]临时停车,PD,用户只有一个小时消费减免,还有电子券或者积分的情况,当用户取消掉积分或者电子券优惠,再点击停车优惠,用户的消费减免就会变成2小时

john před 1 rokem
rodič
revize
7e35e326c5

+ 2 - 1
src/pages/parkingFeeV2/mixins/parkingFeeDiscounts.js

@@ -317,7 +317,8 @@ export default {
         // 转化公式之后
         // this.maxReduceDiscount = remainConsumeTime > couponCodesLength ? couponCodesLength : remainConsumeTime
         this.maxReduceDiscount = otherFee > couponCodesLength ? couponCodesLength : otherFee
-        this.reduceHours = this.maxReduceDiscount
+        // this.reduceHours = this.maxReduceDiscount
+        !isSelected && (this.reduceHours = this.maxReduceDiscount)
         return
         // 如果超过限制就置灰
         // const maxOneTimeDiscountTimeFee = (couponCodes.split('#').length) * hourPrice