From e6ecd0ea0d971ff2c002a7215defce4afa820d77 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 15 五月 2023 18:32:39 +0800
Subject: [PATCH] #

---
 Monitor-APP/pages/home/home.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 660aace..6a2a966 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>
@@ -217,11 +217,11 @@
 							<view class="text-content">
 								<!-- head -->
 								<view class="swiper-head">
-									<view>鎵樼洏鐮侊細{{infoText.barcode}}</view>
-									<view>鍟嗗搧缂栧彿</view>
-									<view>鍟嗗搧鍚嶇О</view>
-									<view>瑙勬牸</view>
-									<view>鏁伴噺</view>
+									<view style="width: 20%;">鎵樼洏鐮侊細{{infoText.barcode}}</view>
+									<view style="width: 30%;">鍟嗗搧缂栧彿</view>
+									<view style="width: 20%;">鍟嗗搧鍚嶇О</view>
+									<view style="width: 20%;">瑙勬牸</view>
+									<view style="width: 10%;">鏁伴噺</view>
 								</view>
 								<!-- body -->
 								<view class="swiper-body">
@@ -233,11 +233,11 @@
 									display-multiple-items="8"
 									circular="true" :autoplay="true" :interval="3000" :duration="1000">
 										<swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i">
-											<view>No:{{i+1}}</view>
-											<view>{{item.matnr}}</view>
-											<view>{{item.maknx}}</view>
-											<view>{{item.specs}}</view>
-											<view>{{item.count}}</view>
+											<view style="width: 20%;">No:{{i+1}}</view>
+											<view style="width: 30%;">{{item.matnr}}</view>
+											<view style="width: 20%;">{{item.maknx}}</view>
+											<view style="width: 20%;">{{item.specs}}</view>
+											<view style="width: 10%;">{{item.count}}</view>
 										</swiper-item>
 									</swiper>
 								</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()

--
Gitblit v1.9.1