From ee5bd20779565d6231c3b58374e431adb068ca7d Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Wed, 20 Mar 2024 13:47:51 +0800
Subject: [PATCH] 更新
---
common/common.js | 52 +++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 49 insertions(+), 3 deletions(-)
diff --git a/common/common.js b/common/common.js
index d47c565..aa55b4d 100644
--- a/common/common.js
+++ b/common/common.js
@@ -97,7 +97,27 @@
export const getTabbarList = (roleType = 1) => {
- if (roleType == 2) {
+ if (roleType == 1) { //居民
+ return [{
+ name: '首页',
+ iconPathSelected: '/static/img/tabbar-01-selected.png',
+ iconPath: '/static/img/tabbar-01.png',
+ url: '/pages/home/index'
+ },
+ {
+ name: '圈子',
+ iconPathSelected: '/static/img/tabbar-02-selected.png',
+ iconPath: '/static/img/tabbar-02.png',
+ url: '/pages/circle/index'
+ },
+ {
+ name: '我的',
+ iconPathSelected: '/static/img/tabbar-03-selected.png',
+ iconPath: '/static/img/tabbar-03.png',
+ url: '/pages/user/center'
+ }
+ ]
+ } else if (roleType == 2) { //民警
return [{
name: '首页',
iconPathSelected: '/static/img/tabbar-04-selected.png',
@@ -117,11 +137,10 @@
name: '我的',
iconPathSelected: '/static/img/tabbar-06-selected.png',
iconPath: '/static/img/tabbar-06.png',
-
url: '/pages/user/center'
}
]
- } else {
+ } else if (roleType == 3) { // 网格员
return [{
name: '首页',
iconPathSelected: '/static/img/tabbar-01-selected.png',
@@ -136,6 +155,33 @@
url: '/pages/circle/index'
},
{
+ name: '驾驶舱',
+ iconPathSelected: '/static/img/tabbar-07-selected.png',
+ iconPath: '/static/img/tabbar-07.png',
+ url: '/pages/statistics/index'
+ },
+
+ {
+ name: '我的',
+ iconPathSelected: '/static/img/tabbar-03-selected.png',
+ iconPath: '/static/img/tabbar-03.png',
+ url: '/pages/user/center'
+ }
+ ]
+ } else if (roleType == 4) { //系统管理员
+ return [{
+ name: '首页',
+ iconPathSelected: '/static/img/tabbar-01-selected.png',
+ iconPath: '/static/img/tabbar-01.png',
+ url: '/pages/home/index'
+ },
+ {
+ name: '驾驶舱',
+ iconPathSelected: '/static/img/tabbar-07-selected.png',
+ iconPath: '/static/img/tabbar-07.png',
+ url: '/pages/statistics/index'
+ },
+ {
name: '我的',
iconPathSelected: '/static/img/tabbar-03-selected.png',
iconPath: '/static/img/tabbar-03.png',
--
Gitblit v1.9.3