From 1682ad0f318e8a7c84bfe7761951b1c52aceb3a8 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期三, 21 六月 2023 11:16:54 +0800
Subject: [PATCH] no message

---
 uniapp/pages/index/index.vue |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue
index 1fa19b6..1381f26 100644
--- a/uniapp/pages/index/index.vue
+++ b/uniapp/pages/index/index.vue
@@ -137,7 +137,7 @@
 			this.getPopBannerInfo();
 		},
 		onShow() {
-			if(!this.hasLogin){
+			/* if(!this.hasLogin){
 				setTimeout(function(){
 					
 					uni.reLaunch({
@@ -145,7 +145,7 @@
 					})
 				},1000);
 				return;
-			}
+			} */
 			if(!this.hasshow)
 			{
 				this.shShow();
@@ -153,16 +153,16 @@
 			
 			var user= uni.getStorageSync('userInfo');
 			console.log(user);
-			if(!user.invitation_code)
-			{
-				setTimeout(function(){
+			// if(!user.invitation_code)
+			// {
+			// 	setTimeout(function(){
 					
-					uni.reLaunch({
-						url:"/pages/login/wxlogin"
-					})
-				},1000);
-				return;
-			}
+			// 		uni.reLaunch({
+			// 			url:"/pages/login/wxlogin"
+			// 		})
+			// 	},1000);
+			// 	return;
+			// }
 			if(this.categoryList){
 				this.getCategoryList();
 			}
@@ -188,6 +188,12 @@
 							that.isshowtype=true;
 						} else {
 							that.isshowtype=false;
+							console.log("璺宠浆");
+							if(!that.hasLogin){
+								uni.reLaunch({
+									url:"/pages/login/wxlogin"
+								})
+							}
 						}
 						console.log(that.isshowtype);
 					}
@@ -289,7 +295,6 @@
 			stopswiper(){
 				this.canrefush = true
 			},
-
 			// 璺敱璺宠浆
 			goPath(url) {
 				if (url == 'search') {

--
Gitblit v1.9.3