From fb4fa76b4c1a93c833cd97f97f41b6158ab1aef7 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期五, 21 四月 2023 17:24:44 +0800 Subject: [PATCH] 修改bug --- store/index.js | 65 +++++++++++++++++++++++--------- 1 files changed, 46 insertions(+), 19 deletions(-) diff --git a/store/index.js b/store/index.js index 3a8f2cb..badfcb9 100644 --- a/store/index.js +++ b/store/index.js @@ -5,29 +5,29 @@ // 鍔ㄦ�佸簳閮╰abbar const userRoleTabbar = { first: [{ - pagePath: "pages/tabbar-page/index-tabbar/index-tabbar", - iconPath: "../../static/tabBar-icon/Gfayun.png", - selectedIconPath: "../../static/tabBar-icon/Bfayun1.png", - text: "棣栭〉" + pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', + iconPath: '../../static/tabBar-icon/Gfayun.png', + selectedIconPath: '../../static/tabBar-icon/Bfayun1.png', + text: '棣栭〉' }, { - pagePath: "pages/tabbar-page/myPage-tabbar/myPage-tabbar", - iconPath: "../../static/tabBar-icon/Gmine10.png", - selectedIconPath: "../../static/tabBar-icon/Bmine57.png", - text: "鎴戠殑" + pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', + iconPath: '../../static/tabBar-icon/Gmine10.png', + selectedIconPath: '../../static/tabBar-icon/Bmine57.png', + text: '鎴戠殑' } ], second: [{ - pagePath: "pages/tabbar-page/index-tabbar/index-tabbar", - iconPath: "../../static/tabBar-icon/Ghome.png", - selectedIconPath: "../../static/tabBar-icon/Bhome.png", - text: "棣栭〉" + pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', + iconPath: '../../static/tabBar-icon/Ghome.png', + selectedIconPath: '../../static/tabBar-icon/Bhome.png', + text: '棣栭〉' }, { - pagePath: "pages/tabbar-page/myPage-tabbar/myPage-tabbar", - iconPath: "../../static/tabBar-icon/Gmine10.png", - selectedIconPath: "../../static/tabBar-icon/Bmine57.png", - text: "鎴戠殑" + pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', + iconPath: '../../static/tabBar-icon/Gmine10.png', + selectedIconPath: '../../static/tabBar-icon/Bmine57.png', + text: '鎴戠殑' } ] } @@ -36,9 +36,20 @@ // 鐢ㄦ埗鐣岄潰鍒ゆ柗 userInfo: {}, roleType: null, // 1瀹㈡埛锛�2璐т唬锛�3鍙告満 - userTabbar: [] // 鐢ㄦ埛鎵�鍦ㄨ鑹插簳閮ㄨ彍鍗� + userTabbar: [], // 鐢ㄦ埛鎵�鍦ㄨ鑹插簳閮ㄨ彍鍗曪紝 + // 绉伴噸鏃剁殑閲嶉噺 + globalweigh: 0, + // 娑堟伅鎺ㄩ�� + globalmessage: '', + // 鍏ㄥ眬weihousecode + globalweighHouseCode: '', + // 鍏ㄥ眬绾㈠鐘舵�� + globalinfraredStatus: false }, mutations: { + lengthchange(state, payload) { + state.fleetDriverDataLength = payload + }, setUserInfo(state, identity) { state.userInfo = userObj[identity] }, @@ -52,8 +63,24 @@ state.userTabbar = userRoleTabbar.second uni.setStorageSync('userTabbar', state.userTabbar) } - - + }, + // 鏀瑰彉閲嶉噺 + changeWeigh(state, payload) { + state.globalweigh = payload + console.log(state.globalweigh, '鍏ㄥ眬閲嶉噺鏀瑰彉浜�') + }, + // 娑堟伅鎺ㄩ�� + pushMessage(state, payload) { + state.globalmessage = payload + }, + // 鏀瑰彉weighHouseCode + changeweighHouseCode(state, payload) { + state.globalweighHouseCode = payload + console.log(state.globalweighHouseCode, 'globalweighHouseCode鏀瑰彉浜�') + }, + // 鏀瑰彉绾㈠鐘舵�� + changeinfraredStatus(state, payload) { + state.globalinfraredStatus = payload } } }) -- Gitblit v1.9.1