login.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script class="include" system="" path="inc/" file="head">include()</script>
  5. <link rel="stylesheet" href="../script/lib/layui/admin/style/login.css" media="all">
  6. </head>
  7. <body>
  8. <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login">
  9. <form action="/auth.login" method="post" target="f1" class="form-horizontal m-t-20" id="login">
  10. <input type="hidden" name="function" id="function" value="msg">
  11. <input type="hidden" name="refer" id="refer" value="">
  12. <iframe id="f1" name="f1" style="display:none;"></iframe>
  13. <div class="layadmin-user-login-main">
  14. <div class="layadmin-user-login-box layadmin-user-login-header">
  15. <h2 id="name">dever</h2>
  16. </div>
  17. <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
  18. <div class="layui-form-item">
  19. <label class="layadmin-user-login-icon layui-icon layui-icon-cellphone" for="LAY-user-login-cellphone"></label>
  20. <input type="text" name="mobile" id="LAY-user-login-cellphone" lay-verify="phone" placeholder="手机号" class="layui-input">
  21. </div>
  22. <div class="layui-form-item">
  23. <div class="layui-row">
  24. <div class="layui-col-xs7">
  25. <label class="layadmin-user-login-icon layui-icon layui-icon-vercode" for="LAY-user-login-vercode"></label>
  26. <input type="text" name="mcode" id="LAY-user-login-vercode" lay-verify="required" placeholder="验证码" class="layui-input">
  27. </div>
  28. <div class="layui-col-xs5">
  29. <div style="margin-left: 10px;">
  30. <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid" id="LAY-user-getsmscode">获取验证码</button>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="layui-form-item">
  36. <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 入</button>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="layui-trans layadmin-user-login-footer">
  41. <p id="footer">© 2015-2020 dever.cc,Inc. Licensed under MIT license.</p>
  42. </div>
  43. <div class="ladmin-user-login-theme" style="display:none;">
  44. <script type="text/html" template>
  45. <ul>
  46. <li data-theme=""><img src="{{ layui.setter.base }}style/res/bg-none.jpg"></li>
  47. <li data-theme="#03152A" style="background-color: #03152A;"></li>
  48. <li data-theme="#2E241B" style="background-color: #2E241B;"></li>
  49. <li data-theme="#50314F" style="background-color: #50314F;"></li>
  50. <li data-theme="#344058" style="background-color: #344058;"></li>
  51. <li data-theme="#20222A" style="background-color: #20222A;"></li>
  52. </ul>
  53. </script>
  54. </div>
  55. </form>
  56. </div>
  57. <script class="include" system="" path="inc/" file="script">include()</script>
  58. <script>
  59. $(function()
  60. {
  61. $("#login").bind("keydown",function(e){
  62. var theEvent = e || window.event;
  63. var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  64. if (code == 13) {
  65. $("#login").submit();
  66. }
  67. });
  68. });
  69. </script>
  70. <script>
  71. layui.config({
  72. base: '../script/lib/layui/admin/' //静态资源所在路径
  73. ,version: true
  74. }).extend({
  75. index: 'lib/index' //主入口模块
  76. }).use(['index', 'user'], function(){
  77. var $ = layui.$
  78. ,setter = layui.setter
  79. ,admin = layui.admin
  80. });
  81. </script>
  82. </body>
  83. </html>