| | |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/> |
| | | <title>系统登录</title> |
| | | <title>浙江中扬立库技术有限公司</title> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <style> |
| | | html { |
| | | background-color: #fff; |
| | | } |
| | | body { |
| | | text-align: center; |
| | | padding: 10px 30px; |
| | | } |
| | | .login-form { |
| | | text-align: left; |
| | | } |
| | | |
| | | .login-form input { |
| | | display: block; |
| | | } |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <h1>中扬物流</h1> |
| | | <h2>系统登录</h2> |
| | | <div class="login-form"> |
| | | <div> |
| | | <span>账号</span> |
| | | <input type="text" id="mobile" value="super"> |
| | | </div> |
| | | <div> |
| | | <div style="margin-top: 5px"> |
| | | <span>密码</span> |
| | | <input type="password" id="password" value="xltys1995"> |
| | | </div> |
| | | <div> |
| | | <button id="login" onclick="login()">登录</button> |
| | | <div style="margin-top: 8px;height: 20px;"> |
| | | <button id="login" onclick="login()" style="padding: 5px 3px 0 3px">登录</button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <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"> |
| | | document.onkeydown = function (e) { |
| | | document.onkeyup = function (e) { |
| | | if (window.event)//如果window.event对象存在,就以此事件对象为准 |
| | | e = window.event; |
| | | var code = e.charCode || e.keyCode; |
| | |
| | | login() |
| | | } |
| | | } |
| | | document.onkeydown = function (e) { |
| | | if (window.event)//如果window.event对象存在,就以此事件对象为准 |
| | | e = window.event; |
| | | var code = e.charCode || e.keyCode; |
| | | if (code === 13) { |
| | | document.getElementById("login"); |
| | | } |
| | | } |
| | | function login(){ |
| | | httpRequest({ |
| | | httpUrl: baseUrl+"/login.action", |