diff --git a/pageE/more/EditInvoice.vue b/pageE/more/EditInvoice.vue index 7d0dc65..0c85ea5 100644 --- a/pageE/more/EditInvoice.vue +++ b/pageE/more/EditInvoice.vue @@ -108,6 +108,10 @@ export default { this.$u.toast('身份证号不可为空'); return false; } + if(!this.$u.test.idCard(this.idCard)) { + this.$u.toast('请正确填写身份证号'); + return false; + } } else { if(this.$u.test.isEmpty(this.title)) { this.$u.toast('发票抬头不可为空');