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