|
@@ -265,11 +265,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-// const app = getApp()
|
|
|
|
-const app = {};
|
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import { mapState } from 'vuex';
|
|
import { mapState } from 'vuex';
|
|
-// import MemberCacheTool from '@/utils/member-cache-tool.js';
|
|
|
|
import log from '@/utils/log.js';
|
|
import log from '@/utils/log.js';
|
|
import { compare } from '@/utils/location.js';
|
|
import { compare } from '@/utils/location.js';
|
|
import uni from '@/utils/uniHooks';
|
|
import uni from '@/utils/uniHooks';
|
|
@@ -278,6 +275,7 @@ import { getPlatform } from '@/utils/index';
|
|
import { Dialog } from 'vant';
|
|
import { Dialog } from 'vant';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ name: 'parkingFeeDetail',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
bindflag: '',
|
|
bindflag: '',
|
|
@@ -289,7 +287,7 @@ export default {
|
|
params: {},
|
|
params: {},
|
|
integral: 0, // 积分
|
|
integral: 0, // 积分
|
|
bonus: 0, // 当前积分
|
|
bonus: 0, // 当前积分
|
|
- bonusCopy: 0, // 积分备份
|
|
|
|
|
|
+ // bonusCopy: 0, // 积分备份
|
|
bonusfee: 0, // 积分减免金额
|
|
bonusfee: 0, // 积分减免金额
|
|
hourMoney: 15,
|
|
hourMoney: 15,
|
|
payCarno: '',
|
|
payCarno: '',
|
|
@@ -318,8 +316,19 @@ export default {
|
|
popup: false,
|
|
popup: false,
|
|
integralToValue: 0, // 深圳前海停车500积分兑换5元
|
|
integralToValue: 0, // 深圳前海停车500积分兑换5元
|
|
integralMaxMoney: 0, // 深圳前海停车积分上限
|
|
integralMaxMoney: 0, // 深圳前海停车积分上限
|
|
|
|
+ // 是否重载
|
|
|
|
+ // isReload: '1',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ beforeRouteLeave(to, from, next) {
|
|
|
|
+ // 设置下一个路由的 meta
|
|
|
|
+ if (/index|home/.test(to.name)) {
|
|
|
|
+ // 不在缓存列表中,从cachedViews缓存列表中移除
|
|
|
|
+ this.$store.commit('cachedViews/DEL_CACHED_VIEW', from);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ next();
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
// 支付按钮状态
|
|
// 支付按钮状态
|
|
payBtnDisabled() {
|
|
payBtnDisabled() {
|
|
@@ -368,7 +377,6 @@ export default {
|
|
if (this.bonusCopy < this.integral) {
|
|
if (this.bonusCopy < this.integral) {
|
|
return `${this.integral}积分可停车1小时`;
|
|
return `${this.integral}积分可停车1小时`;
|
|
}
|
|
}
|
|
- // console.log(354, this.member);
|
|
|
|
if (
|
|
if (
|
|
this.parkMallCode === 3 &&
|
|
this.parkMallCode === 3 &&
|
|
this.member?.currnentintegral >= this.integral &&
|
|
this.member?.currnentintegral >= this.integral &&
|
|
@@ -457,14 +465,19 @@ export default {
|
|
groupId: (state) => state.groupId,
|
|
groupId: (state) => state.groupId,
|
|
mobile: (state) => state.mobile,
|
|
mobile: (state) => state.mobile,
|
|
projectId: (state) => state.projectId,
|
|
projectId: (state) => state.projectId,
|
|
|
|
+ bonusCopy: (state) => state.bonusCopy,
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
|
|
+ console.log('469 我终于知道为什么了', uni.getStorageSync('isReload'));
|
|
|
|
+ // if (uni.getStorageSync('isReload') === '4') {
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // uni.setStorageSync('isReload', '2');
|
|
const platform = getPlatform();
|
|
const platform = getPlatform();
|
|
if (platform === 'micromessenger') {
|
|
if (platform === 'micromessenger') {
|
|
initWxJsSdkConfig(['chooseWXPay']);
|
|
initWxJsSdkConfig(['chooseWXPay']);
|
|
if (window.wxJsSdkConfigInitPromise) {
|
|
if (window.wxJsSdkConfigInitPromise) {
|
|
- // console.log(397, window.wxJsSdkConfigInitPromise);
|
|
|
|
await window.wxJsSdkConfigInitPromise;
|
|
await window.wxJsSdkConfigInitPromise;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -473,55 +486,28 @@ export default {
|
|
this.payCarno = option.carno;
|
|
this.payCarno = option.carno;
|
|
this.orderno = option.orderno;
|
|
this.orderno = option.orderno;
|
|
this.id = option.id;
|
|
this.id = option.id;
|
|
- // 场景二维码记录(是否扫码进入)
|
|
|
|
- // app.globalData.paramsScene = {};
|
|
|
|
- // this.$saveSceneQrcodeDetail(
|
|
|
|
- // 'page',
|
|
|
|
- // 'parkingFeeDetail:' + option.id,
|
|
|
|
- // '缴费详情',
|
|
|
|
- // '',
|
|
|
|
- // '',
|
|
|
|
- // '',
|
|
|
|
- // ''
|
|
|
|
- // );
|
|
|
|
this.init();
|
|
this.init();
|
|
- // if (JSON.stringify(app.globalData.userInfo) !== "{}" && JSON.stringify(app.globalData.member) !== "{}") {
|
|
|
|
this.createParkOrder();
|
|
this.createParkOrder();
|
|
- // } else {
|
|
|
|
- // this.$refs.authorize.login("/pages/parkingFee/parkingFeeDetail", () => {
|
|
|
|
- // this.createParkOrder();
|
|
|
|
- // });
|
|
|
|
|
|
+ console.log('created', this.parkInfo);
|
|
|
|
+ // if (uni.getStorageSync('isReload') === '3') {
|
|
|
|
+ // console.log(487);
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: '/jump',
|
|
|
|
+ // query: this.$route.query,
|
|
|
|
+ // });
|
|
|
|
+ // return;
|
|
// }
|
|
// }
|
|
- // 埋点本地化
|
|
|
|
- // this.preUrl = uni.getStorageSync('previousUrl');
|
|
|
|
- // uni.setStorageSync('previousUrl', '/pages/parkingFee/parkingFeeDetail.vue');
|
|
|
|
},
|
|
},
|
|
- /* watch: {
|
|
|
|
- isInit() {
|
|
|
|
- console.log(
|
|
|
|
- 493493493,
|
|
|
|
- this.isInit,
|
|
|
|
- this.isInit?.projectId,
|
|
|
|
- this.isInit?.member?.vipcode
|
|
|
|
- );
|
|
|
|
- if (
|
|
|
|
- this.isInit &&
|
|
|
|
- this.isInit?.projectId &&
|
|
|
|
- this.isInit?.member?.vipcode
|
|
|
|
- ) {
|
|
|
|
- this.init();
|
|
|
|
- this.createParkOrder();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // member() {
|
|
|
|
- // this.init();
|
|
|
|
- // this.createParkOrder();
|
|
|
|
- // },
|
|
|
|
- // projectId() {
|
|
|
|
- // console.log(490490490, this.projectId)
|
|
|
|
|
|
+ activated() {
|
|
|
|
+ console.log('activated', uni.getStorageSync('isReload'));
|
|
|
|
+ // if (uni.getStorageSync('isReload') === '3') {
|
|
|
|
+ // console.log(487);
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: '/jump',
|
|
|
|
+ // query: this.$route.query,
|
|
|
|
+ // });
|
|
|
|
+ // return;
|
|
// }
|
|
// }
|
|
- }, */
|
|
|
|
- mounted() {
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: '停车支付',
|
|
title: '停车支付',
|
|
@@ -531,6 +517,7 @@ export default {
|
|
log.info('订单时间:' + this.orderCreateTime);
|
|
log.info('订单时间:' + this.orderCreateTime);
|
|
this.isPageHide = false;
|
|
this.isPageHide = false;
|
|
// 如果订单时间+3分钟-当前时间<=0 刷新订单
|
|
// 如果订单时间+3分钟-当前时间<=0 刷新订单
|
|
|
|
+ console.log(this.orderCreateTime, '----544----');
|
|
if (this.orderCreateTime) {
|
|
if (this.orderCreateTime) {
|
|
const countDownTime = moment(this.orderCreateTime)
|
|
const countDownTime = moment(this.orderCreateTime)
|
|
.add(180, 's')
|
|
.add(180, 's')
|
|
@@ -546,6 +533,7 @@ export default {
|
|
|
|
|
|
// 优惠减免(首停、会员、消费)
|
|
// 优惠减免(首停、会员、消费)
|
|
const checkedTotal = uni.getStorageSync('checkedTotal');
|
|
const checkedTotal = uni.getStorageSync('checkedTotal');
|
|
|
|
+ console.log(550, checkedTotal);
|
|
this.checkedTotal =
|
|
this.checkedTotal =
|
|
checkedTotal === 'null' || !checkedTotal ? 0 : checkedTotal;
|
|
checkedTotal === 'null' || !checkedTotal ? 0 : checkedTotal;
|
|
const discountTotal = uni.getStorageSync('discountTotal');
|
|
const discountTotal = uni.getStorageSync('discountTotal');
|
|
@@ -571,7 +559,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 页面初始清空缓存
|
|
// 页面初始清空缓存
|
|
init() {
|
|
init() {
|
|
- console.log('清理数据');
|
|
|
|
|
|
+ console.log('清理数据, 到底在执行几次?');
|
|
// 优惠减免(首停、会员、消费)
|
|
// 优惠减免(首停、会员、消费)
|
|
uni.removeStorageSync('checkedList'); // 选中list
|
|
uni.removeStorageSync('checkedList'); // 选中list
|
|
uni.removeStorageSync('checkedTotal'); // 选中count数
|
|
uni.removeStorageSync('checkedTotal'); // 选中count数
|
|
@@ -606,13 +594,10 @@ export default {
|
|
|
|
|
|
// 创建订单
|
|
// 创建订单
|
|
async createParkOrder() {
|
|
async createParkOrder() {
|
|
- // console.log(519);
|
|
|
|
try {
|
|
try {
|
|
- // return;
|
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中',
|
|
title: '加载中',
|
|
});
|
|
});
|
|
- // const openId = MemberCacheTool.getOpenId(app);
|
|
|
|
const params = {
|
|
const params = {
|
|
carno: this.payCarno,
|
|
carno: this.payCarno,
|
|
mallid: this.mallid,
|
|
mallid: this.mallid,
|
|
@@ -623,135 +608,13 @@ export default {
|
|
groupId: this.groupId,
|
|
groupId: this.groupId,
|
|
createuser: 'sys_miniprogram',
|
|
createuser: 'sys_miniprogram',
|
|
};
|
|
};
|
|
-
|
|
|
|
- // const params = {"carno":"沪K99118","createuser":"sys_miniprogram","groupId":"8a8884e77cc9e70a017cca14d07e0002","mallid":"8a88835c7cd96d31017cda3f77e80003","mobile":"13901890884","openId":"ozdsB4_V8HXo0pwmyMc612j8CUY0","vipcode":"01900734052"}
|
|
|
|
- // const params = {
|
|
|
|
- // carno: '皖EEEEEE',
|
|
|
|
-
|
|
|
|
- // mallid: '8aaa80b47c784020017c78b00d060022',
|
|
|
|
-
|
|
|
|
- // openId: 'ozdsB4yx3I7ez2Ba3DgEmeSR-CFY',
|
|
|
|
-
|
|
|
|
- // vipcode: 'KERRY100212801',
|
|
|
|
-
|
|
|
|
- // mobile: '15267617473',
|
|
|
|
-
|
|
|
|
- // groupId: '8aaa81947c6e1ca0017c7201e82d0001',
|
|
|
|
-
|
|
|
|
- // createuser: 'sys_miniprogram',
|
|
|
|
- // };
|
|
|
|
this.$md(params);
|
|
this.$md(params);
|
|
- // console.log(623);
|
|
|
|
- // console.log(567, this.$baseURL + 'api/1.0/park/createParkOrderAndCarFee')
|
|
|
|
- // console.log({
|
|
|
|
- // // path: this.$baseURL + 'api/1.0/park/createParkOrder',
|
|
|
|
- // path: this.$baseURL + 'api/1.0/park/createParkOrderAndCarFee',
|
|
|
|
- // // path: 'http://172.21.90.87:8083/xcrm-api/api/1.0/park/createParkOrderAndCarFee',
|
|
|
|
- // data: params,
|
|
|
|
- // method: 'POST',
|
|
|
|
- // header: JSON.parse(uni.getStorageSync('handleUser')),
|
|
|
|
- // });
|
|
|
|
const res = await this.$request({
|
|
const res = await this.$request({
|
|
url: this.$baseURL + 'api/1.0/park/createParkOrderAndCarFee',
|
|
url: this.$baseURL + 'api/1.0/park/createParkOrderAndCarFee',
|
|
- // path: 'http://172.21.90.87:8083/xcrm-api/api/1.0/park/createParkOrderAndCarFee',
|
|
|
|
data: params,
|
|
data: params,
|
|
method: 'POST',
|
|
method: 'POST',
|
|
header: JSON.parse(uni.getStorageSync('handleUser')),
|
|
header: JSON.parse(uni.getStorageSync('handleUser')),
|
|
});
|
|
});
|
|
-
|
|
|
|
- /* const res = {
|
|
|
|
- data: {
|
|
|
|
- code: 0,
|
|
|
|
- msg: 'success',
|
|
|
|
- data: {
|
|
|
|
- id: null,
|
|
|
|
- parkServiceFee: null,
|
|
|
|
- noCarNo: null,
|
|
|
|
- parkPayFee: null,
|
|
|
|
- addFee: null,
|
|
|
|
- outTradeNo: null,
|
|
|
|
- isUseFree: null,
|
|
|
|
- type: null,
|
|
|
|
- openTime: null,
|
|
|
|
- parkname: null,
|
|
|
|
- parkcode: 'kerry_bj_park',
|
|
|
|
- parksign: null,
|
|
|
|
- channel: null,
|
|
|
|
- orderno: null,
|
|
|
|
- tradeId: '90C01E53-874E-4B44-ABED-D2E43B71518E',
|
|
|
|
- accountId: null,
|
|
|
|
- merchantAccount: null,
|
|
|
|
- status: 1,
|
|
|
|
- remark: null,
|
|
|
|
- carno: '浙C12410',
|
|
|
|
- mobile: null,
|
|
|
|
- vipcode: null,
|
|
|
|
- vipName: null,
|
|
|
|
- memberGrade: null,
|
|
|
|
- entertime: '2022-08-31 10:03:30',
|
|
|
|
- outtime: '2022-09-13 15:07:38',
|
|
|
|
- serviceMin: 19024.0,
|
|
|
|
- servicehour: 317.07,
|
|
|
|
- servicefee: 18825,
|
|
|
|
- bonusfee: null,
|
|
|
|
- bonus: null,
|
|
|
|
- newMemberBonus: null,
|
|
|
|
- newMemberBonusMin: null,
|
|
|
|
- bonusFeeMin: null,
|
|
|
|
- couponfee: null,
|
|
|
|
- couponfeeMin: null,
|
|
|
|
- otherfee: 0,
|
|
|
|
- consumeFee: null,
|
|
|
|
- consumeFeeHour: null,
|
|
|
|
- consumeFeeMin: null,
|
|
|
|
- consumeTicket: null,
|
|
|
|
- useConsumeFee: null,
|
|
|
|
- memberGradeFee: null,
|
|
|
|
- memberGradeFeeHour: null,
|
|
|
|
- memberGradeFeeMin: null,
|
|
|
|
- paperCouponFee: null,
|
|
|
|
- paperCouponFeeMin: null,
|
|
|
|
- paperCoupons: null,
|
|
|
|
- paperCouponCode: null,
|
|
|
|
- firstParkFee: null,
|
|
|
|
- firstParkFeeMin: null,
|
|
|
|
- payfee: null,
|
|
|
|
- doflag: null,
|
|
|
|
- totalfee: null,
|
|
|
|
- usetotalfee: null,
|
|
|
|
- paytype: null,
|
|
|
|
- paykind: null,
|
|
|
|
- paychannel: null,
|
|
|
|
- integraladjustid: null,
|
|
|
|
- refundIntegralAdjustId: null,
|
|
|
|
- couponcode: null,
|
|
|
|
- mallid: null,
|
|
|
|
- createuser: null,
|
|
|
|
- updateuser: null,
|
|
|
|
- deptId: null,
|
|
|
|
- groupId: null,
|
|
|
|
- creator: null,
|
|
|
|
- createDate: null,
|
|
|
|
- updater: null,
|
|
|
|
- updateDate: null,
|
|
|
|
- openId: null,
|
|
|
|
- refundNo: null,
|
|
|
|
- wxState: null,
|
|
|
|
- isInvoice: null,
|
|
|
|
- invoiceId: null,
|
|
|
|
- payStatus: null,
|
|
|
|
- notifyStatus: null,
|
|
|
|
- timeoutStatus: null,
|
|
|
|
- refundStatus: null,
|
|
|
|
- parkMallCode: null,
|
|
|
|
- projectId: null,
|
|
|
|
- pspName: null,
|
|
|
|
- newMemeberBonusFee: null,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- }; */
|
|
|
|
- // console.log('590590590res', res);
|
|
|
|
- // return;
|
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
this.bindflag = res.data.data.bind;
|
|
this.bindflag = res.data.data.bind;
|
|
@@ -762,15 +625,6 @@ export default {
|
|
uni.setStorageSync('orderno', this.parkInfo.orderno);
|
|
uni.setStorageSync('orderno', this.parkInfo.orderno);
|
|
if (!this.parkInfo.servicefee && this.initFlag) {
|
|
if (!this.parkInfo.servicefee && this.initFlag) {
|
|
this.initFlag = false;
|
|
this.initFlag = false;
|
|
- // uni.showModal({
|
|
|
|
- // showCancel: false,
|
|
|
|
- // title: '提示',
|
|
|
|
- // content: '当前无需缴费',
|
|
|
|
- // complete: () => {
|
|
|
|
- // // this.createParkOrder();
|
|
|
|
- // this.$router.back();
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
Dialog.alert({
|
|
Dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: '当前无需缴费',
|
|
message: '当前无需缴费',
|
|
@@ -781,9 +635,7 @@ export default {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- // console.log(629, this.member);
|
|
|
|
if (this.member) {
|
|
if (this.member) {
|
|
- // console.log(639);
|
|
|
|
this.getDiscount();
|
|
this.getDiscount();
|
|
} else {
|
|
} else {
|
|
// 未登录状态显示纸质券
|
|
// 未登录状态显示纸质券
|
|
@@ -854,7 +706,8 @@ export default {
|
|
this.durationCopy = this.duration;
|
|
this.durationCopy = this.duration;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.bonusCopy = this.bonus;
|
|
|
|
|
|
+ // this.bonusCopy = this.bonus;
|
|
|
|
+ this.$store.commit('SET_BONUS_COPY', this.bonus);
|
|
}
|
|
}
|
|
if (!this.parkFee.parkInfoEntity) {
|
|
if (!this.parkFee.parkInfoEntity) {
|
|
return;
|
|
return;
|
|
@@ -983,7 +836,8 @@ export default {
|
|
|
|
|
|
// 积分确认
|
|
// 积分确认
|
|
confirm() {
|
|
confirm() {
|
|
- this.bonusCopy = this.bonus;
|
|
|
|
|
|
+ // this.bonusCopy = this.bonus;
|
|
|
|
+ this.$store.commit('SET_BONUS_COPY', this.bonus);
|
|
this.durationCopy = this.duration;
|
|
this.durationCopy = this.duration;
|
|
// this.$refs.popup.close();
|
|
// this.$refs.popup.close();
|
|
this.popup = false;
|
|
this.popup = false;
|
|
@@ -1107,10 +961,13 @@ export default {
|
|
// 跳转首停、会员、消费减免页面
|
|
// 跳转首停、会员、消费减免页面
|
|
discounts() {
|
|
discounts() {
|
|
if (!this.hasDiscount && this.parkMallCode !== 2) {
|
|
if (!this.hasDiscount && this.parkMallCode !== 2) {
|
|
- return uni.showToast({
|
|
|
|
- title: '暂无可用优惠',
|
|
|
|
- icon: 'none',
|
|
|
|
|
|
+ return Toast({
|
|
|
|
+ message: '暂无可用优惠',
|
|
});
|
|
});
|
|
|
|
+ // return uni.showToast({
|
|
|
|
+ // title: '暂无可用优惠',
|
|
|
|
+ // icon: 'none',
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/parkingFeeDiscounts',
|
|
path: '/parkingFeeDiscounts',
|
|
@@ -1119,7 +976,7 @@ export default {
|
|
|
|
|
|
// 自动勾选优惠 优先级:会员/消费->电子券->积分
|
|
// 自动勾选优惠 优先级:会员/消费->电子券->积分
|
|
autoCheckDiscounts() {
|
|
autoCheckDiscounts() {
|
|
- // console.log('首次进来', this.parkFee);
|
|
|
|
|
|
+ console.log('首次进来', this.parkFee);
|
|
// console.log('首次进来', this.parkInfo);
|
|
// console.log('首次进来', this.parkInfo);
|
|
if (!this.parkFee || !this.parkInfo.servicefee) {
|
|
if (!this.parkFee || !this.parkInfo.servicefee) {
|
|
return;
|
|
return;
|
|
@@ -1132,7 +989,7 @@ export default {
|
|
this.parkFee.parkConsumeReducesEntityList[0] &&
|
|
this.parkFee.parkConsumeReducesEntityList[0] &&
|
|
this.parkFee.parkConsumeReducesEntityList[0].recuceContent
|
|
this.parkFee.parkConsumeReducesEntityList[0].recuceContent
|
|
) {
|
|
) {
|
|
- // console.log(1095);
|
|
|
|
|
|
+ console.log(1095);
|
|
this.autoConsume(serviceFee);
|
|
this.autoConsume(serviceFee);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1158,7 +1015,7 @@ export default {
|
|
|
|
|
|
// 自动选取消费减免
|
|
// 自动选取消费减免
|
|
autoConsume(serviceFee) {
|
|
autoConsume(serviceFee) {
|
|
- // console.log('自动选取消费减免', serviceFee);
|
|
|
|
|
|
+ console.log('自动选取消费减免', serviceFee);
|
|
let consumeTime =
|
|
let consumeTime =
|
|
+this.parkFee.parkConsumeReducesEntityList[0].recuceContent || 0; // 消费减免时长
|
|
+this.parkFee.parkConsumeReducesEntityList[0].recuceContent || 0; // 消费减免时长
|
|
let consumeFee = 0; // 消费减免费用
|
|
let consumeFee = 0; // 消费减免费用
|
|
@@ -1241,15 +1098,21 @@ export default {
|
|
time: consumeTime,
|
|
time: consumeTime,
|
|
fee: consumeFee,
|
|
fee: consumeFee,
|
|
};
|
|
};
|
|
- // console.log('用于子页面停车优惠画面显示', this.checkedTotal);
|
|
|
|
// 存入缓存(用于子页面停车优惠画面显示)
|
|
// 存入缓存(用于子页面停车优惠画面显示)
|
|
- uni.setStorageSync('checkedList', ['reduces']);
|
|
|
|
|
|
+ const checkedList = uni.getStorageSync('checkedList');
|
|
|
|
+ console.log('用于子页面停车优惠画面显示', checkedList);
|
|
|
|
+ if (checkedList) {
|
|
|
|
+ uni.setStorageSync('checkedList', checkedList);
|
|
|
|
+ } else {
|
|
|
|
+ uni.setStorageSync('checkedList', ['reduces']);
|
|
|
|
+ }
|
|
uni.setStorageSync('checkedTotal', this.checkedTotal || 0);
|
|
uni.setStorageSync('checkedTotal', this.checkedTotal || 0);
|
|
uni.setStorageSync('discountTotal', this.discountTotal);
|
|
uni.setStorageSync('discountTotal', this.discountTotal);
|
|
},
|
|
},
|
|
|
|
|
|
// 自动选取会员等级减免
|
|
// 自动选取会员等级减免
|
|
autoMember() {
|
|
autoMember() {
|
|
|
|
+ console.log('我想看看', this.checkedList);
|
|
// 支付金额0 则无需后续减免
|
|
// 支付金额0 则无需后续减免
|
|
if (!this.actualFee) {
|
|
if (!this.actualFee) {
|
|
return;
|
|
return;
|
|
@@ -1292,7 +1155,7 @@ export default {
|
|
};
|
|
};
|
|
checkedList = ['member'];
|
|
checkedList = ['member'];
|
|
}
|
|
}
|
|
- // console.log('判断是否有执行', this.checkedTotal);
|
|
|
|
|
|
+ console.log('判断是否有执行', this.checkedList);
|
|
this.checkedTotal++;
|
|
this.checkedTotal++;
|
|
|
|
|
|
// 存入缓存(用于子页面停车优惠画面显示)
|
|
// 存入缓存(用于子页面停车优惠画面显示)
|
|
@@ -1607,7 +1470,8 @@ export default {
|
|
this.bonusfee = this.duration * this.hourMoney;
|
|
this.bonusfee = this.duration * this.hourMoney;
|
|
}
|
|
}
|
|
this.durationCopy = this.duration;
|
|
this.durationCopy = this.duration;
|
|
- this.bonusCopy = this.bonus;
|
|
|
|
|
|
+ // this.bonusCopy = this.bonus;
|
|
|
|
+ this.$store.commit('SET_BONUS_COPY', this.bonus);
|
|
},
|
|
},
|
|
|
|
|
|
// 节流函数
|
|
// 节流函数
|