From cf49c6a6c83562639d80b42a8b3474a6b0021cf6 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期三, 25 十二月 2024 11:19:24 +0800
Subject: [PATCH] feat:注册增加信息字段

---
 store/index.js |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/store/index.js b/store/index.js
index 5d819bc..2993702 100644
--- a/store/index.js
+++ b/store/index.js
@@ -55,6 +55,20 @@
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
 			text: '鎴戠殑'
 		}
+	],
+	six:[{
+		pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+		iconPath: '../../static/tabBar-icon/home.png',
+		selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+		text: '棣栭〉'
+	},
+	{
+		pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+		iconPath: '../../static/tabBar-icon/Gmine10.png',
+		selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+		text: '鎴戠殑'
+	}
+
 	]
 }
 const store = new Vuex.Store({
@@ -167,6 +181,9 @@
 			} else if (roleType == 5) {
 				state.userTabbar = userRoleTabbar.three
 				uni.setStorageSync('userTabbar', state.userTabbar)
+			}else if(roleType == 6){
+				state.userTabbar = userRoleTabbar.six
+				uni.setStorageSync('userTabbar', state.userTabbar)
 			}
 		},
 		// 鏀瑰彉閲嶉噺
@@ -251,7 +268,12 @@
 	},
 	actions: {
 		websocketInit({ state, dispatch, commit }) {
+			// #ifdef H5
+			let wsUrl = `${webSocketUrl}?UUID=${uni.getStorageSync('token')}`
+			// #endif
+			// #ifndef H5
 			let wsUrl = `${webSocketUrl}?access_token=${uni.getStorageSync('token')}`
+			// #endif
 			state.socketTask = uni.connectSocket({
 				url: wsUrl,
 				header: { CLIENT_TOC: 'Y' },

--
Gitblit v1.9.1