Files
EAP_Interface_html/.preview/data_upload/preview_bakeoff.html
T
zhy200308 ed877e14ef feat(ui): 交付第9个子页面【数据上传】UI重构与连通性测试联动
- 页面交付清单 (已累计完成 9/11 个页面):
  1. 语言设置 (已完工)
  2. 版型切换 (已完工)
  3. 心率区间设置 (已完工)
  4. 自动连接配置 (已完工)
  5. 手环配置 (已完工)
  6. DFU固件升级 (已完工)
  7. 用户管理 (已完工)
  8. 设备数据库管理 (已完工)
  9. 数据上传 (本次交付·已完工)
- 核心重构亮点:
  1. 采纳 Master-Detail Inset Station 经典双栏比例 (360px 1fr);
  2. 彻底消除点击误导,左侧重构为【自动上传数据】标准开关行与只读【上传通道监控】大盘;
  3. 【测试数据上传】迁移至右侧表单底部实现 100% 贯穿式排版,且支持输入完整性动态校验点亮;
  4. 完善点击测试联动,实时回显 200 OK 连通状态、响应时延与最近测试时间戳;
  5. 集齐 6 件套交付物 (baseline_ui.html, image.png, DESIGN_SPEC.md, implementation_plan.md, CARD 任务卡, README 更新)。
2026-08-17 18:43:32 +08:00

103 lines
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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;">HTTP/HTTPS REST API</span>
</div>
<div class="tabs-row">
<button class="tab-btn active" onclick="switchOpt(1, this)">方案 1:Master-Detail Inset Station 经典双栏 (360px 1fr·推荐)</button>
<button class="tab-btn" onclick="switchOpt(2, this)">方案 2:Fluid Form Studio 通栏工控表单流</button>
<button class="tab-btn" onclick="switchOpt(3, this)">方案 3:Neo-Bento 数据分发矩阵</button>
<button class="tab-btn" onclick="switchOpt(4, this)">方案 4:Nordic Slate 极净工控表单</button>
<button class="tab-btn" onclick="switchOpt(5, this)">方案 5:Cyber Precision 暗晶传输中枢</button>
</div>
</div>
<div class="preview-container">
<iframe id="previewFrame" src="option_1_master_detail_split.html"></iframe>
</div>
<script>
const files = {
1: 'option_1_master_detail_split.html',
2: 'option_2_fluid_endpoint_studio.html',
3: 'option_3_bento_telemetry_dock.html',
4: 'option_4_nordic_slate_sheet.html',
5: 'option_5_cyber_dock_hud.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>