feat(ui): 完成【版型切换】与【心率区间设置】页面 UI 重构及标准物料交付

This commit is contained in:
zhy200308
2026-08-17 15:43:15 +08:00
parent 0c7e12f89a
commit fa304292b4
40 changed files with 10137 additions and 0 deletions
@@ -0,0 +1,192 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>心率区间设置 - 方案 1 延伸 5 套动感高阶方案竞标</title>
<style>
:root {
--primary: #3949AB;
--bg: #090D16;
--panel: #131B2E;
--border: #23314D;
--text: #F8FAFC;
--text-dim: #94A3B8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 16px 28px;
background: var(--panel);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.brand {
font-size: 18px;
font-weight: 700;
color: #38BDF8;
display: flex;
align-items: center;
gap: 12px;
}
.brand span {
font-size: 12px;
font-weight: 500;
color: #E2E8F0;
background: #1E293B;
border: 1px solid var(--border);
padding: 3px 10px;
border-radius: 6px;
}
.nav-tabs {
display: flex;
gap: 6px;
background: #090D16;
padding: 4px;
border-radius: 12px;
border: 1px solid var(--border);
}
.tab-btn {
padding: 8px 14px;
border: none;
background: transparent;
color: var(--text-dim);
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
}
.tab-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.06); }
.tab-btn.active {
background: #2563EB;
color: #FFFFFF;
font-weight: 600;
box-shadow: 0 2px 10px rgba(37,99,235,0.4);
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
padding: 20px 28px;
align-items: center;
}
.desc-card {
width: 100%;
max-width: 1140px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 16px 24px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.desc-title { font-size: 16px; font-weight: 600; color: #F8FAFC; }
.desc-text { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
.iframe-container {
width: 100%;
max-width: 1140px;
height: 690px;
border-radius: 14px;
overflow: hidden;
border: 1px solid var(--border);
background: #FFF;
box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<header>
<div class="brand">
💓 心率区间设置 · 方案 1 延伸 5 套动感高阶方案竞标
<span>保留原版红/橙/绿/蓝/灰专属色系与全量字段</span>
</div>
<div class="nav-tabs">
<button class="tab-btn active" onclick="switchOption(5, this)">⭐ 1-E:精修暗晶粒子流 (推荐)</button>
<button class="tab-btn" onclick="switchOption(1, this)">1-A:Pro Pulse 光谱波形版</button>
<button class="tab-btn" onclick="switchOption(2, this)">1-B:Aero Ring 5色能量环</button>
<button class="tab-btn" onclick="switchOption(3, this)">1-C:Glassmorphic 毛玻璃</button>
<button class="tab-btn" onclick="switchOption(4, this)">1-D:Cardio Gauge 大表盘</button>
</div>
</header>
<div class="main-content">
<div class="desc-card" id="descCard">
<div>
<div class="desc-title" id="descTitle">方案 1-E 精修版:动态心跳 + 黑曜石暗晶粒子监控 (强烈推荐)</div>
<div class="desc-text" id="descDetail">❤️ 升级为高真拟态双跳心电脉冲;右侧全面升级为黑曜石暗晶 HUD,剔除廉价蓝底,搭载 Canvas 悬浮能量粒子引擎 + 激光心电示波 + 粒子流光能量阶梯。</div>
</div>
<a id="directLink" href="option_1e_compact_flow.html" target="_blank" style="color: #38BDF8; font-size: 13px; text-decoration: none; border: 1px solid #38BDF8; padding: 7px 14px; border-radius: 8px; white-space: nowrap;">独立打开 ↗</a>
</div>
<div class="iframe-container">
<iframe id="previewFrame" src="option_1e_compact_flow.html"></iframe>
</div>
</div>
<script>
const options = [
{
id: 5,
file: 'option_1e_compact_flow.html',
title: '方案 1-E 精修版:动态心跳 + 黑曜石暗晶粒子监控 (强烈推荐 · 动感与工控巅峰)',
detail: '❤️ 升级为真实人体双跳律动心电脉冲;右侧监控区彻底重构为黑曜石暗晶 HUD,剔除纯蓝底色,搭载 Canvas 悬浮能量粒子引擎 + 激光心电示波 + 粒子流光能量阶梯。'
},
{
id: 1,
file: 'option_1a_pro_pulse.html',
title: '方案 1-A:Pro Pulse 动态光谱波形版 (经典至臻款)',
detail: '左侧 5 大心率能量渐变卡片(红/橙/绿/蓝/灰纯正色阶) + 右侧暗晶 HUD 动态 ECG 心电脉冲走势与最大心率/燃脂上限看板,年龄滑块拖动实时动态重算。'
},
{
id: 2,
file: 'option_1b_aero_ring.html',
title: '方案 1-B:Aero Dynamic Ring (5 色心率能量环仪表盘版)',
detail: '右侧配备 5 段彩色心率刻度能量圆环,中心呈现大字号 MAX BPM 动态指示,底部 5 色点阵图例对照,极具 Garmin/Apple Watch 旗舰手感。'
},
{
id: 3,
file: 'option_1c_glassmorphic.html',
title: '方案 1-C:Glassmorphic Sport Pro (半透毛玻璃动感奢华版)',
detail: '全透光毛玻璃卡片(blur: 20px)+ 左侧 6px 纯正原色辉光条,右侧搭载动态扩散雷达波与生理指标看板。'
},
{
id: 4,
file: 'option_1d_cardio_gauge.html',
title: '方案 1-D:Cardio Gauge Studio (运动大表盘质感版)',
detail: '右侧采用半圆心率转速表盘(Tachometer Gauge),5 阶光谱精准弧度渐变,中心显示动态负荷并推荐心率燃脂区间。'
}
];
function switchOption(id, btn) {
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
const opt = options.find(o => o.id === id);
document.getElementById('descTitle').innerText = opt.title;
document.getElementById('descDetail').innerText = opt.detail;
document.getElementById('directLink').href = opt.file;
document.getElementById('previewFrame').src = opt.file;
}
</script>
</body>
</html>