diff --git a/src/views/ebiz/agentEenter/share/ShareInfo.vue b/src/views/ebiz/agentEenter/share/ShareInfo.vue index 710c3a5a8..5fe95d0c1 100644 --- a/src/views/ebiz/agentEenter/share/ShareInfo.vue +++ b/src/views/ebiz/agentEenter/share/ShareInfo.vue @@ -232,6 +232,10 @@ export default { self.$toast.clear() if (this.userInfo.idType == '1') { //身份证 + // 证件号码规则校验 + if (!idNoCheck.isIdno(this.userInfo.idNo)) { + return this.$toast('请录入正确的身份证') + } if (this.userInfo.idNo.length == '18') { //18位身份证第17位是性别位, 奇男偶女 let sexSign = this.userInfo.idNo.substr(16, 1) @@ -239,12 +243,7 @@ export default { return this.$toast('性别录入与身份证不符') } } - // 证件号码规则校验 - if (!idNoCheck.isIdno(this.userInfo.idNo)) { - this.$toast('您填写的证件号码有误') - } else { - self.save() - } + self.save() } else { self.save() }