|
@@ -344,7 +344,7 @@ export default {
|
|
|
integralDescTule({commit,dispatch,state},{pointsTime, parkMallCode, available, pointsPerUnit, enableNewMemberPoints, newMemberPoints,unitAmount, checkOutResponse} ) {
|
|
|
// commit('setIntegralDesc',pointsTime ? `已选择兑换${ pointsTime }${parkMallCode === 5 || parkMallCode === 10 ? '元' : '小时'}` : available > pointsPerUnit ? `${ available }积分可减免` : `${ pointsPerUnit }积分可停车1小时`); // 积分优惠处的描述
|
|
|
if(pointsTime) {
|
|
|
- commit('setIntegralDesc', `已选择兑换${ pointsTime }${parkMallCode === 5 || parkMallCode === 10 ? '元' : '小时'}`)
|
|
|
+ commit('setIntegralDesc', `已选择兑换${ pointsTime }${[5, 10].indexOf(parkMallCode)> -1 ? '元' : '小时'}`)
|
|
|
return
|
|
|
}
|
|
|
if(available > pointsPerUnit) {
|
|
@@ -357,7 +357,7 @@ export default {
|
|
|
commit('setIntegralDesc', `${ available }积分可减免`)
|
|
|
return
|
|
|
}
|
|
|
- commit('setIntegralDesc', `${ pointsPerUnit }积分可停车${[5, 10].indexOf(orderDetail.parkInfo.parkMallCode)> -1 ? unitAmount + '元' : '1小时'}`)
|
|
|
+ commit('setIntegralDesc', `${ pointsPerUnit }积分可停车${[5, 10].indexOf(parkMallCode)> -1 ? unitAmount + '元' : '1小时'}`)
|
|
|
}
|
|
|
}
|
|
|
|