From 2df0354b45e0d2f516ec8aa63c27bb96f486f06b Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期六, 03 六月 2023 12:50:22 +0800 Subject: [PATCH] no message --- uniapp/pages/index/index.vue | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue index 8bebf3c..5422913 100644 --- a/uniapp/pages/index/index.vue +++ b/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(); } -- Gitblit v1.9.3