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] 更新
---
components/tabBar/tabBar.vue | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index ac11e42..d8e8d2e 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -23,8 +23,8 @@
data() {
return {
tabbarList: [],
- inactiveColor: '#AFB8C3',
- activeColor: '#5086FA',
+ inactiveColor: '#C7CED7',
+ activeColor: '#017BFC',
// activeColor: '#003399'
}
},
@@ -32,21 +32,19 @@
list: {
handler(newVal) {
if (newVal && newVal.length > 0) {
- this.tabbarList = newVal
+ this.tabbarList = newVal;
+ if (uni.getStorageSync("activeRole").roleName == "民警") {
+ this.inactiveColor = "#AFB8C3";
+ this.activeColor = "#003399";
+ } else {
+ this.inactiveColor = "#C7CED7"
+ this.activeColor = "#017BFC";
+ }
}
},
deep: true,
immediate: true
}
- },
-
- created() {
- if (uni.getStorageSync("activeRole").roleName == "民警") {
- this.activeColor = "#003399";
- } else {
- this.activeColor = "#5086FA";
- }
-
},
methods: {
--
Gitblit v1.9.3