瀏覽代碼

暂时移除非注册

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

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

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