|
@@ -95,7 +95,7 @@ export default {
|
|
|
},
|
|
|
unlicensedInfo:{
|
|
|
handler(){
|
|
|
- console.log('用户是扫码进来的97', this.unlicensedInfo);
|
|
|
+ console.log('用户是扫码进来的98', this.unlicensedInfo);
|
|
|
// 不论是否出入场,都使用此函数获取 gateId(闸口机器的ID)
|
|
|
if (this.unlicensedInfo?.type && /unlicensedOut|unlicensedIn/.test(this.unlicensedInfo.type) && this.endlessLoop.length === 0) {
|
|
|
// 此处记录扫码流程执行次数。如果超过一次则不再执行
|
|
@@ -122,6 +122,8 @@ export default {
|
|
|
// 如果用户未登录的话,返回之后,重新获取数据用户的基础数据
|
|
|
if (!member && window?.toWXSendMsg) {
|
|
|
wxToLoginCallback('parkingFee', (options) => {
|
|
|
+ console.log('用户是扫码进来的125', this.unlicensedInfo);
|
|
|
+ console.log('用户是扫码进来的126', options);
|
|
|
this.$store.commit('SET_IS_INIT', false);
|
|
|
// 请求 projectId
|
|
|
window.toWXSendMsg({
|
|
@@ -129,6 +131,7 @@ export default {
|
|
|
options: {},
|
|
|
});
|
|
|
window.subscribe('projectId', (newOptions) => {
|
|
|
+ console.log(134, newOptions);
|
|
|
this.$store.dispatch('baseInit', {
|
|
|
options: newOptions,
|
|
|
callback: () => {
|
|
@@ -136,6 +139,13 @@ export default {
|
|
|
requestInit();
|
|
|
this.getParkInfo();
|
|
|
this.$store.commit('SET_IS_INIT', true);
|
|
|
+ this.$nextTick(() => {
|
|
|
+ console.log(143, newOptions);
|
|
|
+ // 如果是无牌车的扫码入场
|
|
|
+ if(options?.options?.type && /unlicensedIn|unlicensedOut/.test(options.options.type)) {
|
|
|
+ this.$store.commit('SET_UNLICENSED_INFO', options.options);
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
});
|