From 6979b9eb718f0865920f74bc823c9f2439463b11 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Mon, 29 Jul 2024 15:02:07 +0800
Subject: [PATCH] 限制长度为10位数,限制长度为12位数
---
src/page/authentication/index.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/page/authentication/index.vue b/src/page/authentication/index.vue
index 114f4da..f768aa2 100644
--- a/src/page/authentication/index.vue
+++ b/src/page/authentication/index.vue
@@ -289,9 +289,11 @@
// 实名认证弹框
if (isNull(this.form.name)) {
Toast(this.$t("hj207"));
- } else if (isNull(this.form.idCard)) {
- Toast(this.$t("hj208"));
- } else if (!this.form.img1key) {
+ } else if (isNull(this.form.idCard) || this.form.idCard.length != 12) {
+ Toast(this.$t("限制长度为12位数"));
+ } else if (isNull(this.form.vaildNumber) || this.form.vaildNumber.length != 10) {
+ Toast(this.$t("限制长度为10位数"));
+ } else if (!this.form.img1key) {
Toast(this.$t("hj209"));
} else if (!this.form.img2key) {
Toast(this.$t("hj209"));
--
Gitblit v1.9.3