登录.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>叁强鲜配 - 运营管理后台登录</title>
  7. <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  8. <link rel="stylesheet" href="https://unpkg.com/@element-plus/icons-vue/dist/index.css">
  9. <style>
  10. * { margin: 0; padding: 0; box-sizing: border-box; }
  11. body {
  12. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  13. background: linear-gradient(135deg, #1989fa 0%, #07c160 100%);
  14. min-height: 100vh;
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. }
  19. .login-container {
  20. width: 100%;
  21. max-width: 420px;
  22. padding: 20px;
  23. }
  24. .login-card {
  25. background: #fff;
  26. border-radius: 16px;
  27. padding: 48px 40px;
  28. box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  29. }
  30. .login-logo {
  31. text-align: center;
  32. margin-bottom: 40px;
  33. }
  34. .login-logo h1 {
  35. font-size: 32px;
  36. font-weight: 700;
  37. color: #1989fa;
  38. margin-bottom: 8px;
  39. }
  40. .login-logo p {
  41. font-size: 14px;
  42. color: #909399;
  43. }
  44. .login-form {
  45. margin-bottom: 24px;
  46. }
  47. .form-item {
  48. margin-bottom: 20px;
  49. }
  50. .form-item label {
  51. display: block;
  52. font-size: 14px;
  53. color: #606266;
  54. margin-bottom: 8px;
  55. }
  56. .form-item .el-input {
  57. width: 100%;
  58. }
  59. .captcha-row {
  60. display: flex;
  61. gap: 12px;
  62. }
  63. .captcha-row .el-input {
  64. flex: 1;
  65. }
  66. .captcha-img {
  67. width: 120px;
  68. height: 40px;
  69. background: #f5f7fa;
  70. border-radius: 8px;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. cursor: pointer;
  75. font-size: 12px;
  76. color: #909399;
  77. }
  78. .remember-row {
  79. display: flex;
  80. justify-content: space-between;
  81. align-items: center;
  82. margin-bottom: 24px;
  83. }
  84. .login-btn {
  85. width: 100%;
  86. height: 48px;
  87. font-size: 16px;
  88. border-radius: 24px;
  89. }
  90. .login-footer {
  91. text-align: center;
  92. margin-top: 24px;
  93. font-size: 13px;
  94. color: #909399;
  95. }
  96. .error-tip {
  97. color: #ee0a24;
  98. font-size: 12px;
  99. margin-top: 8px;
  100. }
  101. .system-info {
  102. text-align: center;
  103. margin-top: 24px;
  104. padding-top: 24px;
  105. border-top: 1px solid #eee;
  106. }
  107. .system-info p {
  108. font-size: 12px;
  109. color: #c0c4cc;
  110. }
  111. </style>
  112. </head>
  113. <body>
  114. <div class="login-container">
  115. <div class="login-card">
  116. <div class="login-logo">
  117. <h1>叁强鲜配</h1>
  118. <p>运营管理后台</p>
  119. </div>
  120. <div class="login-form">
  121. <div class="form-item">
  122. <label>用户名</label>
  123. <el-input placeholder="请输入用户名" size="large" prefix-icon="User" />
  124. </div>
  125. <div class="form-item">
  126. <label>密码</label>
  127. <el-input placeholder="请输入密码" type="password" size="large" prefix-icon="Lock" show-password />
  128. </div>
  129. <div class="form-item">
  130. <label>验证码</label>
  131. <div class="captcha-row">
  132. <el-input placeholder="请输入验证码" size="large" prefix-icon="CircleCheck" />
  133. <div class="captcha-img">
  134. <span>看不清?点击刷新</span>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="remember-row">
  139. <el-checkbox label="记住密码" size="large" />
  140. <a href="#" style="color: #1989fa; font-size: 14px; text-decoration: none;">忘记密码?</a>
  141. </div>
  142. <el-button type="primary" class="login-btn" size="large">登 录</el-button>
  143. <div class="error-tip" style="display: none;">
  144. <i class="el-icon-warning"></i>
  145. <span>用户名或密码错误,请重新输入</span>
  146. </div>
  147. </div>
  148. <div class="system-info">
  149. <p>技术支持:叁强公司 | 版本号:v1.0.0</p>
  150. </div>
  151. </div>
  152. </div>
  153. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  154. <script src="https://unpkg.com/element-plus"></script>
  155. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  156. <script>
  157. const { createApp } = Vue;
  158. const app = createApp({
  159. setup() {
  160. return {};
  161. }
  162. });
  163. app.use(ElementPlus);
  164. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  165. app.component(key, component);
  166. }
  167. app.mount('#app');
  168. </script>
  169. </body>
  170. </html>