|
@@ -180,7 +180,7 @@ export default {
|
|
|
if(!msg && type === 'add' && parkMallCode === 3) {
|
|
|
const{ maxDiscountFee = 0, unitAmount =0 } = points
|
|
|
const userMaxDiscountFee = availableDiscountFee > maxDiscountFee ? maxDiscountFee : availableDiscountFee
|
|
|
- const isMax = (newMemberPoints.totalAvailable - newMemberPoints.available) + (points.totalAvailable - points.available) >= points.totalAvailable
|
|
|
+ const isMax = (newMemberPoints.totalAvailable - newMemberPoints.available) + (points.totalAvailable - points.available) >= points.totalAvailable && points.totalAvailable && (points.totalAvailable || points.available)
|
|
|
if ( maxDiscountFee && state.pointsTime >= userMaxDiscountFee/unitAmount || isMax) {
|
|
|
msg = `超出抵扣上限,每日最高可抵扣${ maxDiscountFee/unitAmount }小时`
|
|
|
}
|