|
@@ -62,6 +62,7 @@ export default {
|
|
|
const platform = getPlatform();
|
|
|
this.$store.commit('SET_GROUP_ID', query.groupId);
|
|
|
this.$store.commit('SET_MALL_ID', query.mallid);
|
|
|
+ console.log(65, kipAccessToken);
|
|
|
if (platform === 'micromessenger' && !kipAccessToken) {
|
|
|
// 如果用户没有登录的话,我们需要让用户完成授权拿到 openid
|
|
|
const openid = uni.getStorageSync('openid');
|
|
@@ -79,15 +80,13 @@ export default {
|
|
|
initWxJsSdkConfig(['chooseWXPay']);
|
|
|
|
|
|
// 如果用户不选择登录,则不走登录逻辑
|
|
|
- const passLogin = uni.getStorageSync('passLogin');
|
|
|
+ // const passLogin = uni.getStorageSync('passLogin');
|
|
|
console.log(82, { passLogin });
|
|
|
this.isInit = true;
|
|
|
- if (!passLogin || passLogin === 'false') {
|
|
|
- this.$router.replace({
|
|
|
+ this.$router.replace({
|
|
|
path: '/login',
|
|
|
query: query,
|
|
|
});
|
|
|
- }
|
|
|
return;
|
|
|
}
|
|
|
// 如果用已经登录
|