|
@@ -97,8 +97,8 @@ export default {
|
|
},
|
|
},
|
|
unlicensedInfo:{
|
|
unlicensedInfo:{
|
|
handler(){
|
|
handler(){
|
|
- const member = uni.getStorageSync('member');
|
|
|
|
- if(!member) return // 如果用户走未登录流程的话
|
|
|
|
|
|
+ // const member = uni.getStorageSync('member');
|
|
|
|
+ // if(!member) return // 如果用户走未登录流程的话
|
|
// 不论是否出入场,都使用此函数获取 gateId(闸口机器的ID)
|
|
// 不论是否出入场,都使用此函数获取 gateId(闸口机器的ID)
|
|
if (this.unlicensedInfo?.type && /unlicensedOut|unlicensedIn/.test(this.unlicensedInfo.type) && this.endlessLoop.length === 0) {
|
|
if (this.unlicensedInfo?.type && /unlicensedOut|unlicensedIn/.test(this.unlicensedInfo.type) && this.endlessLoop.length === 0) {
|
|
// 此处记录扫码流程执行次数。如果超过一次则不再执行
|
|
// 此处记录扫码流程执行次数。如果超过一次则不再执行
|
|
@@ -122,9 +122,11 @@ export default {
|
|
await initWxJsSdkConfig(['checkJsApi', 'scanQRCode']);
|
|
await initWxJsSdkConfig(['checkJsApi', 'scanQRCode']);
|
|
}
|
|
}
|
|
const member = uni.getStorageSync('member');
|
|
const member = uni.getStorageSync('member');
|
|
|
|
+ const openid= uni.getStorageSync('openid');
|
|
|
|
+ // console.log(openid)
|
|
// 如果用户未登录的话,返回之后,重新获取数据用户的基础数据
|
|
// 如果用户未登录的话,返回之后,重新获取数据用户的基础数据
|
|
if (!member && window?.toWXSendMsg) {
|
|
if (!member && window?.toWXSendMsg) {
|
|
- wxToLoginCallback('parkingFee', (options) => {
|
|
|
|
|
|
+ /*wxToLoginCallback('parkingFee', (options) => {
|
|
console.log('用户是扫码进来的125', this.unlicensedInfo);
|
|
console.log('用户是扫码进来的125', this.unlicensedInfo);
|
|
console.log('用户是扫码进来的126', options);
|
|
console.log('用户是扫码进来的126', options);
|
|
this.$store.commit('SET_IS_INIT', false);
|
|
this.$store.commit('SET_IS_INIT', false);
|
|
@@ -153,11 +155,10 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- });
|
|
|
|
- // return
|
|
|
|
|
|
+ });*/
|
|
}
|
|
}
|
|
- console.log(136, this.openid);
|
|
|
|
- if (this.openid) {
|
|
|
|
|
|
+ // console.log(136, this.openid);
|
|
|
|
+ if (openid) {
|
|
this.getParkInfo();
|
|
this.getParkInfo();
|
|
this.showSq = false;
|
|
this.showSq = false;
|
|
} else {
|
|
} else {
|