From a6d6376a81ae514ee20ff4199d096335f38dadd8 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Wed, 18 May 2022 14:12:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mods/work/AppHelpDeclaration/add.vue | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/mods/work/AppHelpDeclaration/add.vue b/src/mods/work/AppHelpDeclaration/add.vue
index b78853c..0c5fe3f 100644
--- a/src/mods/work/AppHelpDeclaration/add.vue
+++ b/src/mods/work/AppHelpDeclaration/add.vue
@@ -12,7 +12,7 @@
*申请人身份证号
-
+
@@ -111,12 +111,11 @@ export default {
}
})
})
-
- this.form.areaId = this.user.areaId
- },
- computed: {
- ...mapState(['user'])
+ // this.form.areaId = this.user.areaId
},
+ // computed: {
+ // ...mapState(['user'])
+ // },
methods: {
helpCheck(e) {
e.checked = !e.checked
@@ -133,6 +132,11 @@ export default {
if(!this.form.idNumber) {
return this.$u.toast('请输入身份证号')
}
+ if(this.form.idNumber) {
+ if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) {
+ return this.$u.toast('请输入正确的身份证号')
+ }
+ }
if(!this.form.phone) {
return this.$u.toast('请输入手机号')
}
@@ -158,7 +162,6 @@ export default {
}
this.flag = true
-
this.$instance.post('/app/apphelpdeclarationinfo/addByApplet',{...this.form}).then((res) => {
if(res.code ==0) {
uni.navigateTo({url: './result'})
@@ -265,6 +268,7 @@ export default {
background: #FFF;
padding: 16px 32px;
box-sizing: border-box;
+ z-index: 999;
div {
width: 100%;
height: 88px;