login.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {include file="common/meta" /}
  5. <style type="text/css">
  6. body {
  7. width: 100%;
  8. height: 100vh;
  9. background-image: url("http://xh-erp.7in6.com/img/bg1.jpg");
  10. background-size: cover; /* 等比例放大或缩小背景图以完全覆盖容器 */
  11. background-repeat: no-repeat;
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: center;
  15. align-items: center;
  16. margin: 0;
  17. position: relative;
  18. background-position: center;
  19. filter: brightness(1.2); /* 调整亮度 */
  20. }
  21. a {
  22. color: #444;
  23. }
  24. .login-wrapper {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. width: 100%;
  29. padding: 20px;
  30. box-sizing: border-box;
  31. position: relative;
  32. }
  33. .login-screen {
  34. width: 100%;
  35. max-width: 600px;
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. border-radius: 3px;
  40. box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  41. padding: 20px;
  42. box-sizing: border-box;
  43. }
  44. .profile-img-card {
  45. width: 100px;
  46. height: 100px;
  47. border-radius: 50%;
  48. margin: -50px auto 30px;
  49. border: 5px solid #fff;
  50. }
  51. .profile-name-card {
  52. text-align: center;
  53. }
  54. .login-form {
  55. width: 100%;
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. padding: 20px;
  60. box-sizing: border-box;
  61. }
  62. #login-form {
  63. width: 100%;
  64. }
  65. #login-form .btn {
  66. background-color: rgb(34, 60, 212);
  67. height: 50px;
  68. width: 100%;
  69. }
  70. #login-form .input-group {
  71. margin-bottom: 15px;
  72. width: 100%;
  73. }
  74. #login-form .form-control {
  75. font-size: 13px;
  76. width: 100%;
  77. }
  78. .head {
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. width: 100%;
  83. padding: 10px;
  84. box-sizing: border-box;
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. }
  89. .head .head-title {
  90. font-size: 24px;
  91. margin: 0;
  92. text-align: center;
  93. color: whitesmoke;
  94. font-family: 'Songti', '宋体', serif;
  95. }
  96. .head-title-logo {
  97. text-align: center;
  98. color: whitesmoke;
  99. font-family: 'Songti', '宋体', serif;
  100. font-size: 36px;
  101. font-weight: bold;
  102. margin: 20px 0;
  103. }
  104. .title {
  105. color: white;
  106. }
  107. .footer {
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. width: 100%;
  112. padding: 10px;
  113. color: white;
  114. text-align: center;
  115. font-family: 'Songti', '宋体', serif;
  116. position: absolute;
  117. bottom: 0;
  118. left: 0;
  119. }
  120. @media (max-width: 768px) {
  121. .head .head-title {
  122. font-size: 16px;
  123. }
  124. }
  125. @media (max-width: 480px) {
  126. .head .head-title {
  127. font-size: 12px;
  128. }
  129. }
  130. @media (max-width: 1920px) {
  131. .head .head-title {
  132. font-size: 30px;
  133. }
  134. }
  135. </style>
  136. <!--@formatter:off-->
  137. {if $background}
  138. <style type="text/css">
  139. body {
  140. background-image: url('{$background}');
  141. background-image: url("./img/bg.jpg");
  142. filter: brightness(1.2); /* 调整亮度 */
  143. }
  144. </style>
  145. {/if}
  146. <!--@formatter:on-->
  147. <script>
  148. // 禁止页面缩放
  149. document.addEventListener('wheel', function(e) {
  150. if (e.ctrlKey) {
  151. e.preventDefault();
  152. }
  153. }, { passive: false });
  154. // 禁止触摸缩放
  155. document.addEventListener('gesturestart', function(e) {
  156. e.preventDefault();
  157. });
  158. document.addEventListener('gesturechange', function(e) {
  159. e.preventDefault();
  160. });
  161. document.addEventListener('gestureend', function(e) {
  162. e.preventDefault();
  163. });
  164. </script>
  165. </head>
  166. <body>
  167. <div class="head">
  168. <p class="head-title">浙江新华数码印务有限公司</p>
  169. </div>
  170. <div class="login-wrapper">
  171. <div class="login-screen">
  172. <p class="head-title-logo">生产经营驾驶舱系统</p>
  173. <div>
  174. <div class="login-form">
  175. <p id="profile-name" class="profile-name-card"></p>
  176. <form action="" method="post" id="login-form">
  177. <!--@AdminLoginFormBegin-->
  178. <div id="errtips" class="hide"></div>
  179. {:token()}
  180. <div class="input-group">
  181. <div class="input-group-addon">
  182. <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
  183. </div>
  184. <input type="text" class="form-control" id="pd-form-username" placeholder="{:__('Username')}" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
  185. </div>
  186. <div class="input-group">
  187. <div class="input-group-addon">
  188. <span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
  189. </div>
  190. <input type="password" class="form-control" id="pd-form-password" placeholder="{:__('Password')}" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
  191. </div>
  192. {if $Think.config.fastadmin.login_captcha}
  193. <div class="input-group">
  194. <div class="input-group-addon">
  195. <span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span>
  196. </div>
  197. <input type="text" name="captcha" class="form-control" placeholder="{:__('Captcha')}" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length})" autocomplete="off"/>
  198. <span class="input-group-addon" style="padding:0;border:none;cursor:pointer;">
  199. <img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" width="100" height="30" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
  200. </span>
  201. </div>
  202. {/if}
  203. <div class="form-group">
  204. <button type="submit" class="btn btn-success btn-lg btn-block" style="margin-top: 6px;">登录</button>
  205. </div>
  206. <!--@AdminLoginFormEnd-->
  207. </form>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="footer">
  213. <p>Copyright @ 浙江易盒包装科技有限公司 2023-{:date('Y',time())} 版权所有 <a href="https://beian.miit.gov.cn" target="_blank">{$site.beian|htmlentities}</a></p>
  214. </div>
  215. {include file="common/script" /}
  216. </body>
  217. </html>