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 |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index e71b833..49cde72 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -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