From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/pages/userinfo/userinfo.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/h5/pages/userinfo/userinfo.vue b/h5/pages/userinfo/userinfo.vue
index c825b10..3cefd54 100644
--- a/h5/pages/userinfo/userinfo.vue
+++ b/h5/pages/userinfo/userinfo.vue
@@ -24,7 +24,7 @@
 				</view>
 			</view>
 			<view class="cell">
-				<view class="title"><b>*</b>璇佷欢鍙风爜</view>
+				<view class="title">璇佷欢鍙风爜</view>
 				<view class="content">
 					<input class="input" maxlength="18" @focus="showKeyboard = true" @blur="showKeyboard = false"
 						placeholder-style="color: #999999;" v-model="visitorData.idcardNo" placeholder="璇疯緭鍏ユ偍鐨勮瘉浠跺彿鐮�" />
@@ -201,11 +201,11 @@
 					title: '璇佷欢绫诲瀷涓嶈兘涓虹┖',
 					icon: 'none'
 				})
-				if (!this.visitorData.idcardNo) return uni.showToast({
-					title: '璇佷欢鍙风爜涓嶈兘涓虹┖',
-					icon: 'none'
-				})
-				if (this.visitorData.idcardType === 0) {
+				// if (!this.visitorData.idcardNo) return uni.showToast({
+				// 	title: '璇佷欢鍙风爜涓嶈兘涓虹┖',
+				// 	icon: 'none'
+				// })
+				if (this.visitorData.idcardType === 0 && this.visitorData.idcardNo) {
 					const regex = /^[1-9]\d{5}(19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}[\dxX]$/;
 					if (!regex.test(this.visitorData.idcardNo)) return uni.showToast({
 						title: '璇佷欢鍙风爜鏍煎紡閿欒',
@@ -258,12 +258,15 @@
 						isFace: 0
 					},
 					success: (uploadFileRes) => {
-						let res = JSON.parse(uploadFileRes.data)
+						let res = JSON.parse(uploadFileRes.data)
+						if(res.code !== 200){
+							return this.showToast(res.message)
+						}
 						this.visitorData.faceImg = res.data.halfPath
 						this.visitorData.faceImgUrl = res.data.prefixPath + res.data.folder + res.data.halfPath
 					},
-					fail(err) {
-						alert('澶辫触')
+					fail: (err) => {
+						// this.showToast(err)
 					},
 					complete() {
 						uni.hideLoading();

--
Gitblit v1.9.3