zhaojs
2023-06-21 2448e587f6b62c5ec922248b695d58c5b9387ee4
uniapp/pages/index/index.vue
@@ -137,7 +137,7 @@
         this.getPopBannerInfo();
      },
      onShow() {
         if(!this.hasLogin){
         /* if(!this.hasLogin){
            setTimeout(function(){
               
               uni.reLaunch({
@@ -145,7 +145,7 @@
               })
            },1000);
            return;
         }
         } */
         if(!this.hasshow)
         {
            this.shShow();
@@ -153,16 +153,16 @@
         
         var user= uni.getStorageSync('userInfo');
         console.log(user);
         if(!user.invitation_code)
         {
            setTimeout(function(){
         // if(!user.invitation_code)
         // {
         //    setTimeout(function(){
               
               uni.reLaunch({
                  url:"/pages/login/wxlogin"
               })
            },1000);
            return;
         }
         //       uni.reLaunch({
         //          url:"/pages/login/wxlogin"
         //       })
         //    },1000);
         //    return;
         // }
         if(this.categoryList){
            this.getCategoryList();
         }
@@ -188,6 +188,12 @@
                     that.isshowtype=true;
                  } else {
                     that.isshowtype=false;
                     console.log("跳转");
                     if(!that.hasLogin){
                        uni.reLaunch({
                           url:"/pages/login/wxlogin"
                        })
                     }
                  }
                  console.log(that.isshowtype);
               }