From 3f3a57b8361cf80ff0d9c1b3bbdaec0ae731082d Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 23 五月 2023 14:56:24 +0800
Subject: [PATCH] #

---
 Monitor-APP/pages/home/home.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index deccea3..49cde72 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -187,8 +187,8 @@
 									<y-box>
 										<view class="flex-col" style="width: 100%;height: 100%;font-size: 4vh;justify-content: center;letter-spacing: 1vh;">
 											<!-- 鍢夊杽杈归攱鏈烘鑲′唤鏈夐檺鍏徃 -->
-											<!-- 鑷姩浠撳簱WCS鐩戞帶骞冲彴 -->
-											<image src="../../static/vietnam.jpg" mode="" style="width: 100%;"></image>
+											鑷姩浠撳簱WCS鐩戞帶骞冲彴
+											<!-- <image src="../../static/vietnam.jpg" mode="" style="width: 100%;"></image> -->
 										</view>
 									</y-box>
 								</view>
@@ -386,7 +386,8 @@
 				},
 				swiperList: [],
 				timeOut: false,
-				times: 0
+				times: 0,
+				currDate: ''
 			}
 		},
 		onShow() {
@@ -715,6 +716,7 @@
 					success(result) {
 						var res = result.data.data
 						that.calendar = res.year + "骞�" + res.month + "鏈�" + res.day + "鏃� " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week
+						that.currDate = res.year + "/" + res.month + "/" + res.day
 					}
 				})
 			},
@@ -742,7 +744,7 @@
 				this.calendar = year + "骞�" + month + "鏈�" + day + "鏃� " + hours + ":" + minutes + ":" + seconds + " " + weeks
 			},
 			getDateFormat(value) {
-				var date = new Date();// 鑾峰彇褰撳墠鏃堕棿
+				var date = new Date(this.currDate);// 鑾峰彇褰撳墠鏃堕棿
 				date.setDate(date.getDate() + value);// 璁剧疆澶╂暟 -1 澶�
 				var m = date.getMonth() + 1
 				var d = date.getDate()
@@ -795,6 +797,7 @@
 						ledId: that.baseLedId,
 					},
 					success(result) {
+						console.log(result);
 						var res = result.data
 						if (res.code === 200) {
 							that.baseInfo.xDistance = res.data.xDistance

--
Gitblit v1.9.1