uniapp/pages/index/index.vue
@@ -122,8 +122,31 @@ } }, onLoad() { this.getCategoryList(); this.getPopBannerInfo() if(!this.hasLogin){ setTimeout(function(){ uni.reLaunch({ url:"/pages/login/wxlogin" }) },3000); return; } var user= uni.getStorageSync('userInfo'); if(!user.invitation_code) { setTimeout(function(){ uni.reLaunch({ url:"/pages/login/wxlogin" }) },3000); return; } else { this.getCategoryList(); this.getPopBannerInfo(); } }, onShow() { if(this.categoryList){