John-Hong пре 2 година
родитељ
комит
472175d7c0
2 измењених фајлова са 6 додато и 7 уклоњено
  1. 3 4
      src/App.vue
  2. 3 3
      src/pages/login/login.vue

+ 3 - 4
src/App.vue

@@ -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;
       }
       // 如果用已经登录

+ 3 - 3
src/pages/login/login.vue

@@ -56,11 +56,11 @@
       </button>
     </div>
 
-    <div class="mgt20">
+    <!-- <div class="mgt20">
       <button class="authorize_btn authorize_btn--phone" @click="passLogin">
         未登录使用
       </button>
-    </div>
+    </div> -->
 
     <div class="mgt34">
       <div style="margin: 0 30px">
@@ -253,7 +253,7 @@ export default {
       return false;
     },
     passLogin() {
-      this.$store.commit('SET_PASS_LOGIN', true)
+      this.$store.commit('SET_PASS_LOGIN', true);
     },
     // 获取验证码
     getCodeData: function () {