yangan
2024-07-08 9e6e77255f278aa78410ad0f9315e160ca2cd42e
store/index.js
@@ -59,7 +59,57 @@
         selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
         text: '我的'
      }
   ]
   ],
   fourth: [{
         pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
         iconPath: '../../static/tabBar-icon/home.png',
         selectedIconPath: '../../static/tabBar-icon/homeblue.png',
         text: '进场'
      },{
         pagePath: 'pages/doorkeeper-page/doorkeeper-index/exit-index',
         iconPath: '../../static/tabBar-icon/home.png',
         selectedIconPath: '../../static/tabBar-icon/homeblue.png',
         text: '出场'
      },
      {
         pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
         iconPath: '../../static/tabBar-icon/Gmine10.png',
         selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
         text: '我的'
      },
   ],
   five:[{
      pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
      iconPath: '../../static/tabBar-icon/home.png',
      selectedIconPath: '../../static/tabBar-icon/homeblue.png',
      text: '首页'
   },
   {
      pagePath: 'pages/loadUnload-page/orderPlanList/index',
      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: '我的'
   }
   ],
   six:[{
      pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
      iconPath: '../../static/tabBar-icon/home.png',
      selectedIconPath: '../../static/tabBar-icon/homeblue.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({
   state: {
@@ -171,7 +221,13 @@
            state.userTabbar = userRoleTabbar.second
            uni.setStorageSync('userTabbar', state.userTabbar)
         } else if (roleType == 5) {
            state.userTabbar = userRoleTabbar.three
            state.userTabbar = userRoleTabbar.five
            uni.setStorageSync('userTabbar', state.userTabbar)
         }else if (roleType == 6) {
            state.userTabbar = userRoleTabbar.fourth
            uni.setStorageSync('userTabbar', state.userTabbar)
         }else if (roleType == 7) {
            state.userTabbar = userRoleTabbar.six
            uni.setStorageSync('userTabbar', state.userTabbar)
         }
      },
@@ -211,6 +267,7 @@
         console.log(state.globalisLogin, '全局登录状态改变了')
      },
      setWebsocketData(state, data) {
         console.log(data,'data-----')
         state.websocketData = data
      },
      // 改变重连状态
@@ -413,6 +470,10 @@
            commit('getBunkerList',res.data)
         })
      },
   },
   getters:{
      websocketData:(state) => state.websocketData
   }
})