From 2ae60f81bbef5b2de4a9cc3e90bbedf19e8e4446 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 07 三月 2024 10:24:00 +0800
Subject: [PATCH] mrshi

---
 h5/pages/visitorApplication/visitorApplication.vue |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/h5/pages/visitorApplication/visitorApplication.vue b/h5/pages/visitorApplication/visitorApplication.vue
index 7e447e2..4b65e9c 100644
--- a/h5/pages/visitorApplication/visitorApplication.vue
+++ b/h5/pages/visitorApplication/visitorApplication.vue
@@ -53,7 +53,7 @@
 			<view class="list_item">
 				<view class="list_item_label">
 					<text>鎷滆浜嬬敱</text>
-					<text></text>
+					<text>*</text>
 				</view>
 				<view class="list_item_content">
 					<input type="text" v-model="form1.reason" placeholder="璇疯緭鍏ユ潵璁夸簨鐢憋紝鎮ㄦ潵鍋氫粈涔堢殑" placeholder-style="color: #999999;" />
@@ -220,7 +220,7 @@
 							<text>*</text>
 						</view>
 						<view class="adduser_list_item_ipt">
-							<input type="text" v-model="withUserList.idcardNo" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" />
+							<input type="text" v-model="withUserList.idcardNo" maxlength="18" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" />
 						</view>
 					</view>
 					<view class="adduser_list_item">
@@ -343,7 +343,7 @@
 			},
 			submit() {
 				if (!this.form1.receptMemberId) return uni.showToast({
-					title: '琚浜轰笉鑳戒负绌�',
+					title: '璇峰~鍐欐湁鏁堢殑璁块棶浜�',
 					icon: 'none'
 				})
 				if (!this.form1.starttime) return uni.showToast({
@@ -358,20 +358,26 @@
 					title: '璁块棶闂ㄧ涓嶈兘涓虹┖',
 					icon: 'none'
 				})
-				// if (!this.form1.reason) return uni.showToast({
-				// 	title: '鎷滆浜嬬敱涓嶈兘涓虹┖',
-				// 	icon: 'none'
-				// })
-				this.form1.starttime = this.form1.starttime + ':00'
-				this.form1.endtime = this.form1.endtime + ':00'
+				if (!this.form1.reason) return uni.showToast({
+					title: '鎷滆浜嬬敱涓嶈兘涓虹┖',
+					icon: 'none'
+				})
+				// this.form1.starttime = this.form1.starttime + ':00'
+				// this.form1.endtime = this.form1.endtime + ':00'
+				let data = JSON.parse(JSON.stringify(this.form1))
+				data.starttime = data.starttime + ':00'
+				data.endtime = data.endtime + ':00'
 				this.$u.api.createFk({
 					...this.form,
-					...this.form1,
+					...data,
 					openid: this.$store.state.openId,
 					withUserList: this.personnel
 				}).then(res => {
 					if (res.code === 200) {
 						console.log(res)
+						uni.reLaunch({
+							url: `/pages/appointmentDetails/appointmentDetails?id=${res.data}`
+						})
 					}
 				})
 			},

--
Gitblit v1.9.3