From 292019d23db79aa99535735e13e6b3c129d87251 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期四, 02 十一月 2023 13:56:11 +0800
Subject: [PATCH] 验质员页面tabbarg高亮bug

---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
index cc8e129..d12bb70 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -60,7 +60,7 @@
 					<view class="suffix">{{ weighList.filedName || '' }}</view>
 				</view>
 				<!-- <view class="main-information">
-					<view class="prefix">鐓ょ鍚嶇О:</view>
+					<view class="prefix">鐗╂枡鍚嶇О:</view>
 					<view class="suffix">{{ weighList.coalName || '' }}</view>
 				</view> -->
 				<view class="main-information">
@@ -251,12 +251,26 @@
 				deep: true
 			}
 		},
+		onPullDownRefresh() {
+			if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) {
+				if (!this.is_open_socket) {
+					this.$store.dispatch('websocketInit')
+					this.changeisconnect(false);
+					console.log('绉伴噸鐨剋s');
+					uni.stopPullDownRefresh();
+				} else {
+					uni.stopPullDownRefresh();
+				}
+			}
+		},
 		onShow() {
 			this.init();
 			// this.realTimeWeigh = 0
 		},
 		computed: {
-			...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning']),
+			...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg',
+				'globalisLogin', 'is_open_socket'
+			]),
 			token() {
 				return uni.getStorageSync('token');
 			},

--
Gitblit v1.9.1