heyuntao
2023-06-01 90ef820cdc18a108b67aef0c7d6c3fa1e8ecb3f7
uniapp/pages/index/index.vue
@@ -122,13 +122,17 @@
         }
      },
      onLoad() {
         this.getCategoryList();
         this.getPopBannerInfo();
      },
      onShow() {
         if(!this.hasLogin){
            setTimeout(function(){
               
               uni.reLaunch({
                  url:"/pages/login/wxlogin"
               })
            },3000);
            },1000);
            return;
         }
         var user= uni.getStorageSync('userInfo');
@@ -139,16 +143,9 @@
               uni.reLaunch({
                  url:"/pages/login/wxlogin"
               })
            },3000);
            },1000);
            return;
         }
         else
         {
            this.getCategoryList();
            this.getPopBannerInfo();
         }
      },
      onShow() {
         if(this.categoryList){
            this.getCategoryList();
         }