From d22d9ef9f8c595598fc98bec7f4fb187ceb8831a Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 19 Mar 2024 16:30:45 +0800
Subject: [PATCH] 更新

---
 components/tabBar/tabBar.vue |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index 1f140bb..b2ab7fe 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -25,6 +25,7 @@
 				tabbarList: [],
 				inactiveColor: '#AFB8C3',
 				activeColor: '#5086FA',
+				// activeColor: '#003399'
 			}
 		},
 		watch: {
@@ -37,6 +38,15 @@
 				deep: true,
 				immediate: true
 			}
+		},
+
+		created() {
+			if (uni.getStorageSync("activeRole").roleName == "民警") {
+				this.activeColor = "#003399";
+			} else {
+				this.activeColor = "#5086FA";
+			}
+
 		},
 
 		methods: {
@@ -56,4 +66,8 @@
 		width: 56rpx;
 		height: 56rpx;
 	}
+
+	/deep/.u-tabbar {
+		box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(107, 134, 159, 0.2);
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3