From 71f327918029781d6f78dd4e03397c5154e6ccb1 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期六, 27 七月 2024 08:26:39 +0800 Subject: [PATCH] feat:修改线上地址 --- store/index.js | 34 ++++++++++++++++++++-------------- 1 files changed, 20 insertions(+), 14 deletions(-) diff --git a/store/index.js b/store/index.js index 142591c..85bcdbf 100644 --- a/store/index.js +++ b/store/index.js @@ -55,19 +55,22 @@ 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({ @@ -177,6 +180,7 @@ // 璁剧疆搴曢儴鏍� setUserTabbar(state, roleType) { state.roleType = roleType + console.log(roleType,'roledType===') if (roleType === 1) { state.userTabbar = userRoleTabbar.first uni.setStorageSync('userTabbar', state.userTabbar) @@ -305,10 +309,10 @@ 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) { @@ -329,10 +333,10 @@ 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) { @@ -361,7 +365,9 @@ } }, getters: { - websocketData:(state) => state.websocketData + websocketData:(state) => state.websocketData, + globalweigh:(state) => state.globalweigh, + userTabbar: (state) => state.userTabbar, } }) -- Gitblit v1.9.1