|
@@ -128,7 +128,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
// 单日上限限制
|
|
|
- if ( oneDayLimitation && !msg ) {
|
|
|
+ if ( oneDayLimitation && !msg && parkMallCode !== 5) {
|
|
|
const maxOneTimeDiscountFee = maxOneTimeDiscountTime * hourPrice
|
|
|
const remainConsumeTimeFee = remainConsumeTime * hourPrice
|
|
|
// 计算单日剩余 remainConsumeTime
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
// 单次上限限制
|
|
|
- if ( oneTimeLimitation && !msg ) {
|
|
|
+ if ( oneTimeLimitation && !msg && parkMallCode !== 5) {
|
|
|
const maxOneTimeDiscountFee = maxOneTimeDiscountTime * hourPrice
|
|
|
const remainConsumeTimeFee = remainConsumeTime * hourPrice
|
|
|
// 计算单日剩余 remainConsumeTime
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
}
|
|
|
if ( type === 'add' ) {
|
|
|
let pointsTime = 0;
|
|
|
- pointsTime = state.pointsTime + (parkMallCode === 1 ? state.unitAmount : state.unitHour);
|
|
|
+ pointsTime = state.pointsTime + (parkMallCode === 5 ? state.unitAmount : state.unitHour);
|
|
|
const available = state.available - state.pointsPerUnit;
|
|
|
const usingTotalDiscount = state.usingTotalDiscount + state.unitAmount; // 重新计算已经使用的优惠逻辑
|
|
|
if ( available > -1 ) {
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if ( type === 'minus' && state.pointsTime > 0 ) {
|
|
|
- const pointsTime = state.pointsTime - (parkMallCode === 1 ? state.unitAmount : state.unitHour);
|
|
|
+ const pointsTime = state.pointsTime - (parkMallCode === 5 ? state.unitAmount : state.unitHour);
|
|
|
// 如果是深圳车场
|
|
|
commit('setAvailable',state.available + state.pointsPerUnit);
|
|
|
commit('setPointsTime',pointsTime);
|