From a4c86b6b9d61bec99bff97415ac25e1fd36fe28a Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期日, 09 四月 2023 19:17:56 +0800
Subject: [PATCH] 优化

---
 management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver_info.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver_info.js
index 6df0474..460e601 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver_info.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tDriver/tDriver_info.js
@@ -15,6 +15,10 @@
             validators: {
                 notEmpty: {
                     message: '手机号不能为空'
+                },
+                regexp: {
+                    regexp: /^1[3-9]\d{9}$/,
+                    message: '请输入合法手机号'
                 }
             }
         },
@@ -29,6 +33,10 @@
             validators: {
                 notEmpty: {
                     message: '紧急联系人电话不能为空'
+                },
+                regexp: {
+                    regexp: /^1[3-9]\d{9}$/,
+                    message: '请输入合法手机号'
                 }
             }
         },

--
Gitblit v1.7.1