|
@@ -112,6 +112,10 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
// 可能还有隐藏上限,就是普通的points的使用,单次不能超过上限
|
|
|
+ if (this.orderDetail.parkingRecord.actualPayFee === 0) {
|
|
|
+ Toast('当前无需追加优惠')
|
|
|
+ return
|
|
|
+ }
|
|
|
if(type === 'add' && this.isAdd()) {
|
|
|
this.pointsTime = this.pointsTime + 1
|
|
|
this.newMemberPointsAvailable = this.newMemberPointsAvailable - this.newMemberPoints.pointsPerUnit
|
|
@@ -122,7 +126,7 @@ export default {
|
|
|
// 调整points的积分available
|
|
|
},
|
|
|
isAdd() {
|
|
|
- if (this.orderDetail.parkingRecord.actualPayFee === 0) return Toast('当前无需追加优惠')
|
|
|
+
|
|
|
const {usedDiscountHours, maxDiscountHours, totalAvailable, pointsPerUnit} = this.newMemberPoints
|
|
|
// const { hourPrice = 0 } = this.orderDetail?.parkingRule
|
|
|
const availableDiscountHours = maxDiscountHours - usedDiscountHours
|