From d8b45c99be9122cb467864c63fbdb0eefdd4d18a Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Wed, 24 Sep 2025 15:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bmw/src/main/resources/static/js/publicJs.js | 2 +- modules/bmw/src/main/resources/static/login.html | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/modules/bmw/src/main/resources/static/js/publicJs.js b/modules/bmw/src/main/resources/static/js/publicJs.js index becd081..bb26ad7 100644 --- a/modules/bmw/src/main/resources/static/js/publicJs.js +++ b/modules/bmw/src/main/resources/static/js/publicJs.js @@ -1,6 +1,6 @@ //测试路径 let host=window.location.host; -let IP_URL="http://"+host+"/ynRealName"; +let IP_URL="https://"+host+"/ynRealName"; //let IP_URL="http://192.168.0.7:9101/ynRealName" //本地ip //let IP_URL="http://127.0.0.1:9101/ynRealName" diff --git a/modules/bmw/src/main/resources/static/login.html b/modules/bmw/src/main/resources/static/login.html index 6280483..dd64968 100644 --- a/modules/bmw/src/main/resources/static/login.html +++ b/modules/bmw/src/main/resources/static/login.html @@ -112,20 +112,12 @@ } function authLogin(username,password){ - $(obj).attr("disabled", true); - var jwtToken = $.trim($('#jwtToken').val()); - var jzpwd = $("#jzpwd").prop("checked"); // 是否记住密码 - if (username == "" || password == "") { - $("#info").html('手机号或者密码不能为空'); - $(obj).attr("disabled", false); - } else { + var jwtToken = $.trim($('#jwtToken').val()); $.ajax({ type : 'post', contentType : "application/json; charset=utf-8", url : IP_URL + '/auth/login', data : JSON.stringify({ - // "username" : username, - // "password" : password, "username" : encryptCBC(username), "password" : encryptCBC(password), "jwtToken" : jwtToken @@ -168,18 +160,15 @@ // } }else{ $("#info").html(data.msg); - $(obj).attr("disabled", false); } }, error : function(xhr, textStatus, errorThrown) { var msg = xhr.responseText; var response = JSON.parse(msg); $("#info").html(response.message); - $(obj).attr("disabled", false); } }); - } }