From 1b3c74739fc291a151a1c509fabb72c1f124ab59 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期三, 17 七月 2024 16:34:45 +0800
Subject: [PATCH] feat:首页登录样式更新

---
 store/index.js |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 106 insertions(+), 5 deletions(-)

diff --git a/store/index.js b/store/index.js
index 75388c5..a1086c4 100644
--- a/store/index.js
+++ b/store/index.js
@@ -11,103 +11,199 @@
 const userRoleTabbar = {
 	first: [{
 			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/home.png',
 			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			// #endif
+			// #ifdef H5
+			iconPath: '/static/tabBar-icon/home.png',
+			selectedIconPath: '/static/tabBar-icon/homeblue.png',
+			// #endif
 			text: '棣栭〉'
 		},
 		{
 			pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/statistics.png',
 			selectedIconPath: '../../static/tabBar-icon/statisticsactive.png',
+			// #endif
+			// #ifdef H5
+			iconPath: '/static/tabBar-icon/statistics.png',
+			selectedIconPath: '/static/tabBar-icon/statisticsactive.png',
+			// #endif
 			text: '缁熻'
 		},
 		{
 			pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/Gmine10.png',
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+		    // #endif
+			// #ifdef H5
+			iconPath: '/static/tabBar-icon/Gmine10.png',
+			selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+			// #endif
 			text: '鎴戠殑'
 		}
 	],
 	second: [{
 			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/home.png',
 			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			// #endif
+			// #ifdef H5
+			iconPath: '/static/tabBar-icon/home.png',
+			selectedIconPath: '/static/tabBar-icon/homeblue.png',
+			// #endif
 			text: '棣栭〉'
 		},
 		{
 			pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/statistics.png',
 			selectedIconPath: '../../static/tabBar-icon/statisticsactive.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/statistics.png',
+			selectedIconPath: '/static/tabBar-icon/statisticsactive.png',
+			// #endif
 			text: '缁熻'
 		},
 		{
 			pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/Gmine10.png',
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/Gmine10.png',
+			selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+			// #endif
 			text: '鎴戠殑'
 		}
 	],
 	three: [{
 			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/home.png',
 			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/home.png',
+			selectedIconPath: '/static/tabBar-icon/homeblue.png',
+			// #endif
 			text: '棣栭〉'
 		},
 		{
 			pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/Gmine10.png',
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+		    // #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/Gmine10.png',
+			selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+			// #endif
 			text: '鎴戠殑'
 		}
 	],
 	fourth: [{
 			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/home.png',
 			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/home.png',
+			selectedIconPath: '/static/tabBar-icon/homeblue.png',
+			// #endif
 			text: '杩涘満'
 		},{
 			pagePath: 'pages/doorkeeper-page/doorkeeper-index/exit-index',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/home.png',
 			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/home.png',
+			selectedIconPath: '/static/tabBar-icon/homeblue.png',
+			// #endif
 			text: '鍑哄満'
 		},
 		{
 			pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+			//#ifdef MP-WEIXIN
 			iconPath: '../../static/tabBar-icon/Gmine10.png',
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+			// #endif
+			//#ifdef H5
+			iconPath: '/static/tabBar-icon/Gmine10.png',
+			selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+			// #endif
 			text: '鎴戠殑'
 		},
 
 	],
 	five:[{
 		pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+		//#ifdef MP-WEIXIN
 		iconPath: '../../static/tabBar-icon/home.png',
 		selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+		// #endif
+		//#ifdef H5
+		iconPath: '/static/tabBar-icon/home.png',
+		selectedIconPath: '/static/tabBar-icon/homeblue.png',
+		// #endif
 		text: '棣栭〉'
 	},
 	{
 		pagePath: 'pages/loadUnload-page/orderPlanList/index',
+		//#ifdef MP-WEIXIN
 		iconPath:  '../../static/tabBar-icon/statistics.png',
 		selectedIconPath: '../../static/tabBar-icon/statisticsactive.png',
+		// #endif
+		//#ifdef  H5
+		iconPath:  '/static/tabBar-icon/statistics.png',
+		selectedIconPath: '/static/tabBar-icon/statisticsactive.png',
+		// #endif
 		text: '鏃ヨ鍒�'	
 	},
 	{
 		pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+		//#ifdef MP-WEIXIN
 		iconPath: '../../static/tabBar-icon/Gmine10.png',
 		selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+		// #endif
+		//#ifdef H5
+		iconPath: '/static/tabBar-icon/Gmine10.png',
+		selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+		// #endif
 		text: '鎴戠殑'
 	}
 	],
 	six:[{
 		pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+		//#ifdef MP-WEIXIN
 		iconPath: '../../static/tabBar-icon/home.png',
 		selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+		// #endif
+		//#ifdef  H5
+		iconPath: '/static/tabBar-icon/home.png',
+		selectedIconPath: '/static/tabBar-icon/homeblue.png',
+		// #endif
 		text: '棣栭〉'
 	},
 	{
 		pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
+		//#ifdef MP-WEIXIN
 		iconPath: '../../static/tabBar-icon/Gmine10.png',
 		selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
+		// #endif
+		//#ifdef  H5
+		iconPath: '/static/tabBar-icon/Gmine10.png',
+		selectedIconPath: '/static/tabBar-icon/Bmine57.png',
+		// #endif
 		text: '鎴戠殑'
 	}]
 }
@@ -204,8 +300,8 @@
 		confirmWeighContent: '',
 		// 绉伴噸绋冲畾鎬�  0/绋冲畾 1/闈炵ǔ瀹�  闈炵ǔ瀹氭�佷笉鑳界偣绉伴噸
 		globalWarning: false,
-		filedId:'', //鐓ゅ満id
-		bunkerList:'', //鐓や粨list
+		filedId:'', //鍦哄湴id
+		bunkerList:'', //浠撳簱list
 	},
 	mutations: {
 		setUserInfo(state, identity) {
@@ -267,6 +363,7 @@
 			console.log(state.globalisLogin, '鍏ㄥ眬鐧诲綍鐘舵�佹敼鍙樹簡')
 		},
 		setWebsocketData(state, data) {
+			console.log(data,'data-----')
 			state.websocketData = data
 		},
 		// 鏀瑰彉閲嶈繛鐘舵��
@@ -310,7 +407,7 @@
 		changeWarning(state, payload) {
 			state.globalWarning = payload
 		},
-		// 鐓ゅ満filedId鐨勮幏鍙�
+		// 鍦哄湴filedId鐨勮幏鍙�
 		getFiledId(state, payload) {
 			console.log(payload,'filedId=====')
 			state.filedId = payload
@@ -461,14 +558,18 @@
 			})
 
 		},
-		getFiledIdCoalBunker({ state, commit }) {  //鐓や粨鍒楄〃锛堥噰鏍峰湴鐐癸級
+		getFiledIdCoalBunker({ state, commit }) {  //浠撳簱鍒楄〃锛堥噰鏍峰湴鐐癸級
 			let filedId = uni.getStorageSync('filedId')
 			console.log(filedId,'鏈�缁堢殑filedId=============')
 			reqGet('getFiledIdCoalBunker', {filedId: filedId}).then(res => {
-				console.log(res,'res----鐓や粨')
+				console.log(res,'res----浠撳簱')
 				commit('getBunkerList',res.data)
 			})
 		},
+	},
+	getters:{
+		websocketData:(state) => state.websocketData
+
 	}
 })
 

--
Gitblit v1.9.1