feat(ui): 完成 [用户管理] (含添加用户/用户表管理) UI重构与全套6件交付物
- 统一采用 Fluid Studio 现代健康工作台设计体系与 #2563EB 核心品牌蓝标准 - 实现主界面、添加/编辑用户表单、用户表管理三视图无缝 SPA 状态机闭环 - 支持真实头像流展示与优质默认 SVG 头像回退 - 精确隔离添加用户(清空)与编辑用户(回填)状态逻辑 - 产出 baseline_ui.html, image.png, DESIGN_SPEC.md, implementation_plan.md, CARD-20260817-UITask-用户管理.md - 更新 README.md 页面完工状态 (第 7 页已完工)
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>用户管理 (包含添加用户与用户表管理) - 5套重构方案对比决策中心</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #2563EB;
|
||||
--bg: #0B0F19;
|
||||
--panel: #131B2E;
|
||||
--border: #1E293B;
|
||||
--text: #F8FAFC;
|
||||
--text-sub: #94A3B8;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.header-bar {
|
||||
padding: 16px 24px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.hub-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
|
||||
.tabs-row { display: flex; gap: 8px; }
|
||||
.tab-btn {
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
border: 1px solid var(--border);
|
||||
background: #1E293B;
|
||||
color: var(--text-sub);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.tab-btn.active {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
|
||||
}
|
||||
.preview-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px;
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
background: white;
|
||||
min-height: 720px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header-bar">
|
||||
<div class="hub-title">
|
||||
<span>👥 用户管理 (含添加用户/用户表管理附属视图) 5套候选方案决策中心</span>
|
||||
<span style="font-size: 12px; background: rgba(37,99,235,0.2); color: #60A5FA; padding: 2px 8px; border-radius: 100px;">全流程 SPA 多视图可交互</span>
|
||||
</div>
|
||||
<div class="tabs-row">
|
||||
<button class="tab-btn active" onclick="switchOpt(1, this)">方案 1:Fluid Studio 多视图一体流 (推荐·家族风)</button>
|
||||
<button class="tab-btn" onclick="switchOpt(2, this)">方案 2:Master-Detail Inset 经典分栏</button>
|
||||
<button class="tab-btn" onclick="switchOpt(3, this)">方案 3:Drawer Modal 工作流风</button>
|
||||
<button class="tab-btn" onclick="switchOpt(4, this)">方案 4:Neo-Bento 磁贴工控风</button>
|
||||
<button class="tab-btn" onclick="switchOpt(5, this)">方案 5:Nordic Master 极简多屏风</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="preview-container">
|
||||
<iframe id="previewFrame" src="option_1_modern_stream.html"></iframe>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const files = {
|
||||
1: 'option_1_modern_stream.html',
|
||||
2: 'option_2_split_studio.html',
|
||||
3: 'option_3_drawer_workflow.html',
|
||||
4: 'option_4_bento_dashboard.html',
|
||||
5: 'option_5_nordic_master.html'
|
||||
};
|
||||
function switchOpt(num, btn) {
|
||||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
document.getElementById('previewFrame').src = files[num];
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user