| | |
| | | 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', |
| | |
| | | // 设置底部栏 |
| | | setUserTabbar(state, roleType) { |
| | | state.roleType = roleType |
| | | console.log(roleType,'roledType===') |
| | | if (roleType === 1) { |
| | | state.userTabbar = userRoleTabbar.first |
| | | uni.setStorageSync('userTabbar', state.userTabbar) |
| | |
| | | state.socketTask = null |
| | | commit('changereconnectState', false) |
| | | if ((state.connectNum < 6 || state.connectNum.connectNum < 6) && state.globalisLogin) { |
| | | uni.showToast({ |
| | | title: '连接失败,正在尝试重新连接', |
| | | icon: 'none' |
| | | }) |
| | | // uni.showToast({ |
| | | // title: '连接失败,正在尝试重新连接', |
| | | // icon: 'none' |
| | | // }) |
| | | commit('changereconnectNum', { connectNum: 1, isWeigh: false }) |
| | | dispatch('reconnect') |
| | | } else if (state.connectNum >= 6 && state.globalisLogin) { |
| | |
| | | state.socketTask = null |
| | | commit('changereconnectState', false) |
| | | if (state.connectNum < 6 || state.connectNum.connectNum < 6 && state.globalisLogin) { |
| | | uni.showToast({ |
| | | title: '连接失败,正在尝试重新连接', |
| | | icon: 'none' |
| | | }) |
| | | // uni.showToast({ |
| | | // title: '连接失败,正在尝试重新连接', |
| | | // icon: 'none' |
| | | // }) |
| | | commit('changereconnectNum', { connectNum: 1, isWeigh: false }) |
| | | dispatch('reconnect') |
| | | } else if (state.connectNum > 6 && state.globalisLogin) { |
| | |
| | | } |
| | | }, |
| | | getters: { |
| | | websocketData:(state) => state.websocketData |
| | | websocketData:(state) => state.websocketData, |
| | | globalweigh:(state) => state.globalweigh |
| | | } |
| | | }) |
| | | |