From d6a5b791f86f132dfb24c75021a200538b68b929 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期日, 02 七月 2023 18:29:43 +0800
Subject: [PATCH] 称重逻辑增加判断
---
store/index.js | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/store/index.js b/store/index.js
index e420446..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({
@@ -72,7 +97,7 @@
weight: '',
userId: ''
},
- globalisconnect: false,
+ globalisconnect: true,
globalisUploadimg: false,
globalisLogin: false,
socketTask: null,
@@ -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