|
@@ -49,30 +49,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
async created() {
|
|
async created() {
|
|
- const option = this.$route.query;
|
|
|
|
- this.options = option;
|
|
|
|
- await this.$onLaunched;
|
|
|
|
- this.localimgPic = this.$staticPicUrl + '/wxminilocalimg/parkingFee/';
|
|
|
|
- // #ifdef H5
|
|
|
|
- app.globalData.member = JSON.parse(uni.getStorageSync('member'));
|
|
|
|
- // #endif
|
|
|
|
- // 场景二维码记录(是否扫码进入)
|
|
|
|
- app.globalData.paramsScene = {};
|
|
|
|
- this.$saveSceneQrcodeDetail(
|
|
|
|
- 'page',
|
|
|
|
- 'vehicleManagement',
|
|
|
|
- '车牌管理',
|
|
|
|
- '',
|
|
|
|
- '',
|
|
|
|
- '',
|
|
|
|
- ''
|
|
|
|
- );
|
|
|
|
- // 埋点本地化
|
|
|
|
- this.preUrl = uni.getStorageSync('previousUrl');
|
|
|
|
- uni.setStorageSync(
|
|
|
|
- 'previousUrl',
|
|
|
|
- '/pages/parkingFee/vehicleManagement.vue'
|
|
|
|
- );
|
|
|
|
|
|
+ this.options = this.$route.query;
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -80,42 +57,27 @@ export default {
|
|
title: '车辆管理',
|
|
title: '车辆管理',
|
|
});
|
|
});
|
|
}, 300);
|
|
}, 300);
|
|
- // await this.$onLaunched
|
|
|
|
- // this.isBeijing = isCruMarketByKey('北京');
|
|
|
|
const member = uni.getStorageSync('member');
|
|
const member = uni.getStorageSync('member');
|
|
- console.log('member', member);
|
|
|
|
if (member && JSON.stringify(this.member) !== '{}') {
|
|
if (member && JSON.stringify(this.member) !== '{}') {
|
|
this.getKipMemberVehicles();
|
|
this.getKipMemberVehicles();
|
|
} else {
|
|
} else {
|
|
wxToLoginCallback('vehicleManagement', (options) => {
|
|
wxToLoginCallback('vehicleManagement', (options) => {
|
|
- // console.log(229, options);
|
|
|
|
if (options?.noLoginParkingFeeWebView === 'fail') {
|
|
if (options?.noLoginParkingFeeWebView === 'fail') {
|
|
// 如果是用户明确拒绝登录,执行这段逻辑
|
|
// 如果是用户明确拒绝登录,执行这段逻辑
|
|
- Toast({
|
|
|
|
- message: '您还未登录,请登录',
|
|
|
|
- icon: 'none',
|
|
|
|
- onClose: () => {
|
|
|
|
- console.log(97, '后退页面');
|
|
|
|
- this.$router.back();
|
|
|
|
- return
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ Toast({
|
|
|
|
+ message: '您还未登录,请登录',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ onClose: () => {
|
|
|
|
+ this.$router.back();
|
|
|
|
+ return
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ }, 300)
|
|
} else {
|
|
} else {
|
|
this.$router.back();
|
|
this.$router.back();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- // const regSource = REG_SOURCE.PARKING;
|
|
|
|
- // app.globalData.regSource = regSource;
|
|
|
|
- // if (this.options?.regSource) {
|
|
|
|
- // app.globalData.regSource = REG_SOURCE[this.options?.regSource];
|
|
|
|
- // }
|
|
|
|
- // if (this.options?.tpName) {
|
|
|
|
- // app.globalData.tpName = this.options?.tpName;
|
|
|
|
- // }
|
|
|
|
- // // this.$refs.authorize.login('/pages/parkingFee/parkingFee', () => {
|
|
|
|
- // // this.getKipMemberVehicles()
|
|
|
|
- // // })
|
|
|
|
- // this.getKipMemberVehicles();
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onUnload() {
|
|
onUnload() {
|