From 8c4dd05b10fcaeb94c09613699aab923318a1c6d Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期日, 02 七月 2023 18:13:27 +0800
Subject: [PATCH] 称重逻辑简化,提高可读性

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

diff --git a/store/index.js b/store/index.js
index 1ce1db3..5b11172 100644
--- a/store/index.js
+++ b/store/index.js
@@ -42,6 +42,31 @@
 			selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
 			text: '鎴戠殑'
 		}
+	],
+	three: [{
+			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
+			iconPath: '../../static/tabBar-icon/home.png',
+			selectedIconPath: '../../static/tabBar-icon/homeblue.png',
+			text: '棣栭〉'
+		},
+		{
+			pagePath: 'pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan',
+			iconPath: '../../static/tabBar-icon/checking.png',
+			selectedIconPath: '../../static/tabBar-icon/checkingblue.png',
+			text: '楠岃川'
+		},
+		{
+			pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics',
+			iconPath: '../../static/tabBar-icon/statistics.png',
+			selectedIconPath: '../../static/tabBar-icon/statisticsactive.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({
@@ -95,6 +120,9 @@
 			} else if (roleType == 2 || roleType == 3) {
 				state.userTabbar = userRoleTabbar.second
 				uni.setStorageSync('userTabbar', state.userTabbar)
+			} else if (roleType == 4) {
+				state.userTabbar = userRoleTabbar.three
+				uni.setStorageSync('userTabbar', state.userTabbar)
 			}
 		},
 		// 鏀瑰彉閲嶉噺

--
Gitblit v1.9.1