From c28b3b105e5294165ff6b278723df5e0889cb36f Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期一, 12 六月 2023 16:33:36 +0800
Subject: [PATCH] no message

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

diff --git a/uniapp/pages/index/index.vue b/uniapp/pages/index/index.vue
index 667f00d..b5cf339 100644
--- a/uniapp/pages/index/index.vue
+++ b/uniapp/pages/index/index.vue
@@ -11,6 +11,9 @@
 						<view>杈撳叆鍟嗗搧鍚嶆垨绮樿创瀹濊礉鏍囬鎼滅储</view>
 					</view>
 				</view>
+				<view class="rightgoMsg rowCenCen iconfont searchImg" @click="goPath('turnChain')">
+					<image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/zhuanlian.png"></image>
+				</view>
 				<view class="rightgoMsg rowCenCen iconfont" @click="goPath('officialNotice')">
 					<view>&#xe6e9;</view>
 					<u-badge v-show="isNewMessage" :is-dot="true" type="success"></u-badge>
@@ -122,26 +125,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();
 			}
@@ -261,6 +269,12 @@
 						url: './officialNotice'
 					})
 				}
+				else if(url=='turnChain')
+				{
+					uni.navigateTo({
+						url: '../mine/tools/turnChain'
+					})
+				}
 			},
 
 			gobanurl(info) {
@@ -359,7 +373,7 @@
 				z-index: 100;
 
 				.leftgoSearchbox {
-					width: 615rpx;
+					width: 575rpx;
 					height: 70rpx;
 					background-color: #FFFFFF;
 					border: 1rpx solid #EDEDED;
@@ -389,6 +403,14 @@
 					color: #FFFFFF;
 				}
 			}
+			.searchImg{
+				image{
+					width: 40rpx;
+					height: 40rpx;
+					font-size: 50rpx;
+					color: #FFFFFF;
+				}
+			}
 
 			.categoryNavbar-container {
 				width: 100%;

--
Gitblit v1.9.3