| | |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .login-box { |
| | | position: absolute; |
| | | top: 50%; |
| | |
| | | <!-- <span class="login100-form-title p-t-20 p-b-45">中扬立库</span>--> |
| | | <!-- <span class="login100-form-title p-t-20 p-b-45" style="margin: 15px 0;color: #868686;font-size: 24px">WMS</span>--> |
| | | <div class="wrap-input100 validate-input m-b-10" data-validate="请输入用户名"> |
| | | <input id="username" class="input100" type="text" name="username" placeholder="username" autocomplete="off"> |
| | | <input id="username" class="input100" type="text" name="username" placeholder="username" |
| | | autocomplete="off"> |
| | | <span class="focus-input100"></span> |
| | | <span class="symbol-input100"> |
| | | <i class="fa fa-user"></i> |
| | |
| | | } |
| | | }) |
| | | |
| | | window.onload = function(){document.getElementById("username").focus();} |
| | | window.onload = function () { |
| | | document.getElementById("username").focus(); |
| | | } |
| | | |
| | | $(document).on('click','.login-btn', function () { |
| | | let username = $("#username").val(); |
| | |
| | | layer.tips('请输入密码', '#password', {tips: [4, '#ff0000']}); |
| | | return; |
| | | } |
| | | let params = {username: username, password: hex_md5(password)} |
| | | $.ajax({ |
| | | url: baseUrl+"/login.action", |
| | | data: { |
| | | username: username, |
| | | password: hex_md5(password) |
| | | }, |
| | | headers: {'Content-Type': 'application/json'}, |
| | | data: JSON.stringify(params), |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200){ |