|
@@ -300,7 +300,9 @@ export default {
|
|
|
const isSelected = this.consume.hasOwnProperty('selected') ? this.consume.selected : this.consume.defaultSelected;
|
|
|
const isCheckedListSelected = this.checkedList.indexOf('consume') > -1;
|
|
|
if(maxOneTimeDiscountTimeFee > this.remainPrice) {
|
|
|
- this.maxReduceDiscount = (maxOneTimeDiscountTimeFee - this.remainPrice) / hourPrice + (isSelected ? this.reduceHours : 0)
|
|
|
+ // 优惠计算公式: 剩余可用优惠 + 已经选择的优惠 = 总的消费减免的优惠(小时)
|
|
|
+ const maxReduceDiscount = (maxOneTimeDiscountTimeFee - this.remainPrice) / hourPrice + (isSelected ? this.reduceHours : 0)
|
|
|
+ this.maxReduceDiscount = maxReduceDiscount > maxOneTimeDiscountTime ? maxOneTimeDiscountTime: maxReduceDiscount
|
|
|
!isSelected && (this.reduceHours = this.maxReduceDiscount)
|
|
|
return
|
|
|
}
|
|
@@ -372,7 +374,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
memberClick() {
|
|
|
- // debugger
|
|
|
const { maxConsumeTime, remainConsumeTime, availableDiscountFee, hourPrice } = this.orderDetail.parkingRule;
|
|
|
if (this.checkedList.indexOf('member') > -1) {
|
|
|
/* 浦东 */
|