From 23619ec96140ff3ac9532a7d644ec6bac2dabeb3 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 12 May 2025 10:43:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=E7=9A=84UI=E5=92=8C=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在upload.vue中添加背景色条 - 在myLevel/index.vue中修复baseInfo的初始化逻辑 - 在questionCard.vue中为textarea添加最大长度限制 - 更新getUrl.js中的开发环境API地址 - 在userManage/index.vue中注释掉部分不必要的信息展示 - 在authentication/list/index.vue中添加表单验证逻辑 - 调整sharing.vue中的画布尺寸和样式 - 在detail.vue中优化地址输入框的样式和高度 --- .../authentication/components/questionCard.vue | 2 +- .../authentication/connectAddress/detail.vue | 10 +++++--- otherPages/authentication/list/index.vue | 27 ++++++++++++++++++++++ otherPages/authentication/serve/upload.vue | 4 ++++ otherPages/workbenchManage/bindUser/sharing.vue | 7 +++--- otherPages/workbenchManage/myLevel/index.vue | 5 +++- pages/userManage/index.vue | 4 ++-- pages/workbenchManage/index.vue | 4 ++-- utils/getUrl.js | 4 ++-- 9 files changed, 53 insertions(+), 14 deletions(-) diff --git a/otherPages/authentication/components/questionCard.vue b/otherPages/authentication/components/questionCard.vue index 8000d19..32fb09d 100644 --- a/otherPages/authentication/components/questionCard.vue +++ b/otherPages/authentication/components/questionCard.vue @@ -15,7 +15,7 @@ diff --git a/otherPages/authentication/connectAddress/detail.vue b/otherPages/authentication/connectAddress/detail.vue index e194079..154b76a 100644 --- a/otherPages/authentication/connectAddress/detail.vue +++ b/otherPages/authentication/connectAddress/detail.vue @@ -14,7 +14,7 @@ - + @@ -39,12 +39,11 @@ + v-if="eidtItem && eidtItem.appletOutDate && eidtItem.appletOutDate.length"> {{ getDisabledDateDesc(eidtItem.appletOutDate) }} @@ -247,6 +246,11 @@ background-color: #F3F3F3; padding: 26rpx 8rpx; border-radius: 15rpx; + height: 200rpx; + overflow: scroll; + textarea{ + height: 200rpx; + } } :deep(.u-form-item__body__left__content__label) { diff --git a/otherPages/authentication/list/index.vue b/otherPages/authentication/list/index.vue index 1339a1e..87d1ae1 100644 --- a/otherPages/authentication/list/index.vue +++ b/otherPages/authentication/list/index.vue @@ -325,6 +325,33 @@ return } + // 验证手机号格式 + if (!/^1[3-9]\d{9}$/.test(data.phone)) { + uni.showToast({ + title: '请输入正确的手机号', + icon: 'none' + }) + return + } + + // 验证身份证号格式 + if (!/^\d{17}[\dXx]$/.test(data.idCard)) { + uni.showToast({ + title: '请输入正确的身份证号', + icon: 'none' + }) + return + } + + // 验证年龄范围 + if (isNaN(data.age) || data.age < 18 || data.age > 70) { + uni.showToast({ + title: '请输入有效的年龄(18-70岁)', + icon: 'none' + }) + return + } + if (petType.value.length === 0) { uni.showToast({ title: '请选择宠物类型', diff --git a/otherPages/authentication/serve/upload.vue b/otherPages/authentication/serve/upload.vue index e52f670..72b369e 100644 --- a/otherPages/authentication/serve/upload.vue +++ b/otherPages/authentication/serve/upload.vue @@ -1,5 +1,9 @@