From 818937959bb19d3669585fa87a526bffe9ce77a4 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 24 四月 2025 09:28:41 +0800
Subject: [PATCH] 修改默认验证码

---
 ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js b/ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js
index 967e57a..5e4c92c 100644
--- a/ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js
+++ b/ManagementOKTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js
@@ -58,9 +58,6 @@
         },*/
         password: {
             validators: {
-                notEmpty: {
-                    message: '密码不能为空'
-                },
                 regexp:{
                     regexp: /^.{6,18}$/,
                     message: '密码长度为6-18'
@@ -73,9 +70,6 @@
         },
         rePassword: {
             validators: {
-                notEmpty: {
-                    message: '密码不能为空'
-                },
                 regexp:{
                     regexp: /^.{6,18}$/,
                     message: '密码长度为6-18'
@@ -284,6 +278,17 @@
     if(!this.validate()){
         return ;
     }
+
+    // 判断密码
+    if ($('#password').val() == "" || $('#password').val() == null){
+        Feng.info("密码不能为空");
+        return;
+    }
+    if ($('#rePassword').val() == "" || $('#rePassword').val() == null){
+        Feng.info("密码不能为空");
+        return;
+    }
+
     // 遍历this.tCarInfoData 如果有值为空字符串或者是undefined 将这个字段剔除
     for (var key in this.yesDriverInfoData) {
         if (this.yesDriverInfoData[key] == "" || this.yesDriverInfoData[key] == undefined) {

--
Gitblit v1.7.1