From 25173363ca70fa68ac471072fb89bbd8383e5812 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期日, 23 四月 2023 13:19:44 +0800
Subject: [PATCH] #

---
 Monitor-APP/manifest.json       |    6 +++---
 Monitor-APP/pages/home/home.vue |    8 ++++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/Monitor-APP/manifest.json b/Monitor-APP/manifest.json
index 78d9546..9b89881 100644
--- a/Monitor-APP/manifest.json
+++ b/Monitor-APP/manifest.json
@@ -5,9 +5,9 @@
     "versionName" : "1.0.1",
     "versionCode" : "100",
     "transformPx" : false,
-	"networkTimeout":{
-	    "request":30000
-	},
+    "networkTimeout" : {
+        "request" : 30000
+    },
     /* 5+App鐗规湁鐩稿叧 */
     "app-plus" : {
         "usingComponents" : true,
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index c3f6cab..3b0be5b 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -316,7 +316,7 @@
 			</view>
 		</view>
 		<view style="color: #FFF;position: fixed;bottom: 10px;left: 10px;" v-show="timeOut">
-			杩炴帴瓒呮椂
+			杩炴帴瓒呮椂: {{times}} s
 		</view>
 	</view>
 </template>
@@ -385,7 +385,8 @@
 					barcode: ""
 				},
 				swiperList: [],
-				timeOut: false
+				timeOut: false,
+				times: 0
 			}
 		},
 		onShow() {
@@ -503,6 +504,7 @@
 					data: {ledId:that.baseLedId},
 					success(result) {
 						that.timeOut = false
+						that.times = 0
 						var	res = result.data
 						if (res.data && res.data !== "") {
 							if (that.infoType == 2 || that.infoType == 3) {
@@ -538,6 +540,7 @@
 					},
 					fail(err) {
 						that.timeOut = true
+						that.times = that.times+3
 						that.infoType = 0
 					}
 				})
@@ -551,6 +554,7 @@
 					method:"GET",
 					success(result) {
 						that.timeOut = false
+						that.times = 0
 						var	res = result.data
 						if (res.data && res.data !== "") {
 							var errorInfo = res.data

--
Gitblit v1.9.1