From 4f940f90c4458bfa4e5f514eeca639ac97c71039 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 01 八月 2023 16:33:47 +0800 Subject: [PATCH] 修改抢单错误 --- store/index.js | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/store/index.js b/store/index.js index dff5e8e..d556246 100644 --- a/store/index.js +++ b/store/index.js @@ -42,13 +42,26 @@ selectedIconPath: '../../static/tabBar-icon/Bmine57.png', text: '鎴戠殑' } + ], + three: [{ + 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: { // 鐢ㄦ埗鐣岄潰鍒ゆ柗 userInfo: {}, - roleType: null, // 1瀹㈡埛锛�2璐т唬锛�3鍙告満 + roleType: null, // 1瀹㈡埛锛�2璐т唬锛�3鍙告満 5瑁呭嵏鍛� userTabbar: [], // 鐢ㄦ埛鎵�鍦ㄨ鑹插簳閮ㄨ彍鍗曪紝 // 绉伴噸鏃剁殑閲嶉噺 globalweigh: 0, @@ -97,6 +110,9 @@ uni.setStorageSync('userTabbar', state.userTabbar) } else if (roleType == 2 || roleType == 3) { state.userTabbar = userRoleTabbar.second + uni.setStorageSync('userTabbar', state.userTabbar) + } else if (roleType == 5) { + state.userTabbar = userRoleTabbar.three uni.setStorageSync('userTabbar', state.userTabbar) } }, @@ -203,7 +219,7 @@ }) commit('changereconnectNum', 1) dispatch('reconnect') - } else if (state.connectNum > 6 && state.globalisLogin) { + } else if (state.connectNum >= 6 && state.globalisLogin) { commit('changereconnectNum', 1) uni.showToast({ title: '缃戠粶寮傚父,璇风◢鍚庨噸璇�', -- Gitblit v1.9.1