| | |
| | | |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //静态资源所在路径 |
| | |
| | | }) |
| | | |
| | | //form.render(); |
| | | |
| | | //判断用户是移动端还是PC端 |
| | | var judgeMorPCflag = judgeMorPC(); |
| | | |
| | | //提交 |
| | | form.on("submit(LAY-user-login-submit)", function (obj) { |
| | |
| | | sessionStorage["HProcID"] = result.data[0].HProcID; |
| | | sessionStorage["login"] = "login"; |
| | | //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name"); |
| | | |
| | | if (!judgeMorPCflag) {//移动端 |
| | | window.location.href = '../../views/index_Mobile.html' |
| | | } else {//PC端 |
| | | window.location.href = '../../views/index.html' |
| | | } |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | |
| | | //用户名框回车光标移到密码框 |
| | | $('#LAY-user-login-username').on('keydown', function (e) { |
| | | if (e.keyCode == 13) |
| | | { |
| | | if (e.keyCode == 13) { |
| | | $("#LAY-user-login-password").focus(); |
| | | } |
| | | }) |