login.html 7.6 KB

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