yangan
2024-07-05 9a0876466b8d98816294f2cae5f564b2e69972ef
store/index.js
@@ -71,6 +71,12 @@
         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:[{
@@ -81,8 +87,8 @@
   },
   {
      pagePath: 'pages/loadUnload-page/orderPlanList/index',
      iconPath: '../../static/tabBar-icon/Gmine10.png',
      selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
      iconPath:  '../../static/tabBar-icon/statistics.png',
      selectedIconPath: '../../static/tabBar-icon/statisticsactive.png',
      text: '日计划'   
   },
   {
@@ -90,8 +96,20 @@
      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: {
@@ -208,6 +226,9 @@
         }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)
         }
      },
      // 改变重量
@@ -246,6 +267,7 @@
         console.log(state.globalisLogin, '全局登录状态改变了')
      },
      setWebsocketData(state, data) {
         console.log(data,'data-----')
         state.websocketData = data
      },
      // 改变重连状态
@@ -448,6 +470,10 @@
            commit('getBunkerList',res.data)
         })
      },
   },
   getters:{
      websocketData:(state) => state.websocketData
   }
})