密码修改.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <style>
  9. * { margin: 0; padding: 0; box-sizing: border-box; }
  10. body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
  11. .topbar { height: 60px; background: linear-gradient(135deg, #1989fa 0%, #07c160 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; }
  12. .topbar-logo h1 { font-size: 22px; font-weight: 600; }
  13. .topbar-logo span { font-size: 13px; opacity: 0.85; }
  14. .topbar-user { display: flex; align-items: center; gap: 16px; }
  15. .main-container { display: flex; min-height: calc(100vh - 60px); }
  16. .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
  17. .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
  18. .menu-item:hover { background: #f5f7fa; color: #1989fa; }
  19. .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  20. .content { flex: 1; padding: 24px; }
  21. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  22. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); max-width: 600px; }
  23. .card-header { margin-bottom: 24px; }
  24. .card-title { font-size: 16px; font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  25. .form-item { margin-bottom: 24px; }
  26. .form-label { font-size: 14px; color: #606266; margin-bottom: 8px; display: block; }
  27. .form-label .required { color: #ee0a24; margin-right: 4px; }
  28. .tips { font-size: 12px; color: #909399; margin-top: 8px; }
  29. .btn-row { display: flex; gap: 16px; }
  30. .btn { padding: 10px 32px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; }
  31. .btn-primary { background: #1989fa; color: #fff; }
  32. .btn-default { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
  33. </style>
  34. </head>
  35. <body>
  36. <div id="app">
  37. <div class="topbar">
  38. <div class="topbar-logo"><h1>叁强鲜配</h1><span>运营管理后台</span></div>
  39. <div class="topbar-user"><el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar><span>管理员</span></div>
  40. </div>
  41. <div class="main-container">
  42. <div class="sidebar">
  43. <div class="menu-item"><el-icon><Setting /></el-icon><span>系统设置</span></div>
  44. <div class="menu-item active"><el-icon><Lock /></el-icon><span>密码修改</span></div>
  45. </div>
  46. <div class="content">
  47. <div class="breadcrumb">首页 / 系统设置 / 密码修改</div>
  48. <div class="card">
  49. <div class="card-header"><span class="card-title">修改密码</span></div>
  50. <div class="form-item">
  51. <label class="form-label"><span class="required">*</span>当前密码</label>
  52. <el-input v-model="form.oldPassword" type="password" placeholder="请输入当前密码" show-password style="width:100%" />
  53. </div>
  54. <div class="form-item">
  55. <label class="form-label"><span class="required">*</span>新密码</label>
  56. <el-input v-model="form.newPassword" type="password" placeholder="请输入新密码" show-password style="width:100%" />
  57. <div class="tips">密码长度8-20位,必须包含数字和字母</div>
  58. </div>
  59. <div class="form-item">
  60. <label class="form-label"><span class="required">*</span>确认新密码</label>
  61. <el-input v-model="form.confirmPassword" type="password" placeholder="请再次输入新密码" show-password style="width:100%" />
  62. </div>
  63. <div class="btn-row">
  64. <button class="btn btn-default" onclick="history.back()">取消</button>
  65. <button class="btn btn-primary">确认修改</button>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  72. <script src="https://unpkg.com/element-plus"></script>
  73. <script>
  74. const { createApp } = Vue;
  75. const app = createApp({
  76. setup() {
  77. const form = reactive({
  78. oldPassword: '',
  79. newPassword: '',
  80. confirmPassword: ''
  81. });
  82. return { form };
  83. }
  84. });
  85. const { reactive } = Vue;
  86. app.use(ElementPlus);
  87. app.mount('#app');
  88. </script>
  89. </body>
  90. </html>