From d043cfde9b14f2c4245f0c3047273a1e14265822 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期一, 05 六月 2023 14:09:55 +0800
Subject: [PATCH] no message

---
 uniapp/pages/index/index.vue |   41 +++++++++++++++++++++++------------------
 1 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue
index 667f00d..b124795 100644
--- a/uniapp/pages/index/index.vue
+++ b/uniapp/pages/index/index.vue
@@ -122,26 +122,31 @@
 			}
 		},
 		onLoad() {
-			if(!this.hasLogin){
-				uni.reLaunch({
-					url:"/pages/login/wxlogin"
-				})
-			}
-			var user= uni.getStorageSync('userInfo');
-			if(!user.invitation_code)
-			{
-				uni.reLaunch({
-					//url:"/pages/login/setInviteCode"
-					url:"/pages/login/wxlogin"
-				})
-			}
-			else
-			{
-				this.getCategoryList();
-				this.getPopBannerInfo();
-			}
+			this.getCategoryList();
+			this.getPopBannerInfo();
 		},
 		onShow() {
+			if(!this.hasLogin){
+				setTimeout(function(){
+					
+					uni.reLaunch({
+						url:"/pages/login/wxlogin"
+					})
+				},1000);
+				return;
+			}
+			var user= uni.getStorageSync('userInfo');
+			console.log(user);
+			if(!user.invitation_code)
+			{
+				setTimeout(function(){
+					
+					uni.reLaunch({
+						url:"/pages/login/wxlogin"
+					})
+				},1000);
+				return;
+			}
 			if(this.categoryList){
 				this.getCategoryList();
 			}

--
Gitblit v1.9.3