|
@@ -72,22 +72,22 @@ export default {
|
|
|
// 当存在待支付金额 或者 用户登陆
|
|
|
return !this.orderDetail?.parkingRecord?.totalFeeInYuan || (JSON.stringify(this.member) !== '{}' && !this.orderDetail.parkInfo);
|
|
|
},
|
|
|
- integralDesc() {
|
|
|
- if (this.pointsTime > 0) {
|
|
|
- // 深圳特殊处理(单位:金额)
|
|
|
- if (this.orderDetail.parkInfo.parkMallCode === 5 || this.orderDetail.parkInfo.parkMallCode === 999) {
|
|
|
- return `已选择兑换${this.pointsTime}元`;
|
|
|
- }
|
|
|
- return `已选择兑换${this.pointsTime}小时`;
|
|
|
- }
|
|
|
- if (this.bonusCopy < this.integral) {
|
|
|
- return `${this.integral}积分可停车1小时`;
|
|
|
- }
|
|
|
- if (this.orderDetail.parkInfo.parkMallCode === 3 && app.globalData.member?.currnentintegral >= this.integral && !this.bonus) {
|
|
|
- return `今日已达上限`;
|
|
|
- }
|
|
|
- return `${this.available}积分可减免`;
|
|
|
- },
|
|
|
+ // integralDesc() {
|
|
|
+ // if (this.pointsTime > 0) {
|
|
|
+ // // 深圳特殊处理(单位:金额)
|
|
|
+ // if (this.orderDetail.parkInfo.parkMallCode === 5 || this.orderDetail.parkInfo.parkMallCode === 999) {
|
|
|
+ // return `已选择兑换${this.pointsTime}元`;
|
|
|
+ // }
|
|
|
+ // return `已选择兑换${this.pointsTime}小时`;
|
|
|
+ // }
|
|
|
+ // if (this.bonusCopy < this.integral) {
|
|
|
+ // return `${this.integral}积分可停车1小时`;
|
|
|
+ // }
|
|
|
+ // if (this.orderDetail.parkInfo.parkMallCode === 3 && app.globalData.member?.currnentintegral >= this.integral && !this.bonus) {
|
|
|
+ // return `今日已达上限`;
|
|
|
+ // }
|
|
|
+ // return `${this.available}积分可减免`;
|
|
|
+ // },
|
|
|
},
|
|
|
filters: {
|
|
|
parkingTime(val) {
|
|
@@ -386,6 +386,13 @@ export default {
|
|
|
return 1;
|
|
|
},
|
|
|
coupon() {
|
|
|
+ // 如果没有电子券的话,提示用户
|
|
|
+ if (this.coupon.length === 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '暂无可使用的优惠券,请前往积分商城兑换优惠券'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$router.push({
|
|
|
path: 'parkingFeeCoupon',
|
|
|
});
|