4a77427c4a
1. 完成页面优化交付: - 【手环配置】:完成6件标准物料交付(原图+image.png+baseline_ui.html+DESIGN_SPEC.md+implementation_plan.md+CARD任务卡),采用流体双栏仪表盘架构、居中底部抽拉式Sheet面板、左上角动态雷达声呐动效、右下角悬浮蓝牙FAB、实时同步日志控制台Terminal,并将设备列表按钮精简为BLE标签且支持整行点击直连。 2. 全局主色蓝规范统一与旧页面修复: - README.md 固化《全局核心主色蓝统一规范》,全量统一收敛为 #2563EB(深色 #1D4ED8、浅底 #EFF6FF、高亮 #1E40AF、微光 rgba(37,99,235,0.25))。 - 同步修复【语言设置】、【版型切换】、【心率区间设置】、【自动连接配置】中的杂色与偏紫蓝色,全部对齐为标准主色蓝。 - 通过 Chrome Headless 自动批量重新渲染并更新了前 5 个页面的官方 image.png 效果图。
458 lines
11 KiB
HTML
458 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>EAPManageUI - 选择版型 (UI 重构基准)</title>
|
|
<style>
|
|
/* =========================================================================
|
|
:root 全量 Design Tokens 声明 (与系统设置全局规范严格对齐)
|
|
========================================================================= */
|
|
:root {
|
|
/* ── 核心主题色 ── */
|
|
--color-primary: #2563EB;
|
|
--color-primary-dark: #1D4ED8;
|
|
--color-primary-container: #EFF6FF;
|
|
--color-on-primary-container: #1E40AF;
|
|
--color-primary-hover: rgba(37, 99, 235, 0.04);
|
|
--color-primary-glow: rgba(37, 99, 235, 0.15);
|
|
|
|
/* ── 辅助确认色 ── */
|
|
--color-secondary: #00897B;
|
|
--color-secondary-container: #E0F2F1;
|
|
--color-on-secondary: #FFFFFF;
|
|
--color-secondary-hover: #C8ECE7;
|
|
|
|
/* ── 表面与背景 ── */
|
|
--color-surface: #FFFFFF;
|
|
--color-surface-variant: #F8FAFC;
|
|
--color-background: #F1F5F9;
|
|
|
|
/* ── 文本语义色 ── */
|
|
--text-primary: #0F172A;
|
|
--text-secondary: #64748B;
|
|
--text-disabled: #CBD5E1;
|
|
|
|
/* ── 边框与分割线 ── */
|
|
--divider: #E2E8F0;
|
|
--outline: #CBD5E1;
|
|
|
|
/* ── 圆角阶梯 ── */
|
|
--corner-sm: 8px;
|
|
--corner-md: 12px;
|
|
--corner-lg: 16px;
|
|
--corner-pill: 999px;
|
|
|
|
/* ── 阴影阶梯 ── */
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
--shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
|
|
--shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
|
|
|
|
/* ── 尺寸与栅格 ── */
|
|
--content-max-width: 1160px;
|
|
--sidebar-width: 360px;
|
|
--content-gutter: clamp(16px, 2.5vw, 32px);
|
|
--appbar-height: 60px;
|
|
--touch-min: 48px;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
background: var(--color-background);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
padding: var(--content-gutter);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 视口模拟器容器 (大屏动态自适应) */
|
|
.screen-container {
|
|
width: 100%;
|
|
max-width: var(--content-max-width);
|
|
margin: 0 auto;
|
|
background: var(--color-surface);
|
|
border-radius: 20px;
|
|
border: 1px solid var(--divider);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* =========================================================================
|
|
AppBar 顶部导航栏统一规范 (40dp 纯净透明触控槽 + Hover 微圆底)
|
|
========================================================================= */
|
|
.appbar {
|
|
height: var(--appbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
background: var(--color-surface);
|
|
border-bottom: 1px solid var(--divider);
|
|
}
|
|
|
|
.appbar-nav {
|
|
width: 40px;
|
|
height: 40px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.appbar-nav:hover {
|
|
background: rgba(15, 23, 42, 0.06);
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.appbar-nav svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: var(--text-main);
|
|
}
|
|
|
|
.appbar-title {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-left: 10px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* 双栏主体布局 (统一 360px 1fr 比例) */
|
|
.page-body {
|
|
padding: clamp(20px, 2.5vw, 30px);
|
|
background: var(--color-background);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.master-detail-layout {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: 360px 1fr;
|
|
gap: clamp(16px, 2vw, 24px);
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* 左侧概览面板 (Master Summary) */
|
|
.summary-sidebar {
|
|
background: var(--color-surface);
|
|
border-radius: var(--corner-lg);
|
|
border: 1px solid var(--divider);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 24px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 出厂原版粉红/红框柱状图图标 (高精细度还原) */
|
|
.sidebar-icon-box {
|
|
width: 52px;
|
|
height: 52px;
|
|
border: 2.5px solid #FF5252;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
padding: 8px 6px;
|
|
gap: 4px;
|
|
background: #FFFFFF;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 4px 12px rgba(255, 82, 82, 0.12);
|
|
}
|
|
|
|
.sidebar-icon-box .bar {
|
|
width: 6px;
|
|
background: #FF5252;
|
|
border-radius: 2px 2px 0 0;
|
|
}
|
|
|
|
.sidebar-icon-box .b1 { height: 14px; }
|
|
.sidebar-icon-box .b2 { height: 26px; }
|
|
.sidebar-icon-box .b3 { height: 18px; }
|
|
|
|
.sidebar-title {
|
|
font-size: 21px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.sidebar-desc {
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* 当前选定状态联动卡片 */
|
|
.status-pill-box {
|
|
margin-top: auto;
|
|
background: var(--color-surface-variant);
|
|
border: 1px solid var(--divider);
|
|
border-radius: var(--corner-md);
|
|
padding: 16px;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #10B981;
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
/* 右侧选择区与操作 */
|
|
.main-selection {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.edition-card {
|
|
background: var(--color-surface);
|
|
border: 1.5px solid var(--divider);
|
|
border-radius: var(--corner-lg);
|
|
padding: 22px 24px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 18px;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: var(--shadow-sm);
|
|
position: relative;
|
|
user-select: none;
|
|
}
|
|
|
|
.edition-card:hover {
|
|
border-color: #94A3B8;
|
|
background: #F8FAFC;
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.edition-card.is-selected {
|
|
border-color: var(--color-primary);
|
|
background: var(--color-primary-container);
|
|
box-shadow: 0 4px 20px var(--color-primary-glow);
|
|
}
|
|
|
|
/* 选中左侧指示光条 */
|
|
.card-active-indicator {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 18px;
|
|
bottom: 18px;
|
|
width: 4px;
|
|
border-radius: 0 4px 4px 0;
|
|
background: var(--color-primary);
|
|
opacity: 0;
|
|
transform: scaleY(0.4);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.edition-card.is-selected .card-active-indicator {
|
|
opacity: 1;
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
.radio-slot {
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.radio-outer {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--outline);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #FFFFFF;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.edition-card.is-selected .radio-outer {
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.radio-inner {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--color-primary);
|
|
opacity: 0;
|
|
transform: scale(0.3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.edition-card.is-selected .radio-inner {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.edition-info { flex: 1; }
|
|
|
|
.edition-name {
|
|
font-size: 17.5px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 6px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.edition-card.is-selected .edition-name {
|
|
color: var(--color-on-primary-container);
|
|
}
|
|
|
|
.edition-desc {
|
|
font-size: 13.8px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.btn-confirm-wrap {
|
|
margin-top: auto;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.btn-confirm {
|
|
width: 100%;
|
|
height: 48px;
|
|
background: var(--color-secondary-container);
|
|
color: var(--color-secondary);
|
|
border: 1px solid rgba(0, 137, 123, 0.2);
|
|
border-radius: var(--corner-md);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
letter-spacing: 0.05em;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-confirm:hover {
|
|
background: var(--color-secondary-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0, 137, 123, 0.15);
|
|
}
|
|
|
|
.btn-confirm:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.master-detail-layout {
|
|
flex-direction: column;
|
|
}
|
|
.summary-sidebar {
|
|
flex: none;
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="screen-container">
|
|
<header class="appbar">
|
|
<div class="appbar-nav" title="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></div>
|
|
<h1 class="appbar-title">选择版型</h1>
|
|
</header>
|
|
|
|
<main class="page-body">
|
|
<div class="master-detail-layout">
|
|
<!-- 左侧状态概览面板 -->
|
|
<aside class="summary-sidebar">
|
|
<div class="sidebar-icon-box">
|
|
<div class="bar b1"></div>
|
|
<div class="bar b2"></div>
|
|
<div class="bar b3"></div>
|
|
</div>
|
|
<h2 class="sidebar-title">选择版型</h2>
|
|
<p class="sidebar-desc">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
|
|
|
<div class="status-pill-box">
|
|
<div class="status-label">当前选定版型</div>
|
|
<div class="status-value">
|
|
<span class="status-dot"></span>
|
|
<span id="currEditionLabel">自定义功能版</span>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- 右侧版型卡片选择区 -->
|
|
<section class="main-selection" id="editionGroup">
|
|
<div class="edition-card" onclick="selectEdition(this, '专业版')">
|
|
<div class="card-active-indicator"></div>
|
|
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
|
<div class="edition-info">
|
|
<h3 class="edition-name">专业版</h3>
|
|
<p class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="edition-card is-selected" onclick="selectEdition(this, '自定义功能版')">
|
|
<div class="card-active-indicator"></div>
|
|
<div class="radio-slot"><div class="radio-outer"><div class="radio-inner"></div></div></div>
|
|
<div class="edition-info">
|
|
<h3 class="edition-name">自定义功能版</h3>
|
|
<p class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="btn-confirm-wrap">
|
|
<button class="btn-confirm">确定</button>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
function selectEdition(el, name) {
|
|
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
|
el.classList.add('is-selected');
|
|
document.getElementById('currEditionLabel').innerText = name;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|