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 @@