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); } }); - } }