From 6637408a570b2fa64baab27a6c4102e0f8a67dd6 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Mon, 6 Nov 2023 10:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E5=8F=B7=E7=A0=81=E7=9A=84=E6=A0=A1=E9=AA=8C=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home.vue | 2 +- pages/login/index.vue | 1 + pages/verfiy/index.vue | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/home.vue b/pages/home.vue index b3a3f3c..2ff10bf 100644 --- a/pages/home.vue +++ b/pages/home.vue @@ -298,7 +298,7 @@ // height: 460rpx; height: 28vh; width: 100%; - padding: 10%; + padding: 10% 10% 12%; // margin-bottom: 22rpx; display: flex; flex-wrap: wrap; diff --git a/pages/login/index.vue b/pages/login/index.vue index 691a522..178c123 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -203,6 +203,7 @@ import { checkLogin, showError } from '@/core/app' width: 66rpx; height: 100%; + select{ font-size: 32rpx; border: none; diff --git a/pages/verfiy/index.vue b/pages/verfiy/index.vue index 19ce087..4ddb073 100644 --- a/pages/verfiy/index.vue +++ b/pages/verfiy/index.vue @@ -139,6 +139,12 @@ this.$toast('手机号持有人身份证号') return false } + // 校验正则 + let regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; + if(!regIdNo.test(str)){ + this.$toast('身份证号填写错误'); + return false; + } if(str.length<18 || str.length>18){ this.$toast("手机号持有人身份证号异常") return false