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;