|
@@ -73,18 +73,19 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ // 初始化微信
|
|
initWxJsSdkConfig(['chooseWXPay']);
|
|
initWxJsSdkConfig(['chooseWXPay']);
|
|
this.$store.commit('SET_GROUP_ID', query.groupId);
|
|
this.$store.commit('SET_GROUP_ID', query.groupId);
|
|
this.$store.commit('SET_MALL_ID', query.mallid);
|
|
this.$store.commit('SET_MALL_ID', query.mallid);
|
|
// 如果用户不选择登录,则不走登录逻辑
|
|
// 如果用户不选择登录,则不走登录逻辑
|
|
const passLogin = uni.getStorageSync('passLogin');
|
|
const passLogin = uni.getStorageSync('passLogin');
|
|
- if(passLogin) {
|
|
|
|
|
|
+ this.isInit = true
|
|
|
|
+ if(!passLogin) {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: '/login',
|
|
path: '/login',
|
|
query: query
|
|
query: query
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- this.isInit = true
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 如果用已经登录
|
|
// 如果用已经登录
|
|
@@ -97,10 +98,11 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 当前页面是否是在微信公众号运行:end
|
|
// 当前页面是否是在微信公众号运行:end
|
|
|
|
+
|
|
|
|
+ /* 微信小程序 webview 配置 */
|
|
if (!query?.pageId?.length || !query?.token?.length) {
|
|
if (!query?.pageId?.length || !query?.token?.length) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
window.token = query?.token
|
|
window.token = query?.token
|
|
// this.getTicket()
|
|
// this.getTicket()
|
|
this.wss(() => {
|
|
this.wss(() => {
|