密码重置弹窗.html 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. .dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
  12. .dialog { background: #fff; border-radius: 12px; width: 480px; max-width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
  13. .dialog-header { padding: 20px 24px; border-bottom: 1px solid #ebeef5; display: flex; justify-content: space-between; align-items: center; }
  14. .dialog-title { font-size: 18px; font-weight: 600; }
  15. .dialog-close { font-size: 20px; color: #909399; cursor: pointer; }
  16. .dialog-close:hover { color: #303133; }
  17. .dialog-body { padding: 24px; }
  18. .dialog-footer { padding: 16px 24px; border-top: 1px solid #ebeef5; display: flex; justify-content: flex-end; gap: 12px; }
  19. .user-info { display: flex; align-items: center; gap: 16px; padding: 16px; background: #f5f7fa; border-radius: 8px; margin-bottom: 20px; }
  20. .user-avatar { width: 48px; height: 48px; border-radius: 50%; background: #1989fa; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
  21. .user-detail h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
  22. .user-detail p { font-size: 13px; color: #909399; }
  23. .warning-box { background: #fef0f0; border: 1px solid #ffccc7; border-radius: 8px; padding: 16px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
  24. .warning-icon { font-size: 20px; color: #ee0a24; }
  25. .warning-text { font-size: 14px; color: #ee0a24; line-height: 1.6; }
  26. .password-box { background: #f0f9eb; border: 1px solid #b7eb8f; border-radius: 8px; padding: 16px; text-align: center; }
  27. .password-label { font-size: 13px; color: #909399; margin-bottom: 8px; }
  28. .password-value { font-size: 28px; font-weight: 700; color: #07c160; letter-spacing: 4px; }
  29. .password-tips { font-size: 12px; color: #909399; margin-top: 12px; }
  30. .form-item { margin-bottom: 16px; }
  31. .form-label { font-size: 14px; color: #606266; margin-bottom: 8px; display: block; }
  32. .btn { padding: 10px 24px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; }
  33. .btn-primary { background: #1989fa; color: #fff; }
  34. .btn-default { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
  35. .btn-success { background: #07c160; color: #fff; }
  36. </style>
  37. </head>
  38. <body>
  39. <div id="app">
  40. <div class="dialog-overlay">
  41. <div class="dialog">
  42. <div class="dialog-header">
  43. <span class="dialog-title">密码重置</span>
  44. <span class="dialog-close" onclick="history.back()">×</span>
  45. </div>
  46. <div class="dialog-body">
  47. <div class="user-info">
  48. <div class="user-avatar">张</div>
  49. <div class="user-detail">
  50. <h4>张伟</h4>
  51. <p>供应商 | 城东区域 | 13800138001</p>
  52. </div>
  53. </div>
  54. <div class="warning-box">
  55. <span class="warning-icon">⚠</span>
  56. <div class="warning-text">
  57. 重置密码后,系统将生成新的随机密码。请将此密码告知用户,并提醒用户在首次登录后尽快修改密码。
  58. </div>
  59. </div>
  60. <div class="password-box">
  61. <div class="password-label">新随机密码</div>
  62. <div class="password-value">Ab123456</div>
  63. <div class="password-tips">密码已复制到剪贴板,请妥善保管</div>
  64. </div>
  65. </div>
  66. <div class="dialog-footer">
  67. <button class="btn btn-default" onclick="history.back()">关闭</button>
  68. <button class="btn btn-primary">重新生成密码</button>
  69. <button class="btn btn-success">发送短信通知用户</button>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  75. <script src="https://unpkg.com/element-plus"></script>
  76. <script>
  77. const { createApp } = Vue;
  78. const app = createApp({ setup() { return {}; } });
  79. app.use(ElementPlus);
  80. app.mount('#app');
  81. </script>
  82. </body>
  83. </html>