fix(ui): 顶部栏Logo居中预览、移除预设选择器,并完善版本信息OTA下载进度条交互
1. Logo授权管理: - 顶部导航栏预览舱实现 Logo 图像与文本绝对居中对齐展示; - 移除快速预设体验模块,聚焦纯净的本地图片上传与拖拽交互; - 重新无头渲染 1200x800 高清效果图。 2. 版本信息: - 落地 OTA 固件下载进度条,精准内嵌于【系统更新】卡片内部; - 按钮支持 下载 -> 暂停/继续 -> 验证完成(立即安装重启) 四态动态联动。
This commit is contained in:
@@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>版本信息 - OTA 下载中进度条展示 (68%)</title>
|
||||
<style>
|
||||
: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;
|
||||
|
||||
--color-success: #059669;
|
||||
--color-success-bg: #ECFDF5;
|
||||
--color-warning: #D97706;
|
||||
--color-warning-bg: #FFFBEB;
|
||||
--color-danger: #E11D48;
|
||||
--color-danger-bg: #FFF1F2;
|
||||
--color-danger-border: #FFE4E6;
|
||||
|
||||
--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;
|
||||
}
|
||||
.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; }
|
||||
|
||||
.split-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 360px 1fr; gap: 20px;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.hero-header-box {
|
||||
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||
padding-bottom: 18px; 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); }
|
||||
.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-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: 12px;
|
||||
}
|
||||
.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-badge-status {
|
||||
font-size: 11px; background: #FFFBEB; color: #D97706; padding: 2px 8px; border-radius: 4px; font-weight: 700;
|
||||
}
|
||||
|
||||
/* 进度条 */
|
||||
.download-progress-block {
|
||||
display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--color-primary-border);
|
||||
}
|
||||
.progress-meta-row {
|
||||
display: flex; justify-content: space-between; align-items: center; font-size: 12px;
|
||||
}
|
||||
.progress-percent-val {
|
||||
font-family: ui-monospace, monospace; font-weight: 800; color: var(--color-primary); font-size: 13.5px;
|
||||
}
|
||||
.progress-track-bg {
|
||||
width: 100%; height: 8px; background: #DBEAFE; border-radius: 10px; overflow: hidden;
|
||||
}
|
||||
.progress-fill-bar {
|
||||
height: 100%; width: 68%; background: var(--color-primary-gradient); border-radius: 10px;
|
||||
}
|
||||
.progress-stats-row {
|
||||
display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); font-family: ui-monospace, monospace;
|
||||
}
|
||||
|
||||
.btn-downloading-ghost {
|
||||
width: 100%; height: 46px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||
background: #FFFFFF; color: var(--text-main); border: 1.5px solid #CBD5E1; display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
.kv-table { display: flex; flex-direction: column; gap: 12px; }
|
||||
.kv-row-item { display: flex; align-items: center; justify-content: space-between; }
|
||||
</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="split-body">
|
||||
<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 class="ota-badge-status">下载中</span>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: space-between; align-items: baseline;">
|
||||
<span style="font-size: 12.5px; color: var(--text-sub);">目标版本:</span>
|
||||
<span style="font-size: 16px; font-weight: 800; color: var(--color-primary); font-family: monospace;">1.00.0001</span>
|
||||
</div>
|
||||
|
||||
<!-- 下载进度条 -->
|
||||
<div class="download-progress-block">
|
||||
<div class="progress-meta-row">
|
||||
<span style="font-weight: 600; color: var(--text-main);">正在下载固件包...</span>
|
||||
<span class="progress-percent-val">68%</span>
|
||||
</div>
|
||||
<div class="progress-track-bg">
|
||||
<div class="progress-fill-bar"></div>
|
||||
</div>
|
||||
<div class="progress-stats-row">
|
||||
<span>26.1 MB / 38.4 MB</span>
|
||||
<span>2.8 MB/s · 剩余 4秒</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn-downloading-ghost">
|
||||
<span>⏸️ 暂停下载</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="right-details-panel">
|
||||
<div class="info-card-block">
|
||||
<div style="font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--divider);">📱 设备信息</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item"><span style="color: var(--text-sub);">硬件 ID</span><b style="font-family: monospace;">15EA5B1C22D14D97</b></div>
|
||||
<div class="kv-row-item"><span style="color: var(--text-sub);">设备型号</span><b>TB375FC</b></div>
|
||||
<div class="kv-row-item"><span style="color: var(--text-sub);">Android 版本</span><b>16 (API 36)</b></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-card-block">
|
||||
<div style="font-size: 15px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--divider);">🛠️ 构建信息</div>
|
||||
<div class="kv-table">
|
||||
<div class="kv-row-item"><span style="color: var(--text-sub);">构建类型</span><span style="background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger-border); padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 12px;">Debug</span></div>
|
||||
<div class="kv-row-item"><span style="color: var(--text-sub);">编译环境</span><span style="font-family: monospace; font-size: 13px;">UmiLab CI/CD Pipeline</span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center; font-size: 12px; color: var(--text-dim); margin-top: auto;">© 2026 UmiLab. All rights reserved.</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user