public.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>eps</title>
  6. <meta name="description" content="管理系统"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  8. <link rel="stylesheet" href="../../lib/login/css/supersized.css">
  9. <link rel="stylesheet" href="../../lib/login/css/style.css">
  10. <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
  11. <!--[if lt IE 9]>
  12. <script src="../../lib/html5shiv.min.js"></script>
  13. <![endif]-->
  14. </head>
  15. <body>
  16. <div class="page-container">
  17. <div class="container">
  18. <h1>华力智慧电源云服务平台</h1>
  19. <div>
  20. <!--<form id="sign-in">-->
  21. <!--<div id="login-msg" style="color: white;border: red"></div>-->
  22. <!--<div class="form-group">-->
  23. <!--<label>用户名</label>-->
  24. <!--<input type="text"-->
  25. <!--data-validate="{required: true, messages:{required:'请输入用户名'}}" name="login_username"-->
  26. <!--id="login_username" autocomplete="off" value="guest"/>-->
  27. <!--</div>-->
  28. <!--<div class="form-group">-->
  29. <!--<label>密码</label>-->
  30. <!--<input type="password"-->
  31. <!--data-validate="{required: true, messages:{required:'请输入密码'}}" name="login_password"-->
  32. <!--id="login_password" autocomplete="off" value="abcd1234"/>-->
  33. <!--</div>-->
  34. <!--<button type="submit" style="background-color: #651fff;border-color: #651fff">贵宾登录</button>-->
  35. <div style="height: 100px"></div>
  36. <button type="submit" id="guestLogin" >贵宾登录</button>
  37. <!--</form>-->
  38. </div>
  39. <div style="margin-top: 100px">
  40. <p>
  41. <small class="text-muted">山东华力机电有限公司<br>&copy; 2015</small>
  42. </p>
  43. </div>
  44. </div>
  45. </div>
  46. <script src="../../lib/app/js/app.min.js"></script>
  47. <script src="../../lib/login/js/supersized.3.2.7.min.js"></script>
  48. <script src="../../lib/login/js/supersized-init.js"></script>
  49. <script src="../../lib/jquery/jquery/validate/jquery.validate.js"></script>
  50. <script src="../../lib/jquery/jquery/jquery.form.js"></script>
  51. <script>
  52. $(document).ready(function () {
  53. if (self != top) {
  54. top.location.href = "/login"
  55. return
  56. }
  57. function showResponse(resp) {
  58. if (resp.ret == "success") {
  59. window.location.href = "{{.redirectUrl}}";
  60. return;
  61. }
  62. var result = "登录失败: " + resp.result
  63. $("#login-msg").text(result);
  64. }
  65. // validate
  66. $('#guestLogin').on("click", function(){
  67. $.ajax({
  68. url: "/login",
  69. type: 'post',
  70. data:{"login_username":"guest"},
  71. success: showResponse,
  72. error: function () {
  73. showAlert('Delete item error!', 'danger');
  74. }}
  75. );
  76. })
  77. })
  78. </script>
  79. </body>
  80. </html>