yangan
2024-12-25 cf49c6a6c83562639d80b42a8b3474a6b0021cf6
store/index.js
@@ -55,6 +55,20 @@
         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({
@@ -167,6 +181,9 @@
         } else if (roleType == 5) {
            state.userTabbar = userRoleTabbar.three
            uni.setStorageSync('userTabbar', state.userTabbar)
         }else if(roleType == 6){
            state.userTabbar = userRoleTabbar.six
            uni.setStorageSync('userTabbar', state.userTabbar)
         }
      },
      // 改变重量
@@ -251,7 +268,12 @@
   },
   actions: {
      websocketInit({ state, dispatch, commit }) {
         // #ifdef H5
         let wsUrl = `${webSocketUrl}?UUID=${uni.getStorageSync('token')}`
         // #endif
         // #ifndef H5
         let wsUrl = `${webSocketUrl}?access_token=${uni.getStorageSync('token')}`
         // #endif
         state.socketTask = uni.connectSocket({
            url: wsUrl,
            header: { CLIENT_TOC: 'Y' },