|
@@ -234,6 +234,9 @@ export default {
|
|
|
}
|
|
|
if ( type === 'minus' && state.pointsTime > 0 ) {
|
|
|
const pointsTime = state.pointsTime - (isAmount ? state.unitAmount : state.unitHour);
|
|
|
+ if(pointsTime < 0) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const usingTotalDiscount = state.usingTotalDiscount - (isAmount ? state.unitAmount : state.unitHour * hourPrice); // 重新计算已经使用的优惠逻辑
|
|
|
// 如果是深圳车场
|
|
|
commit('setAvailable',state.available + state.pointsPerUnit);
|