|  |  |  | 
|---|
|  |  |  | <!DOCTYPE html> | 
|---|
|  |  |  | <html lang="ja"> | 
|---|
|  |  |  | <html lang="en"> | 
|---|
|  |  |  | <head> | 
|---|
|  |  |  | <meta charset="utf-8"> | 
|---|
|  |  |  | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 
|---|
|  |  |  | <title>instancing │ sketch of three.js</title> | 
|---|
|  |  |  | <title>中扬 │ login of zoneyung wms</title> | 
|---|
|  |  |  | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1"> | 
|---|
|  |  |  | <meta name="description" content="study of Instancing with three.js"> | 
|---|
|  |  |  | <meta name="keywords" content="undefined, Yoichi Kobayashi, WebGL, three.js"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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 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> | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="wrap-input100 validate-input m-b-10" data-validate="请输入密码"> | 
|---|
|  |  |  | <input class="input100" type="password" name="pass" placeholder="password"> | 
|---|
|  |  |  | <input id="password" class="input100" type="password" name="pass" placeholder="password"> | 
|---|
|  |  |  | <span class="focus-input100"></span> | 
|---|
|  |  |  | <span class="symbol-input100"> | 
|---|
|  |  |  | <i class="fa fa-lock"></i> | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="container-login100-form-btn p-t-10"> | 
|---|
|  |  |  | <button class="login100-form-btn">Login</button> | 
|---|
|  |  |  | <button class="login100-form-btn login-btn">Login</button> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | <script type="text/javascript" src="../static/js/tools/main.min.js"></script> | 
|---|
|  |  |  | <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script> | 
|---|
|  |  |  | <script type="text/javascript" src="../static/js/tools/md5.js"></script> | 
|---|
|  |  |  | <script type="text/javascript" src="../static/layer/layer.js"></script> | 
|---|
|  |  |  | <script type="text/javascript" src="../static/js/common.js"></script> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | // remember pwd | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | var oldUserName = localStorage.getItem('oldUserName'); | 
|---|
|  |  |  | var oldPass = localStorage.getItem('oldPass'); | 
|---|
|  |  |  | if(oldUserName){ | 
|---|
|  |  |  | $('#username').val(oldUserName); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(oldPass){ | 
|---|
|  |  |  | $('#password').val(oldPass); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | window.onload = function(){document.getElementById("username").focus();} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $(document).on('click','.login-btn', function () { | 
|---|
|  |  |  | window.location.href = "../index.html" | 
|---|
|  |  |  | let username = $("#username").val(); | 
|---|
|  |  |  | if (username === "") { | 
|---|
|  |  |  | layer.tips('请输入登录账号', '#username', {tips: [4, '#ff0000']}); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | let password = $("#password").val(); | 
|---|
|  |  |  | if (password === "") { | 
|---|
|  |  |  | layer.tips('请输入密码', '#password', {tips: [4, '#ff0000']}); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: baseUrl+"/login.action", | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | username: username, | 
|---|
|  |  |  | password: hex_md5(password) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | success: function (res) { | 
|---|
|  |  |  | if (res.code === 200){ | 
|---|
|  |  |  | localStorage.setItem("token", res.data.token); | 
|---|
|  |  |  | localStorage.setItem("username", res.data.username); | 
|---|
|  |  |  | window.location.href = "index.html"; | 
|---|
|  |  |  | } else if (res.code === 10001) { | 
|---|
|  |  |  | layer.tips(res.msg, '#username', {tips: [4, '#ff0000']}); | 
|---|
|  |  |  | } else if (res.code === 10002) { | 
|---|
|  |  |  | layer.tips(res.msg, '#username', {tips: [4, '#ff0000']}); | 
|---|
|  |  |  | } else if (res.code === 10003) { | 
|---|
|  |  |  | layer.tips(res.msg, '#password', {tips: [4, '#ff0000']}); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']}); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $('body').keydown(function () { | 
|---|