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(); }