From 5b2a950acf53ef3deb57e6b65722cd6877516773 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期三, 25 十月 2023 17:26:32 +0800
Subject: [PATCH] 再生 bugfix

---
 store/index.js |   82 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 72 insertions(+), 10 deletions(-)

diff --git a/store/index.js b/store/index.js
index 4c8a99f..0878a06 100644
--- a/store/index.js
+++ b/store/index.js
@@ -43,12 +43,13 @@
 			text: '鎴戠殑'
 		}
 	],
-	three: [{
-			pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
-			iconPath: '../../static/tabBar-icon/home.png',
-			selectedIconPath: '../../static/tabBar-icon/homeblue.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/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan',
 			iconPath: '../../static/tabBar-icon/checking.png',
@@ -105,7 +106,57 @@
 		globalIntervalId: null,
 		is_open_socket: false, //閬垮厤閲嶅杩炴帴
 		connectNum: 1, //閲嶈繛娆℃暟,
-		reconnectTimeOut: null
+		reconnectTimeOut: null,
+		// 绉伴噸绋冲畾鎬�  0/绋冲畾 1/闈炵ǔ瀹�  闈炵ǔ瀹氭�佷笉鑳界偣绉伴噸
+		globalWarning: false,
+		globalShowWeigh: [],
+		isFirstLogin: true,
+		driverTourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj1.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj2.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj3.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj4.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj5.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj6.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj7.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj8.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj9.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj10.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj11.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj12.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj13.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj14.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj15.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj16.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj17.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj18.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj19.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj20.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj21.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj22.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj23.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj24.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj25.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj26.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/driver/sj27.jpg',
+		],
+		customerTourImgList: ['https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality2.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality3.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality4.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality5.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality6.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality7.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality8.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality9.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality10.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality11.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality12.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality13.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality14.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality15.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality16.jpg',
+			'https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality17.jpg',
+		],
 	},
 	mutations: {
 		lengthchange(state, payload) {
@@ -169,12 +220,23 @@
 		},
 		// 鏀瑰彉閲嶈繛娆℃暟
 		changereconnectNum(state, payload) {
-			if (state.connectNum < 6) {
+			if (state.connectNum <= 6) {
 				state.connectNum += payload
 			} else {
 				state.connectNum = payload
 			}
 		},
+		// 鏀瑰彉绋冲畾鎬�
+		changeWarning(state, payload) {
+			state.globalWarning = payload
+		},
+		changeglobalShowWeigh(state, payload) {
+			state.globalShowWeigh = payload
+		},
+		changeisFirstLogin(state, payload) {
+			state.isFirstLogin = payload
+			console.log(state.isFirstLogin, '绗竴娆$櫥褰�');
+		}
 	},
 	actions: {
 		websocketInit({ state, dispatch, commit }) {
@@ -225,7 +287,7 @@
 			clearInterval(state.reconnectTimeOut)
 			state.socketTast = null
 			commit('changereconnectState', false)
-			if (state.connectNum < 6 && state.globalisLogin) {
+			if (state.connectNum <= 6 && state.globalisLogin) {
 				uni.showToast({
 					title: `杩炴帴澶辫触锛屾鍦ㄥ皾璇曠${state.connectNum}娆¤繛鎺,
 					icon: 'none'
@@ -256,7 +318,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