|
@@ -324,13 +324,13 @@ const actions = {
|
|
if (type === 'add' && state.pointsTime < maxPointsTime) {
|
|
if (type === 'add' && state.pointsTime < maxPointsTime) {
|
|
const pointsTime = state.pointsTime + state.unitAmount;
|
|
const pointsTime = state.pointsTime + state.unitAmount;
|
|
// 如果是深圳车场
|
|
// 如果是深圳车场
|
|
- commit('setAvailable', state.available - state.pointsPerUnit / state.unitAmount);
|
|
|
|
|
|
+ commit('setAvailable', state.available - state.pointsPerUnit);
|
|
commit('setPointsTime', pointsTime);
|
|
commit('setPointsTime', pointsTime);
|
|
}
|
|
}
|
|
if (type === 'minus' && state.pointsTime > 0) {
|
|
if (type === 'minus' && state.pointsTime > 0) {
|
|
const pointsTime = state.pointsTime - state.unitAmount;
|
|
const pointsTime = state.pointsTime - state.unitAmount;
|
|
// 如果是深圳车场
|
|
// 如果是深圳车场
|
|
- commit('setAvailable', state.available + state.pointsPerUnit / state.unitAmount);
|
|
|
|
|
|
+ commit('setAvailable', state.available + state.pointsPerUnit);
|
|
commit('setPointsTime', pointsTime);
|
|
commit('setPointsTime', pointsTime);
|
|
}
|
|
}
|
|
},
|
|
},
|