|
@@ -140,7 +140,7 @@ export default {
|
|
}
|
|
}
|
|
// console.log(140, this.consume, this.consume.hasOwnProperty('selected'), JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected : this.consume.defaultSelected, this.consume.defaultSelected)
|
|
// console.log(140, this.consume, this.consume.hasOwnProperty('selected'), JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected : this.consume.defaultSelected, this.consume.defaultSelected)
|
|
// console.log(143, JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected !== undefined : this.consume.defaultSelected !== undefined);
|
|
// console.log(143, JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected !== undefined : this.consume.defaultSelected !== undefined);
|
|
- if (JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected !== undefined : this.consume.defaultSelected !== undefined) {
|
|
|
|
|
|
+ if (JSON.stringify(this.consume) !== '{}' && this.consume.hasOwnProperty('selected') ? this.consume.selected : this.consume.defaultSelected !== undefined) {
|
|
this.checkedList.push('reduces');
|
|
this.checkedList.push('reduces');
|
|
this.isReduces = false;
|
|
this.isReduces = false;
|
|
// 如果存在拆分逻辑的话
|
|
// 如果存在拆分逻辑的话
|
|
@@ -175,7 +175,7 @@ export default {
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (type === 'minus') {
|
|
|
|
|
|
+ if (type === 'minus' && this.reduceHours > 1) {
|
|
this.reduceHours = this.reduceHours - 1;
|
|
this.reduceHours = this.reduceHours - 1;
|
|
this.remainPrice = this.remainPrice - hourPrice;
|
|
this.remainPrice = this.remainPrice - hourPrice;
|
|
return;
|
|
return;
|
|
@@ -214,7 +214,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.remainPrice = this.remainPrice - hourPrice;
|
|
this.remainPrice = this.remainPrice - hourPrice;
|
|
this.maxReduceDiscount = maxConsumeTime;
|
|
this.maxReduceDiscount = maxConsumeTime;
|
|
- this.reduceHours = 0;
|
|
|
|
|
|
+ // this.reduceHours = maxConsumeTime;
|
|
}
|
|
}
|
|
const [isCrossMessage = false, maxReduceDiscount = 0] = this.crossMessage();
|
|
const [isCrossMessage = false, maxReduceDiscount = 0] = this.crossMessage();
|
|
if (isCrossMessage) {
|
|
if (isCrossMessage) {
|