|  |  | 
 |  |  |   <head> | 
 |  |  |     <meta charset="utf-8"> | 
 |  |  |     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 
 |  |  |     <title>中扬 │ login of zoneyung wms</title> | 
 |  |  |     <title>中扬 │ login of zoneyung crm</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"> | 
 |  |  | 
 |  |  |     <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); | 
 |  |  |         } | 
 |  |  |       }) | 
 |  |  |  | 
 |  |  |       console.log('%c CRM %c 1.0.0','background-color:rgb(53,73,94);color: #fff;border-radius:2px 0 0 2px;padding:2px 4px;','background-color:rgb(25,190,107);color: #fff;border-radius:0 2px 2px 0;padding:2px 4px;font: 9pt "Apercu Regular", Georgia, "Times New Roman", Times, serif;'); | 
 |  |  |       window.onload = function(){document.getElementById("username").focus();} | 
 |  |  |  | 
 |  |  |       $(document).on('click','.login-btn', function () { | 
 |  |  | 
 |  |  |           success: function (res) { | 
 |  |  |             if (res.code === 200){ | 
 |  |  |               localStorage.setItem("token", res.data.token); | 
 |  |  |               localStorage.setItem("username", res.data.nickname); | 
 |  |  |               localStorage.setItem("nickname", res.data.nickname); | 
 |  |  |               window.location.href = "index.html"; | 
 |  |  |             } else if (res.code === 10001) { | 
 |  |  |               layer.tips(res.msg, '#username', {tips: [4, '#ff0000']}); |