From d8635e0e390f917fd2704dc56d253addb5c6f3ee Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 03 五月 2024 22:08:23 +0800
Subject: [PATCH] mrshi

---
 h5/pages/visitorApplication/visitorApplication.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/h5/pages/visitorApplication/visitorApplication.vue b/h5/pages/visitorApplication/visitorApplication.vue
index bdf5b0a..b5b74f8 100644
--- a/h5/pages/visitorApplication/visitorApplication.vue
+++ b/h5/pages/visitorApplication/visitorApplication.vue
@@ -8,7 +8,7 @@
 					<text>*</text>
 				</view>
 				<view class="list_item_content">
-					<input type="number" maxlength="11" v-model="form1.phone1" placeholder="璇疯緭鍏ユ墜鏈哄彿" @blur="getUser" placeholder-style="color: #999999;" />
+					<input type="number" maxlength="11" v-model="form1.phone1" :placeholder="verify == '0' ? '杈撳叆鎵嬫満鍙峰悗鑷姩鑾峰彇' : '璇疯緭鍏ユ墜鏈哄彿'" @blur="getUser" placeholder-style="color: #999999;" />
 				</view>
 			</view>
 			<view class="list_item">
@@ -57,7 +57,7 @@
 					<text>*</text>
 				</view>
 				<view class="list_item_content">
-					<input type="text" v-model="form1.reason" placeholder="璇疯緭鍏ユ潵璁夸簨鐢憋紝鎮ㄦ潵鍋氫粈涔堢殑" placeholder-style="color: #999999;" />
+					<input type="text" v-model="form1.reason" placeholder="璇疯緭鍏ユ潵璁夸簨鐢�" placeholder-style="color: #999999;" />
 				</view>
 			</view>
 			<view class="list_item">
@@ -107,8 +107,8 @@
 		<u-datetime-picker
 			v-if="form1.starttime"
 			:show="show5"
-			:minDate="new Date(form1.starttime).getTime()"
-			:maxDate="new Date(maxTime).getTime()"
+			:minDate="formatTimeStamp(form1.starttime)"
+			:maxDate="formatTimeStamp(maxTime)"
 			mode="datetime"
 			@cancel="show5 = false"
 			@confirm="setoutDate"
@@ -457,6 +457,7 @@
 				}).then(res => {
 					if (res.code === 200) {
 						this.day = Number(res.data.code)
+						console.log(this.day)
 						// console.log(nextDay('after', true, this.day))
 					}
 				})
@@ -612,12 +613,15 @@
 			},
 			setinDate(e) {
 				this.form1.starttime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM');
-				this.maxTime = getDaysAfterDate(uni.$u.timeFormat(e.value, 'yyyy-mm-dd'), this.day)
+				this.maxTime = getDaysAfterDate(uni.$u.timeFormat(e.value, 'yyyy-mm-dd'), this.day - 1)
 				this.show4 = false
 			},
 			setoutDate(e) {
 				this.form1.endtime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM');
 				this.show5 = false
+			},
+			formatTimeStamp(date) {
+			    return Date.parse(new Date(`${date}`)) || Date.parse(new Date(`${date.replace(/-/g,'/')}`))
 			},
 			// 鏌ヨ鐢ㄦ埛
 			getUser() {
@@ -1112,7 +1116,9 @@
 
 			.list_item {
 				width: 100%;
-				height: 98rpx;
+				// min-height: 98rpx;
+				padding: 30rpx 0;
+				box-sizing: border-box;
 				display: flex;
 				align-items: center;
 				justify-content: space-between;

--
Gitblit v1.9.3