| | |
| | | data() { |
| | | return { |
| | | tabbarList: [], |
| | | inactiveColor: '#AFB8C3', |
| | | activeColor: '#5086FA', |
| | | inactiveColor: '#C7CED7', |
| | | activeColor: '#017BFC', |
| | | // activeColor: '#003399' |
| | | } |
| | | }, |
| | |
| | | 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: { |