From 7742c67a6c6c837050d478670d50f9c2cc25757e Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期二, 23 五月 2023 17:12:48 +0800
Subject: [PATCH] no message

---
 uniapp/pages/index/index.vue |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue
index e67397e..8bebf3c 100644
--- a/uniapp/pages/index/index.vue
+++ b/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){

--
Gitblit v1.9.3