feat(ui): 交付第10个子页面【版本信息】UI重构与设计规范
- 页面交付清单 (已累计完成 10/11 个页面): 1. 语言设置 (已完工) 2. 版型切换 (已完工) 3. 心率区间设置 (已完工) 4. 自动连接配置 (已完工) 5. 手环配置 (已完工) 6. DFU固件升级 (已完工) 7. 用户管理 (已完工) 8. 设备数据库管理 (已完工) 9. 数据上传 (已完工) 10. 版本信息 (本次交付·已完工) - 核心重构亮点: 1. 采纳 Master-Detail Inset Station 经典双栏比例 (360px 1fr); 2. 左侧 360px 布局应用徽标、版本号微底胶囊与 OTA 系统更新卡片及全宽下载按钮; 3. 右侧 1fr 清晰组织【设备信息】与【构建信息】卡片矩阵,采用调和 Debug 玫瑰红标签; 4. 集齐 6 件套交付物 (baseline_ui.html, image.png, DESIGN_SPEC.md, implementation_plan.md, CARD 任务卡, README 更新)。
This commit is contained in:
@@ -0,0 +1,262 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:Master-Detail Inset Station 经典双栏 (360px 1fr·推荐·家族风)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
全局统一色彩与 Design Tokens (严格对齐 #2563EB 体系)
|
||||
========================================================================= */
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
--border-card: #E2E8F0;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-success-border: #A7F3D0;
|
||||
|
||||
--color-warning: #D97706;
|
||||
--color-warning-bg: #FFFBEB;
|
||||
--color-warning-border: #FDE68A;
|
||||
|
||||
--color-danger: #E11D48;
|
||||
--color-danger-bg: #FFF1F2;
|
||||
--color-danger-border: #FFE4E6;
|
||||
|
||||
--corner-card: 16px;
|
||||
--corner-item: 10px;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* 1. AppBar */
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none; transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover, .appbar-more:hover { background: rgba(15, 23, 42, 0.06); transform: scale(0.96); }
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
/* 2. 经典 360px 1fr 双栏布局 */
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-height: calc(100vh - 120px);
|
||||
}
|
||||
|
||||
/* 左侧 360px Hero 与 OTA 更新大盘 */
|
||||
.left-version-hero {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.hero-header-box {
|
||||
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||
padding-bottom: 20px; border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.app-logo-box {
|
||||
width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
|
||||
display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(238, 82, 83, 0.25);
|
||||
}
|
||||
.app-logo-box svg { width: 38px; height: 38px; fill: white; }
|
||||
.app-title-name { font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.01em; }
|
||||
.app-version-badge {
|
||||
font-size: 13px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light);
|
||||
border: 1px solid var(--color-primary-border); padding: 4px 12px; border-radius: 20px;
|
||||
font-family: ui-monospace, monospace;
|
||||
}
|
||||
|
||||
/* OTA 系统更新卡片 */
|
||||
.ota-update-card {
|
||||
background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 12px;
|
||||
padding: 16px; display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.ota-card-title {
|
||||
font-size: 13px; font-weight: 700; color: var(--color-on-primary-container); display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.ota-new-version {
|
||||
display: flex; align-items: baseline; justify-content: space-between;
|
||||
}
|
||||
.ota-version-code { font-size: 16px; font-weight: 800; color: var(--color-primary); font-family: ui-monospace, monospace; }
|
||||
|
||||
/* 底部贯穿式升级按钮 */
|
||||
.btn-dynamic-full {
|
||||
width: 100%; height: 46px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||
border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: var(--color-primary-gradient); color: white;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
/* 右侧 1fr 设备与底层系统信息矩阵 */
|
||||
.right-details-panel {
|
||||
display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
|
||||
.info-card-block {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px 24px;
|
||||
display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
.card-section-header {
|
||||
font-size: 15px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px;
|
||||
padding-bottom: 10px; border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
|
||||
.kv-table { display: flex; flex-direction: column; gap: 12px; }
|
||||
.kv-row-item {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.kv-label { font-size: 13.5px; color: var(--text-sub); font-weight: 500; }
|
||||
.kv-value { font-size: 14px; font-weight: 700; color: var(--text-main); font-family: ui-monospace, monospace; }
|
||||
|
||||
/* 状态标签 */
|
||||
.tag-badge {
|
||||
padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center;
|
||||
}
|
||||
.tag-debug {
|
||||
background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger-border);
|
||||
}
|
||||
|
||||
/* 版权页脚 */
|
||||
.footer-copyright {
|
||||
text-align: center; font-size: 12px; color: var(--text-dim); margin-top: auto; padding-top: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="split-body">
|
||||
<!-- 左侧 360px 应用标头与 OTA 升级控制中心 -->
|
||||
<div class="left-version-hero">
|
||||
<div style="display: flex; flex-direction: column; gap: 18px;">
|
||||
<div class="hero-header-box">
|
||||
<div class="app-logo-box">
|
||||
<svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<div class="app-title-name">EAP Manage Team</div>
|
||||
<div class="app-version-badge">版本号 1.00.0000</div>
|
||||
</div>
|
||||
|
||||
<!-- 系统更新卡片 -->
|
||||
<div class="ota-update-card">
|
||||
<div class="ota-card-title">
|
||||
<span>系统更新</span>
|
||||
<span style="font-size: 11px; background: #DBEAFE; color: var(--color-primary); padding: 2px 6px; border-radius: 4px;">OTA 就绪</span>
|
||||
</div>
|
||||
<div class="ota-new-version">
|
||||
<span style="font-size: 12.5px; color: var(--text-sub);">有新版本可用:</span>
|
||||
<span class="ota-version-code">1.00.0001</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部贯穿式下载更新按钮 -->
|
||||
<div>
|
||||
<button class="btn-dynamic-full btn-primary-gradient" onclick="handleDownloadUpdate()">
|
||||
<svg style="width: 17px; height: 17px; fill: currentColor;" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></svg>
|
||||
<span>下载更新 (1.00.0001)</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 1fr 设备信息与构建信息卡片矩阵 -->
|
||||
<div class="right-details-panel">
|
||||
<!-- 卡 1:设备信息 -->
|
||||
<div class="info-card-block">
|
||||
<div class="card-section-header">
|
||||
<span>📱 设备信息</span>
|
||||
</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">硬件 ID</span>
|
||||
<span class="kv-value">15EA5B1C22D14D97</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">设备型号</span>
|
||||
<span class="kv-value">TB375FC</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">Android 版本</span>
|
||||
<span class="kv-value">16 (API 36)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 卡 2:构建信息 -->
|
||||
<div class="info-card-block">
|
||||
<div class="card-section-header">
|
||||
<span>🛠️ 构建信息</span>
|
||||
</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">构建类型</span>
|
||||
<span class="tag-badge tag-debug">Debug</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">编译环境</span>
|
||||
<span class="kv-value" style="font-size: 13px;">UmiLab CI/CD Pipeline</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-copyright">
|
||||
© 2026 UmiLab. All rights reserved.
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function handleDownloadUpdate() {
|
||||
alert('开始下载固件包 v1.00.0001 (共 38.4 MB)...');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,93 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 2:Fluid Bento Station 居中磁贴工控卡片流</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.bento-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 0 auto; width: 100%;
|
||||
}
|
||||
.bento-card {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 20px;
|
||||
display: flex; flex-direction: column; gap: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="bento-body">
|
||||
<div class="bento-card" style="align-items: center; text-align: center;">
|
||||
<div style="width: 60px; height: 60px; border-radius: 14px; background: #EE5253; display: flex; align-items: center; justify-content: center;">
|
||||
<svg style="width: 32px; height: 32px; fill: white;" viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<h2 style="font-size: 18px; font-weight: 700; margin-top: 6px;">EAP Manage Team</h2>
|
||||
<span style="font-size: 13px; color: var(--color-primary); font-weight: 700;">版本号 1.00.0000</span>
|
||||
</div>
|
||||
|
||||
<div class="bento-card">
|
||||
<h3 style="font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--divider); padding-bottom: 8px;">设备信息</h3>
|
||||
<div style="display: flex; justify-content: space-between;"><span>硬件 ID:</span><b>15EA5B1C22D14D97</b></div>
|
||||
<div style="display: flex; justify-content: space-between;"><span>设备型号:</span><b>TB375FC</b></div>
|
||||
<div style="display: flex; justify-content: space-between;"><span>Android 版本:</span><b>16 (API 36)</b></div>
|
||||
</div>
|
||||
|
||||
<div class="bento-card">
|
||||
<h3 style="font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--divider); padding-bottom: 8px;">构建信息</h3>
|
||||
<div style="display: flex; justify-content: space-between;"><span>构建类型:</span><b style="color: #E11D48;">Debug</b></div>
|
||||
</div>
|
||||
|
||||
<div class="bento-card" style="flex-direction: row; justify-content: space-between; align-items: center;">
|
||||
<div>
|
||||
<div style="font-weight: 700;">系统更新</div>
|
||||
<div style="font-size: 12px; color: var(--text-sub);">有新版本可用: 1.00.0001</div>
|
||||
</div>
|
||||
<button style="height: 38px; padding: 0 16px; border-radius: 8px; border: none; background: var(--color-primary); color: white; font-weight: 700; cursor: pointer;">下载更新</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 3:Cyber Precision 暗晶终端 HUD</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3B82F6;
|
||||
--bg: #0B0F19;
|
||||
--surface: #131B2E;
|
||||
--text-main: #F8FAFC;
|
||||
--text-sub: #94A3B8;
|
||||
--divider: #1E293B;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: #060911; color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.hud-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #0B0F19; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px;
|
||||
}
|
||||
.hud-card {
|
||||
background: #131B2E; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||
display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="hud-body">
|
||||
<div class="hud-card" style="justify-content: space-between;">
|
||||
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;">
|
||||
<div style="width: 64px; height: 64px; border-radius: 16px; background: #EE5253; display: flex; align-items: center; justify-content: center;">
|
||||
<svg style="width: 34px; height: 34px; fill: white;" viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<b style="font-size: 17px; color: #F8FAFC;">EAP Manage Team</b>
|
||||
<span style="color: #60A5FA; font-family: monospace;">v1.00.0000</span>
|
||||
</div>
|
||||
<button style="width: 100%; height: 42px; background: #2563EB; color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;">下载更新 (1.00.0001)</button>
|
||||
</div>
|
||||
|
||||
<div class="hud-card">
|
||||
<h3 style="color: #60A5FA; font-size: 14px;">设备与底层信息</h3>
|
||||
<div style="display: flex; justify-content: space-between; font-family: monospace;"><span>硬件 ID:</span><span>15EA5B1C22D14D97</span></div>
|
||||
<div style="display: flex; justify-content: space-between; font-family: monospace;"><span>设备型号:</span><span>TB375FC</span></div>
|
||||
<div style="display: flex; justify-content: space-between; font-family: monospace;"><span>Android:</span><span>16 (API 36)</span></div>
|
||||
<div style="display: flex; justify-content: space-between; font-family: monospace;"><span>构建类型:</span><span style="color: #F87171;">Debug</span></div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Nordic Slate 极净工业卡片</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #F8FAFC;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: #F1F5F9; color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.nordic-body {
|
||||
padding: clamp(24px, 3vw, 40px); background: #FFFFFF; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; width: 100%;
|
||||
}
|
||||
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--divider); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="nordic-body">
|
||||
<div style="display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--divider);">
|
||||
<div style="width: 56px; height: 56px; border-radius: 12px; background: #EE5253; display: flex; align-items: center; justify-content: center;">
|
||||
<svg style="width: 30px; height: 30px; fill: white;" viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<div>
|
||||
<h2 style="font-size: 18px; font-weight: 700;">EAP Manage Team</h2>
|
||||
<span style="font-size: 13px; color: var(--color-primary);">版本号 1.00.0000</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-item"><span>硬件 ID</span><b style="font-family: monospace;">15EA5B1C22D14D97</b></div>
|
||||
<div class="list-item"><span>设备型号</span><b>TB375FC</b></div>
|
||||
<div class="list-item"><span>Android 版本</span><b>16 (API 36)</b></div>
|
||||
<div class="list-item"><span>构建类型</span><b style="color: #E11D48;">Debug</b></div>
|
||||
<div class="list-item" style="border-bottom: none;">
|
||||
<div>
|
||||
<b>系统更新</b>
|
||||
<div style="font-size: 12px; color: var(--text-sub);">有新版本可用: 1.00.0001</div>
|
||||
</div>
|
||||
<button style="height: 38px; padding: 0 16px; border: none; background: var(--color-primary); color: white; border-radius: 6px; font-weight: 700; cursor: pointer;">下载更新</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 5:Unified Card Stream 垂直卡片流</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.stream-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; width: 100%;
|
||||
}
|
||||
.stream-card {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="stream-body">
|
||||
<div class="stream-card" style="display: flex; align-items: center; justify-content: space-between;">
|
||||
<div style="display: flex; align-items: center; gap: 14px;">
|
||||
<div style="width: 50px; height: 50px; border-radius: 12px; background: #EE5253; display: flex; align-items: center; justify-content: center;">
|
||||
<svg style="width: 28px; height: 28px; fill: white;" viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<div>
|
||||
<b style="font-size: 16px;">EAP Manage Team</b>
|
||||
<div style="font-size: 13px; color: var(--color-primary);">版本号 1.00.0000</div>
|
||||
</div>
|
||||
</div>
|
||||
<button style="height: 38px; padding: 0 16px; border: none; background: var(--color-primary); color: white; border-radius: 8px; font-weight: 700; cursor: pointer;">下载更新 (1.00.0001)</button>
|
||||
</div>
|
||||
|
||||
<div class="stream-card">
|
||||
<h4 style="margin-bottom: 10px; font-size: 14px;">设备信息</h4>
|
||||
<div style="display: flex; justify-content: space-between; padding: 6px 0;"><span>硬件 ID:</span><b>15EA5B1C22D14D97</b></div>
|
||||
<div style="display: flex; justify-content: space-between; padding: 6px 0;"><span>设备型号:</span><b>TB375FC</b></div>
|
||||
<div style="display: flex; justify-content: space-between; padding: 6px 0;"><span>Android 版本:</span><b>16 (API 36)</b></div>
|
||||
</div>
|
||||
|
||||
<div class="stream-card">
|
||||
<h4 style="margin-bottom: 10px; font-size: 14px;">构建信息</h4>
|
||||
<div style="display: flex; justify-content: space-between; padding: 6px 0;"><span>构建类型:</span><b style="color: #E11D48;">Debug</b></div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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;">v1.00.0000 · Android 16</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 Bento Station 居中磁贴卡片流</button>
|
||||
<button class="tab-btn" onclick="switchOpt(3, this)">方案 3:Cyber Precision 暗晶终端 HUD</button>
|
||||
<button class="tab-btn" onclick="switchOpt(4, this)">方案 4:Nordic Slate 极净工业卡片</button>
|
||||
<button class="tab-btn" onclick="switchOpt(5, this)">方案 5:Unified Card Stream 垂直卡片流</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_bento_station.html',
|
||||
3: 'option_3_cyber_telemetry_dock.html',
|
||||
4: 'option_4_nordic_slate_sheet.html',
|
||||
5: 'option_5_unified_card_stream.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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
@@ -37,7 +37,7 @@
|
||||
| 7 | `用户管理/` | `Screenshot_20260812_143424.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 8 | `设备数据库管理/` | `Screenshot_20260812_143432.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 9 | `数据上传/` | `Screenshot_20260812_143450.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 10 | `版本信息/` | `Screenshot_20260812_143456.png` | ❌ | 待办 · 有旧基准¹ |
|
||||
| 10 | `版本信息/` | `Screenshot_20260812_143456.png` | ✅ | **已完工**(6 件齐) |
|
||||
| 11 | `Logo授权管理/` | `Screenshot_20260812_143502.png` | ❌ | 待办 · 有旧基准¹ |
|
||||
|
||||
> ¹ **旧基准复用**:这 3 页(外加已完工的语言设置、版型切换)曾在 `系统设置界面-20260816/` 产出过 `baseline_ui.html` / `DESIGN_SPEC.md` / `implementation_plan.md`。接手时**必须先读旧物料再动手**,不要从零重写,避免与已交付的 Token 基准打架。
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# JIRA 任务卡:CARD-20260817-UITask-版本信息
|
||||
|
||||
- **任务 ID**: `CARD-20260817-UITask-版本信息`
|
||||
- **模块名称**: 设置 / 版本信息
|
||||
- **设计风格**: 方案 1 · Master-Detail Inset Station 经典双栏 (360px 1fr)
|
||||
- **状态**: `READY_FOR_RELEASE`
|
||||
- **创建时间**: 2026-08-17
|
||||
|
||||
---
|
||||
|
||||
## 1. 业务目标与需求
|
||||
|
||||
1. **统一色彩规范**:严格对齐项目主色调 `#2563EB`(Royal Blue)体系,版本号胶囊采用浅蓝微底与科技蓝边框。
|
||||
2. **黄金栅格比例**:采用 `360px : 1fr` 经典双栏比例,左侧为应用标头与 OTA 升级控制中心,右侧为设备与底层系统参数矩阵。
|
||||
3. **视觉层次优化**:
|
||||
- 顶部应用徽标重塑为高质感圆角几何渐变底座;
|
||||
- 构建类型 `Debug` 采用调和温和玫瑰红胶囊标签,避免刺眼红色;
|
||||
- 底部贯穿式全宽【下载更新】按钮集成高质感发光阴影;
|
||||
4. **版权信息呈现**:右侧底部优雅居中展示 `© 2026 UmiLab. All rights reserved.`。
|
||||
|
||||
---
|
||||
|
||||
## 2. 验收清单 (Acceptance Criteria)
|
||||
|
||||
- [x] AppBar 标题为 `← 版本信息`,带标准返回与更多功能操作。
|
||||
- [x] 左侧 360px 包含应用 Logo、EAP Manage Team、版本号 1.00.0000 胶囊、系统更新卡片与贯穿式【下载更新】按钮。
|
||||
- [x] 右侧 1fr 包含【设备信息】(硬件 ID、设备型号、Android 版本)与【构建信息】(构建类型 Debug、编译环境)。
|
||||
- [x] 底部居中包含官方版权声明。
|
||||
- [x] 无头渲染输出 1200x800 高清效果图 `image.png`。
|
||||
@@ -0,0 +1,47 @@
|
||||
# 版本信息 - 工业级 UI 重构设计规范 (Design Spec)
|
||||
|
||||
## 1. 架构与定位 (Architecture & Positioning)
|
||||
|
||||
本模块展示当前应用程序版本、OTA 固件升级包就绪状态、底层硬件 ID、设备硬件型号、Android 系统 API 级别以及编译构建类型(Debug / Release),同时承载版本一键升级下载与版权声明信息。
|
||||
|
||||
---
|
||||
|
||||
## 2. 设计规范与色彩系统 (Design Tokens & Color Palette)
|
||||
|
||||
严格对齐项目主色调 `#2563EB` 与调和语义色规范:
|
||||
|
||||
| Token 变量名 | 色值 / 规范 | 应用场景 |
|
||||
| :--- | :--- | :--- |
|
||||
| `--color-primary` | `#2563EB` (Royal Blue) | 主品牌色、版本号高亮、升级主按钮 |
|
||||
| `--color-primary-dark` | `#1D4ED8` | 主按钮悬停与渐变深色端 |
|
||||
| `--color-primary-light` | `#EFF6FF` | 版本号胶囊浅底、OTA 更新卡片浅底 |
|
||||
| `--color-primary-border` | `#DBEAFE` | 版本号胶囊边框、更新卡片边框 |
|
||||
| `--color-primary-gradient` | `linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%)` | 下载更新贯穿式按钮渐变背景 |
|
||||
| `--color-danger` | `#E11D48` (Rose) | Debug 构建类型警告色 |
|
||||
| `--color-danger-bg` | `#FFF1F2` | Debug 标签浅底 |
|
||||
| `--color-danger-border` | `#FFE4E6` | Debug 标签浅边框 |
|
||||
|
||||
---
|
||||
|
||||
## 3. 布局与比例规范 (Layout & Ratio)
|
||||
|
||||
采用与系统设置全局家族化对齐的 **360px : 1fr** 经典双栏比例:
|
||||
- **左侧 360px 应用标头与 OTA 升级控制中心**:
|
||||
- 应用 Logo 徽标与 `EAP Manage Team` 名称;
|
||||
- `版本号 1.00.0000` 调和科技蓝微底胶囊;
|
||||
- `系统更新` OTA 卡片(提示 `有新版本可用: 1.00.0001`);
|
||||
- 底部贯穿式全宽 `下载更新 (1.00.0001)` 渐变主按钮。
|
||||
- **右侧 1fr 设备与底层参数矩阵**:
|
||||
- `📱 设备信息` 卡片:硬件 ID、设备型号 (`TB375FC`)、Android 版本 (`16 (API 36)`);
|
||||
- `🛠️ 构建信息` 卡片:构建类型 (`Debug` 调和红胶囊)、编译环境;
|
||||
- 底部居中版权信息 `© 2026 UmiLab. All rights reserved.`。
|
||||
|
||||
---
|
||||
|
||||
## 4. 交付文件清单 (Deliverables)
|
||||
|
||||
1. `baseline_ui.html`:生产级无头渲染 HTML 源代码。
|
||||
2. `image.png`:1200x800 高清定稿预览效果截图。
|
||||
3. `DESIGN_SPEC.md`:本设计规范。
|
||||
4. `implementation_plan.md`:原生与前端工程实施方案。
|
||||
5. `CARD-20260817-UITask-版本信息.md`:JIRA 重构研发任务卡。
|
||||
@@ -0,0 +1,262 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>版本信息 - Master-Detail Inset Station (360px 1fr)</title>
|
||||
<style>
|
||||
/* =========================================================================
|
||||
全局统一色彩与 Design Tokens (严格对齐 #2563EB 体系)
|
||||
========================================================================= */
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
--border-card: #E2E8F0;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-success-border: #A7F3D0;
|
||||
|
||||
--color-warning: #D97706;
|
||||
--color-warning-bg: #FFFBEB;
|
||||
--color-warning-border: #FDE68A;
|
||||
|
||||
--color-danger: #E11D48;
|
||||
--color-danger-bg: #FFF1F2;
|
||||
--color-danger-border: #FFE4E6;
|
||||
|
||||
--corner-card: 16px;
|
||||
--corner-item: 10px;
|
||||
--content-max-width: 1160px;
|
||||
--content-gutter: clamp(16px, 2.5vw, 32px);
|
||||
--appbar-height: 60px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
/* 1. AppBar */
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none; transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover, .appbar-more:hover { background: rgba(15, 23, 42, 0.06); transform: scale(0.96); }
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
/* 2. 经典 360px 1fr 双栏布局 */
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-height: calc(100vh - 120px);
|
||||
}
|
||||
|
||||
/* 左侧 360px Hero 与 OTA 更新大盘 */
|
||||
.left-version-hero {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.hero-header-box {
|
||||
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||
padding-bottom: 20px; border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.app-logo-box {
|
||||
width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
|
||||
display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(238, 82, 83, 0.25);
|
||||
}
|
||||
.app-logo-box svg { width: 38px; height: 38px; fill: white; }
|
||||
.app-title-name { font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.01em; }
|
||||
.app-version-badge {
|
||||
font-size: 13px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light);
|
||||
border: 1px solid var(--color-primary-border); padding: 4px 12px; border-radius: 20px;
|
||||
font-family: ui-monospace, monospace;
|
||||
}
|
||||
|
||||
/* OTA 系统更新卡片 */
|
||||
.ota-update-card {
|
||||
background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 12px;
|
||||
padding: 16px; display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.ota-card-title {
|
||||
font-size: 13px; font-weight: 700; color: var(--color-on-primary-container); display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.ota-new-version {
|
||||
display: flex; align-items: baseline; justify-content: space-between;
|
||||
}
|
||||
.ota-version-code { font-size: 16px; font-weight: 800; color: var(--color-primary); font-family: ui-monospace, monospace; }
|
||||
|
||||
/* 底部贯穿式升级按钮 */
|
||||
.btn-dynamic-full {
|
||||
width: 100%; height: 46px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||
border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: var(--color-primary-gradient); color: white;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
.btn-primary-gradient:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--color-primary-glow); }
|
||||
|
||||
/* 右侧 1fr 设备与底层系统信息矩阵 */
|
||||
.right-details-panel {
|
||||
display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
|
||||
.info-card-block {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px 24px;
|
||||
display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
.card-section-header {
|
||||
font-size: 15px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px;
|
||||
padding-bottom: 10px; border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
|
||||
.kv-table { display: flex; flex-direction: column; gap: 12px; }
|
||||
.kv-row-item {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.kv-label { font-size: 13.5px; color: var(--text-sub); font-weight: 500; }
|
||||
.kv-value { font-size: 14px; font-weight: 700; color: var(--text-main); font-family: ui-monospace, monospace; }
|
||||
|
||||
/* 状态标签 */
|
||||
.tag-badge {
|
||||
padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center;
|
||||
}
|
||||
.tag-debug {
|
||||
background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger-border);
|
||||
}
|
||||
|
||||
/* 版权页脚 */
|
||||
.footer-copyright {
|
||||
text-align: center; font-size: 12px; color: var(--text-dim); margin-top: auto; padding-top: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button 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></button>
|
||||
<h1 class="appbar-title">版本信息</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="split-body">
|
||||
<!-- 左侧 360px 应用标头与 OTA 升级控制中心 -->
|
||||
<div class="left-version-hero">
|
||||
<div style="display: flex; flex-direction: column; gap: 18px;">
|
||||
<div class="hero-header-box">
|
||||
<div class="app-logo-box">
|
||||
<svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>
|
||||
</div>
|
||||
<div class="app-title-name">EAP Manage Team</div>
|
||||
<div class="app-version-badge">版本号 1.00.0000</div>
|
||||
</div>
|
||||
|
||||
<!-- 系统更新卡片 -->
|
||||
<div class="ota-update-card">
|
||||
<div class="ota-card-title">
|
||||
<span>系统更新</span>
|
||||
<span style="font-size: 11px; background: #DBEAFE; color: var(--color-primary); padding: 2px 6px; border-radius: 4px;">OTA 就绪</span>
|
||||
</div>
|
||||
<div class="ota-new-version">
|
||||
<span style="font-size: 12.5px; color: var(--text-sub);">有新版本可用:</span>
|
||||
<span class="ota-version-code">1.00.0001</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 底部贯穿式下载更新按钮 -->
|
||||
<div>
|
||||
<button class="btn-dynamic-full btn-primary-gradient" onclick="handleDownloadUpdate()">
|
||||
<svg style="width: 17px; height: 17px; fill: currentColor;" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"/></svg>
|
||||
<span>下载更新 (1.00.0001)</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右侧 1fr 设备信息与构建信息卡片矩阵 -->
|
||||
<div class="right-details-panel">
|
||||
<!-- 卡 1:设备信息 -->
|
||||
<div class="info-card-block">
|
||||
<div class="card-section-header">
|
||||
<span>📱 设备信息</span>
|
||||
</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">硬件 ID</span>
|
||||
<span class="kv-value">15EA5B1C22D14D97</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">设备型号</span>
|
||||
<span class="kv-value">TB375FC</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">Android 版本</span>
|
||||
<span class="kv-value">16 (API 36)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 卡 2:构建信息 -->
|
||||
<div class="info-card-block">
|
||||
<div class="card-section-header">
|
||||
<span>🛠️ 构建信息</span>
|
||||
</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">构建类型</span>
|
||||
<span class="tag-badge tag-debug">Debug</span>
|
||||
</div>
|
||||
<div class="kv-row-item">
|
||||
<span class="kv-label">编译环境</span>
|
||||
<span class="kv-value" style="font-size: 13px;">UmiLab CI/CD Pipeline</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-copyright">
|
||||
© 2026 UmiLab. All rights reserved.
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function handleDownloadUpdate() {
|
||||
alert('开始下载固件包 v1.00.0001 (共 38.4 MB)...');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
@@ -0,0 +1,45 @@
|
||||
# 版本信息 - 工程实施方案 (Implementation Plan)
|
||||
|
||||
## 1. 数据模型与接口规范 (Data Model & Schema)
|
||||
|
||||
```typescript
|
||||
export interface AppVersionInfo {
|
||||
appName: string; // 应用名称 (如 "EAP Manage Team")
|
||||
currentVersionName: string; // 当前版本名 (如 "1.00.0000")
|
||||
currentVersionCode: number; // 当前版本号 (如 1000000)
|
||||
hardwareId: string; // 硬件 ID
|
||||
deviceModel: string; // 设备型号 (如 "TB375FC")
|
||||
androidVersion: string; // Android 系统版本 (如 "16 (API 36)")
|
||||
buildType: 'Debug' | 'Release'; // 构建类型
|
||||
upgradePackage?: {
|
||||
hasNewVersion: boolean; // 是否有新版本
|
||||
latestVersionName: string; // 最新版本 (如 "1.00.0001")
|
||||
packageSizeMb: number; // 升级包大小
|
||||
downloadUrl: string; // 下载地址
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. 状态机与更新流 (State Machine & Upgrade Flow)
|
||||
|
||||
```mermaid
|
||||
stateDiagram-v2
|
||||
[*] --> Idle: 载入当前系统版本
|
||||
Idle --> Checking: 点击检查更新 / 自动检测
|
||||
Checking --> Latest: 当前已是最新版本
|
||||
Checking --> UpdateAvailable: 检测到新版本 (1.00.0001)
|
||||
UpdateAvailable --> Downloading: 点击【下载更新】
|
||||
Downloading --> Installing: 下载完成验签通过
|
||||
Installing --> [*]: 重启应用并完成升级
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 原生实施映射 (Native Implementation Mapping)
|
||||
|
||||
- **Android (Kotlin / Jetpack Compose)**:
|
||||
- 读取 `BuildConfig.VERSION_NAME`、`BuildConfig.BUILD_TYPE` 与 `Build.MODEL`、`Build.VERSION.RELEASE`;
|
||||
- 硬件 ID 获取基于 `Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID)`;
|
||||
- 双栏使用 `Row { Box(modifier = Modifier.width(360.dp)) { VersionHeroPanel() }; Box(modifier = Modifier.weight(1f)) { DetailsPanel() } }`。
|
||||
Reference in New Issue
Block a user