From ffedc806f93a65de2159c569af64c3323e4ce17b Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 13 二月 2025 16:21:46 +0800 Subject: [PATCH] feat:注册页面承运单位修改必填 --- store/index.js | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/store/index.js b/store/index.js index 5d819bc..7b7f211 100644 --- a/store/index.js +++ b/store/index.js @@ -55,12 +55,27 @@ 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: { // 鐢ㄦ埗鐣岄潰鍒ゆ柗 userInfo: {}, + ispecial:['1821820980778090498'], //鐢ㄦ潵鍒ゆ柇鏄笉鏄北瑗垮ぇ杩滅熆 roleType: null, // 1瀹㈡埛锛�2璐т唬锛�3鍙告満 5瑁呭嵏鍛� userTabbar: [], // 鐢ㄦ埛鎵�鍦ㄨ鑹插簳閮ㄨ彍鍗曪紝 // 绉伴噸鏃剁殑閲嶉噺 @@ -167,6 +182,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 +269,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' }, -- Gitblit v1.9.1