login_wyjt.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>万洋集团</title>
  8. <link rel="shortcut icon" href="assets/images/favicon.ico" type="image/x-icon"/>
  9. <link rel="stylesheet" href="assets/libs/layui/css/layui.css"/>
  10. </head>
  11. <style>
  12. * {
  13. margin: 0px;
  14. padding: 0px;
  15. }
  16. html, body {
  17. width: 100%;
  18. height: 100%;
  19. }
  20. img {
  21. display: block;
  22. }
  23. .login {
  24. width: 100%;
  25. height: 100%;
  26. background-image: url("./login/wyjt/img/wy_bg.png");
  27. background-size: cover;
  28. position: relative;
  29. }
  30. .logo {
  31. width: 263px;
  32. }
  33. .logo img {
  34. width: 100%;
  35. }
  36. .main {
  37. width: 600px;
  38. height: 416px;
  39. background: rgba(245, 242, 242, 0.6);
  40. box-shadow: 0px 0px 20px 0px rgba(87, 83, 79, 0.38);
  41. border-radius: 10px;
  42. margin: 0 auto;
  43. position: absolute;
  44. left: 50%;
  45. top: 50%;
  46. margin-left: -300px;
  47. margin-top: -210px;
  48. }
  49. .main .top {
  50. width: 90%;
  51. margin: 0 auto;
  52. margin-top: 25px;
  53. }
  54. .main .top img {
  55. width: 100%;
  56. }
  57. .main .user-box {
  58. width: 78%;
  59. margin: 0 auto;
  60. background: rgba(255, 255, 255, 1);
  61. border: 1px solid rgba(208, 210, 212, 1);
  62. border-radius: 10px;
  63. }
  64. .name {
  65. margin-top: 15px;
  66. padding-bottom: 10px;
  67. }
  68. .name-box {
  69. border-bottom: 1px solid #D0D2D4;
  70. }
  71. .save {
  72. width: 78%;
  73. margin: 0 auto;
  74. margin-top: 20px;
  75. display: flex;
  76. align-items: center;
  77. }
  78. .save input {
  79. width: 22px;
  80. height: 22px;
  81. }
  82. .save span {
  83. margin-left: 5px;
  84. }
  85. .btn {
  86. width: 78%;
  87. margin: 0 auto;
  88. margin-top: 20px;
  89. }
  90. .btn .layui-btn {
  91. width: 100%;
  92. }
  93. .footer {
  94. width: 100%;
  95. height: 68px;
  96. background: rgba(243, 243, 243, 0.9);
  97. position: absolute;
  98. bottom: 0px;
  99. font-size: 16px;
  100. color: #292929;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. }
  105. .layui-input, .layui-select, .layui-textarea {
  106. border: none;
  107. }
  108. </style>
  109. <body>
  110. <div class="login">
  111. <div class="logo">
  112. <img src="./login/wyjt/img/wy_logo.png" alt="">
  113. </div>
  114. <div class="main">
  115. <form class="layui-form">
  116. <div class="top">
  117. <img src=".//login/wyjt/img/wy_title1.png" alt="">
  118. </div>
  119. <div class="user-box">
  120. <div class="name name-box">
  121. <label class="layui-form-label">账号:</label>
  122. <div class="layui-input-block">
  123. <input type="text" name="username" id="username" autocomplete="off" placeholder="请输入您的账号昵称"
  124. class="layui-input">
  125. </div>
  126. </div>
  127. <div class="name">
  128. <label class="layui-form-label">密码:</label>
  129. <div class="layui-input-block">
  130. <input type="password" name="password" id="password" autocomplete="off" placeholder="请输入密码"
  131. class="layui-input">
  132. </div>
  133. </div>
  134. </div>
  135. <div class="save">
  136. <input type="checkbox" name="checkbox" lay-skin="primary" title="记住密码" checked="">
  137. </div>
  138. <div class="btn">
  139. <button id="btn1" lay-filter="login" class="layui-btn layui-btn-normal" lay-submit>立即登录</button>
  140. </div>
  141. </form>
  142. </div>
  143. <div class="footer">
  144. <p>
  145. 建设单位:济源市万洋冶炼(集团)有限公司
  146. </p>
  147. <p style="margin-left: 30px">
  148. 技术支持:西安智慧创新信息科技
  149. </p>
  150. </div>
  151. </div>
  152. </body>
  153. <script type="text/javascript" src="assets/libs/layui/layui.js"></script>
  154. <script type="text/javascript" src="assets/js/common.js?v=312"></script>
  155. <script>
  156. layui.use(['layer', 'form', 'uParas', 'admin'], function () {
  157. var $ = layui.jquery;
  158. var layer = layui.layer;
  159. var form = layui.form;
  160. var uParas = layui.uParas;
  161. var admin = layui.admin;
  162. // 表单提交
  163. uParas.clearCache();
  164. form.on('submit(login)', function (obj) {
  165. admin.btnLoading('#btn1', '登录中。。。。');
  166. admin.req(uParas.baseUrl + '/login', obj.field, function (resp) {
  167. if (resp.code == 1) {
  168. uParas.loginCache(resp);
  169. location.href = "./index.html"
  170. } else {
  171. layer.msg(resp.msg)
  172. admin.btnLoading('#btn1', '登录', false);
  173. }
  174. }, 'POST');
  175. return false;
  176. });
  177. // 图形验证码
  178. $('.login-captcha').click(function () {
  179. this.src = this.src + '?t=' + (new Date).getTime();
  180. });
  181. });
  182. </script>
  183. </html>