| | |
| | | iconPath: '../../static/tabBar-icon/checking.png', |
| | | selectedIconPath: '../../static/tabBar-icon/checkingblue.png', |
| | | text: '验质' |
| | | }, |
| | | { |
| | | },{ |
| | | pagePath: 'pages/customer-page/zhijian-bangfang/zhijian-bangfang', |
| | | iconPath: '../../static/tabBar-icon/bang.png', |
| | | selectedIconPath: '../../static/tabBar-icon/bangblue.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({ |
| | |
| | | // 设置底部栏 |
| | | setUserTabbar(state, roleType) { |
| | | state.roleType = roleType |
| | | console.log(roleType,'roledType===') |
| | | if (roleType === 1) { |
| | | state.userTabbar = userRoleTabbar.first |
| | | uni.setStorageSync('userTabbar', state.userTabbar) |
| | |
| | | }, |
| | | getters: { |
| | | websocketData:(state) => state.websocketData, |
| | | globalweigh:(state) => state.globalweigh |
| | | globalweigh:(state) => state.globalweigh, |
| | | userTabbar: (state) => state.userTabbar, |
| | | } |
| | | }) |
| | | |