feat(ui): 完成【版型切换】与【心率区间设置】页面 UI 重构及标准物料交付
This commit is contained in:
@@ -0,0 +1,229 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:紧凑高聚焦版 (Compact Density)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #1E40AF;
|
||||
--color-primary-container: #DBEAFE;
|
||||
--color-secondary: #0D9488;
|
||||
--color-secondary-container: #CCFBF1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F1F5F9;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #475569;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #94A3B8;
|
||||
--corner-card: 10px;
|
||||
--content-max-width: 700px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 16px rgba(0,0,0,0.04);
|
||||
}
|
||||
.appbar {
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
.appbar-nav:hover { background: #F1F5F9; }
|
||||
.appbar-nav svg { width: 22px; height: 22px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 32px 20px 40px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 0 auto 12px;
|
||||
border: 2px solid #F43F5E;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 6px 5px;
|
||||
gap: 4px;
|
||||
background: #FFF;
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 5px;
|
||||
background: #F43F5E;
|
||||
border-radius: 1px 1px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 12px; }
|
||||
.hero-icon .b2 { height: 24px; }
|
||||
.hero-icon .b3 { height: 16px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 14px 18px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #64748B;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: #EFF6FF;
|
||||
}
|
||||
.radio-slot {
|
||||
padding-top: 1px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-circle {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.edition-card.is-selected .radio-circle {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 15.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.45;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
background: #D1FAE5;
|
||||
color: #047857;
|
||||
border: 1px solid rgba(4, 120, 87, 0.2);
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover { background: #A7F3D0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div class="appbar-nav"><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>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-slot"><div class="radio-circle"><div class="radio-dot"></div></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user