Compare commits
6 Commits
f62406ac40
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ed6b0f3f14 | |||
| a6fe6878a9 | |||
| a69c427ae4 | |||
| a64f6c83b2 | |||
| 54b89fb13d | |||
| a854b75fb5 |
|
After Width: | Height: | Size: 80 KiB |
@@ -0,0 +1,220 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1A (子视图 · 未连接/待机态)</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;
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 720px; 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); flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.appbar-left { display: flex; align-items: center; }
|
||||||
|
.appbar-nav, .appbar-more {
|
||||||
|
width: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
.tri-body {
|
||||||
|
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||||
|
display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
|
||||||
|
|
||||||
|
.left-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
|
||||||
|
.device-status-box {
|
||||||
|
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||||
|
padding: 8px 0 16px; border-bottom: 1px solid var(--divider); min-height: 190px; justify-content: center;
|
||||||
|
}
|
||||||
|
.fr100-disconnected-img {
|
||||||
|
width: 140px; height: 70px; display: flex; align-items: center; justify-content: center; opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-meta-list { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||||
|
.meta-item { display: flex; justify-content: space-between; align-items: center; }
|
||||||
|
.meta-label { color: var(--text-sub); }
|
||||||
|
.meta-val { font-weight: 700; color: var(--text-dim); }
|
||||||
|
|
||||||
|
.device-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
|
||||||
|
.btn-mini {
|
||||||
|
height: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent;
|
||||||
|
}
|
||||||
|
.btn-primary-blue { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
|
||||||
|
.btn-disabled { background: #F1F5F9; color: var(--text-dim); border-color: #E2E8F0; cursor: not-allowed; }
|
||||||
|
|
||||||
|
.scan-list-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 16px;
|
||||||
|
display: flex; flex-direction: column; gap: 10px; flex: 1;
|
||||||
|
}
|
||||||
|
.scan-item {
|
||||||
|
height: 44px; padding: 0 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--divider);
|
||||||
|
display: flex; align-items: center; justify-content: space-between; cursor: pointer;
|
||||||
|
}
|
||||||
|
.scan-item.highlight { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||||
|
.scan-name { font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
/* 中栏 (未连接待机) */
|
||||||
|
.center-timer-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
.countdown-hero-dim {
|
||||||
|
font-size: clamp(54px, 6.5vw, 80px); font-weight: 900; font-family: monospace; color: var(--text-dim); margin: 12px 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 右栏 (未连接待机) */
|
||||||
|
.right-config-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
.btn-disabled-full {
|
||||||
|
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700;
|
||||||
|
background: #F1F5F9; color: var(--text-dim); border: 1px solid #E2E8F0; cursor: not-allowed;
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
}
|
||||||
|
</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="tri-body">
|
||||||
|
<!-- 左栏:未连接状态与周边列表 -->
|
||||||
|
<div class="left-stack">
|
||||||
|
<div class="panel-card" style="padding: 18px;">
|
||||||
|
<div class="device-status-box">
|
||||||
|
<!-- 未连接专属矢量线框图 (区别于已连接的官方 3D 渲染图) -->
|
||||||
|
<div class="fr100-disconnected-img">
|
||||||
|
<svg width="140" height="60" viewBox="0 0 140 60">
|
||||||
|
<ellipse cx="22" cy="30" rx="12" ry="20" fill="#F1F5F9" stroke="#94A3B8" stroke-width="2"/>
|
||||||
|
<rect x="22" y="10" width="96" height="40" rx="4" fill="#F8FAFC" stroke="#CBD5E1" stroke-width="2"/>
|
||||||
|
<ellipse cx="118" cy="30" rx="12" ry="20" fill="#E2E8F0" stroke="#94A3B8" stroke-width="2"/>
|
||||||
|
<line x1="38" y1="10" x2="38" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||||
|
<line x1="56" y1="10" x2="56" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||||
|
<line x1="74" y1="10" x2="74" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||||
|
<line x1="92" y1="10" x2="92" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||||
|
<circle cx="70" cy="30" r="8" fill="#94A3B8"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-meta-list">
|
||||||
|
<div class="meta-item"><span class="meta-label">ID:</span><span class="meta-val">--</span></div>
|
||||||
|
<div class="meta-item"><span class="meta-label">版本:</span><span class="meta-val">--</span></div>
|
||||||
|
<div class="meta-item"><span class="meta-label">电量:</span><span class="meta-val">未连接</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-btn-group">
|
||||||
|
<button class="btn-mini btn-primary-blue">
|
||||||
|
<svg style="width: 14px; height: 14px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
|
||||||
|
<span>刷新设备</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-mini btn-disabled">
|
||||||
|
<span>断开连接</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="scan-list-card">
|
||||||
|
<div style="font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; justify-content: space-between;">
|
||||||
|
<span>📡 周边设备列表</span>
|
||||||
|
<span style="font-size: 11px; color: var(--color-primary);">点击直连</span>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item highlight">
|
||||||
|
<span class="scan-name" style="color: var(--color-primary);">FR100-12EC</span>
|
||||||
|
<span style="font-size: 12px; color: var(--color-primary); font-weight: 700;">点击连接 ➔</span>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item">
|
||||||
|
<span class="scan-name">FR100-1776</span>
|
||||||
|
<span style="font-size: 12px; color: var(--text-sub);">信号弱</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 中栏:开始 (未连接待机态) -->
|
||||||
|
<div class="center-timer-panel">
|
||||||
|
<div style="width: 100%; text-align: left;">
|
||||||
|
<h2 class="panel-header-title">开始</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="countdown-hero-dim">00:00</div>
|
||||||
|
<div style="font-size: 13px; color: var(--text-dim); margin-top: 4px;">请先在左侧连接泡沫轴硬件设备</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;">
|
||||||
|
<button class="btn-disabled-full">开始</button>
|
||||||
|
<button class="btn-disabled-full">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右栏:设备信息 (未连接待机态) -->
|
||||||
|
<div class="right-config-panel">
|
||||||
|
<div>
|
||||||
|
<h2 class="panel-header-title">设备信息</h2>
|
||||||
|
<div style="margin-top: 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6;">
|
||||||
|
暂无连接设备,请点击左侧列表中的「FR100-12EC」建立蓝牙配对后配置训练参数。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="btn-disabled-full">保存</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,506 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1:三栏专业工控工作台 (推荐·家族风)</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;
|
||||||
|
--color-danger-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
|
||||||
|
|
||||||
|
--corner-card: 16px;
|
||||||
|
--corner-item: 10px;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 720px; 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: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
/* 2. 核心三栏工控布局 (3-Column Workbench) */
|
||||||
|
.tri-body {
|
||||||
|
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||||
|
display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 通用工控卡片 */
|
||||||
|
.panel-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03); position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header-title {
|
||||||
|
font-size: 16px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
左栏:设备状态与蓝牙扫描
|
||||||
|
========================================================================= */
|
||||||
|
.left-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
|
||||||
|
/* 已连接状态卡 */
|
||||||
|
.device-status-box {
|
||||||
|
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||||
|
padding: 10px 0 16px; border-bottom: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
.roller-graphic {
|
||||||
|
width: 140px; height: 52px; display: flex; align-items: center; justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-meta-list { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||||
|
.meta-item { display: flex; justify-content: space-between; align-items: center; }
|
||||||
|
.meta-label { color: var(--text-sub); }
|
||||||
|
.meta-val { font-weight: 700; color: var(--text-main); font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
.battery-pill {
|
||||||
|
background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border);
|
||||||
|
padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 左侧操作按钮组 */
|
||||||
|
.device-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
|
||||||
|
.btn-mini {
|
||||||
|
height: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s ease; border: 1.5px solid transparent;
|
||||||
|
}
|
||||||
|
.btn-ghost-neutral { background: #F1F5F9; color: var(--text-main); border-color: #CBD5E1; }
|
||||||
|
.btn-ghost-neutral:hover { background: #E2E8F0; }
|
||||||
|
.btn-primary-blue { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
|
||||||
|
.btn-primary-blue:hover { transform: translateY(-1px); }
|
||||||
|
.btn-danger-outline { background: white; color: var(--color-danger); border-color: #FECDD3; }
|
||||||
|
.btn-danger-outline:hover { background: var(--color-danger-bg); }
|
||||||
|
|
||||||
|
/* 扫描设备列表卡 */
|
||||||
|
.scan-list-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 16px;
|
||||||
|
display: flex; flex-direction: column; gap: 10px; flex: 1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.scan-item {
|
||||||
|
height: 44px; padding: 0 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--divider);
|
||||||
|
display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.scan-item:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||||
|
.scan-name { font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace; }
|
||||||
|
.rssi-bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
|
||||||
|
.rssi-bar { width: 3px; background: #94A3B8; border-radius: 1px; }
|
||||||
|
.rssi-bar.active { background: var(--color-primary); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
中栏:倒计时训练控制中心
|
||||||
|
========================================================================= */
|
||||||
|
.center-timer-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.countdown-hero {
|
||||||
|
font-size: clamp(52px, 6vw, 76px); font-weight: 900; font-family: "SF Pro Display", ui-monospace, monospace;
|
||||||
|
color: var(--text-main); letter-spacing: -0.03em; margin: 16px 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 时间滚轮容器 */
|
||||||
|
.wheel-picker-box {
|
||||||
|
width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px 0; position: relative;
|
||||||
|
}
|
||||||
|
.wheel-item {
|
||||||
|
height: 38px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
|
||||||
|
color: var(--text-dim); transition: all 0.2s ease; cursor: pointer; border-radius: 8px;
|
||||||
|
}
|
||||||
|
.wheel-item.selected {
|
||||||
|
font-size: 18px; font-weight: 800; color: var(--color-primary); background: var(--color-primary-light);
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 中栏底部控制条 */
|
||||||
|
.timer-actions-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
|
||||||
|
.btn-ctrl {
|
||||||
|
height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; border: none; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-start { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 12px var(--color-primary-glow); }
|
||||||
|
.btn-start:hover { transform: translateY(-1px); }
|
||||||
|
.btn-pause { background: var(--color-danger-gradient); color: white; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }
|
||||||
|
.btn-pause:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
右栏:设备模式与多维参数矩阵
|
||||||
|
========================================================================= */
|
||||||
|
.right-config-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自动 / 手动分段胶囊 */
|
||||||
|
.mode-segmented-capsule {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F1F5F9; border-radius: 10px; padding: 4px;
|
||||||
|
}
|
||||||
|
.mode-cap-btn {
|
||||||
|
height: 36px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; color: var(--text-sub); background: transparent;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-blue {
|
||||||
|
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-red {
|
||||||
|
background: white; color: var(--color-danger); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 双列滚轮选择矩阵 (动作模式 + 肌群) */
|
||||||
|
.dual-wheel-matrix {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;
|
||||||
|
}
|
||||||
|
.wheel-col {
|
||||||
|
background: #F8FAFC; border: 1px solid var(--divider); border-radius: 10px; padding: 8px 4px;
|
||||||
|
display: flex; flex-direction: column; gap: 2px;
|
||||||
|
}
|
||||||
|
.col-header { font-size: 12px; font-weight: 700; color: var(--text-sub); text-align: center; margin-bottom: 4px; }
|
||||||
|
.matrix-item {
|
||||||
|
height: 32px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center;
|
||||||
|
justify-content: center; border-radius: 6px; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.matrix-item.selected {
|
||||||
|
background: var(--color-primary-light); color: var(--color-primary); font-weight: 800;
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 力量档位选择条 */
|
||||||
|
.strength-section {
|
||||||
|
display: flex; flex-direction: column; gap: 6px;
|
||||||
|
}
|
||||||
|
.strength-grid {
|
||||||
|
display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
|
||||||
|
}
|
||||||
|
.strength-btn {
|
||||||
|
height: 36px; border-radius: 8px; border: 1px solid var(--divider); background: #F8FAFC;
|
||||||
|
font-size: 13px; font-weight: 700; color: var(--text-sub); cursor: pointer; display: flex; align-items: center;
|
||||||
|
justify-content: center; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.strength-btn.active {
|
||||||
|
background: var(--color-primary); color: white; border-color: var(--color-primary);
|
||||||
|
box-shadow: 0 2px 8px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 保存按钮 */
|
||||||
|
.btn-save-full {
|
||||||
|
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||||
|
background: var(--color-primary-gradient); color: white; border: none; box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-save-full:hover { transform: translateY(-1px); }
|
||||||
|
</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="tri-body">
|
||||||
|
<!-- ================= 左栏:设备连接与蓝牙扫描 ================= -->
|
||||||
|
<div class="left-stack">
|
||||||
|
<div class="panel-card" style="padding: 18px;">
|
||||||
|
<div class="device-status-box">
|
||||||
|
<!-- 泡沫轴硬件插画 (高质感 SVG) -->
|
||||||
|
<div class="roller-graphic">
|
||||||
|
<svg width="140" height="48" viewBox="0 0 140 48">
|
||||||
|
<ellipse cx="20" cy="24" rx="12" ry="20" fill="#0D9488" stroke="#115E59" stroke-width="2"/>
|
||||||
|
<rect x="20" y="4" width="100" height="40" rx="4" fill="#14B8A6"/>
|
||||||
|
<ellipse cx="120" cy="24" rx="12" ry="20" fill="#2DD4BF" stroke="#0D9488" stroke-width="2"/>
|
||||||
|
<!-- 滚轴纹理筋条 -->
|
||||||
|
<line x1="38" y1="4" x2="38" y2="44" stroke="#0F766E" stroke-width="2.5"/>
|
||||||
|
<line x1="56" y1="4" x2="56" y2="44" stroke="#0F766E" stroke-width="2.5"/>
|
||||||
|
<line x1="74" y1="4" x2="74" y2="44" stroke="#0F766E" stroke-width="2.5"/>
|
||||||
|
<line x1="92" y1="4" x2="92" y2="44" stroke="#0F766E" stroke-width="2.5"/>
|
||||||
|
<line x1="106" y1="4" x2="106" y2="44" stroke="#0F766E" stroke-width="2.5"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-meta-list">
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">ID:</span>
|
||||||
|
<span class="meta-val" id="dispId">12EC</span>
|
||||||
|
</div>
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">版本:</span>
|
||||||
|
<span class="meta-val" id="dispVer">V1.2.8</span>
|
||||||
|
</div>
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">电量:</span>
|
||||||
|
<span class="battery-pill" id="dispBat">
|
||||||
|
<svg style="width: 12px; height: 12px; fill: currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg>
|
||||||
|
<span>100%</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-btn-group">
|
||||||
|
<button class="btn-mini btn-ghost-neutral" onclick="handleScanRefresh()">
|
||||||
|
<svg style="width: 14px; height: 14px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
|
||||||
|
<span>刷新设备</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-mini btn-danger-outline" id="btnDisconnect" onclick="handleToggleConnect()">
|
||||||
|
<span>断开连接</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 蓝牙扫描发现列表 -->
|
||||||
|
<div class="scan-list-card">
|
||||||
|
<div style="font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; justify-content: space-between;">
|
||||||
|
<span>📡 周边设备列表</span>
|
||||||
|
<span style="font-size: 11px; color: var(--color-primary);">自动扫描中</span>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item" onclick="connectDevice('FR100-12EC')">
|
||||||
|
<span class="scan-name">FR100-12EC</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item" onclick="connectDevice('FR100-1776')">
|
||||||
|
<span class="scan-name">FR100-1776</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 中栏:倒计时训练控制中心 ================= -->
|
||||||
|
<div class="center-timer-panel">
|
||||||
|
<div style="width: 100%; text-align: left;">
|
||||||
|
<h2 class="panel-header-title">
|
||||||
|
<span>⏱️ 训练计时</span>
|
||||||
|
<span style="font-size: 12px; background: #DBEAFE; color: var(--color-primary); padding: 2px 8px; border-radius: 4px;">工作态</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: center; width: 100%;">
|
||||||
|
<div class="countdown-hero" id="dispTimer">02:58</div>
|
||||||
|
|
||||||
|
<div class="wheel-picker-box">
|
||||||
|
<div class="wheel-item" onclick="selectDuration('1:00分')">1 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDuration('2:00分')">2 : 00 分</div>
|
||||||
|
<div class="wheel-item selected" id="opt3m" onclick="selectDuration('3:00分')">3 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDuration('4:00分')">4 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDuration('5:00分')">5 : 00 分</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="timer-actions-row">
|
||||||
|
<button class="btn-ctrl btn-start" id="btnStartTimer" onclick="handleStartTimer()">
|
||||||
|
<svg style="width: 18px; height: 18px; fill: currentColor;" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>
|
||||||
|
<span>开始</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-ctrl btn-pause" id="btnPauseTimer" onclick="handlePauseTimer()">
|
||||||
|
<svg style="width: 18px; height: 18px; fill: currentColor;" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>
|
||||||
|
<span>暂停</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 右栏:设备模式与参数配置工作台 ================= -->
|
||||||
|
<div class="right-config-panel">
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 14px;">
|
||||||
|
<h2 class="panel-header-title">
|
||||||
|
<span>⚙️ 设备信息与模式</span>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<!-- 模式切换 -->
|
||||||
|
<div class="mode-segmented-capsule">
|
||||||
|
<button class="mode-cap-btn active-blue" id="btnModeAuto" onclick="switchWorkMode('auto')">自动模式</button>
|
||||||
|
<button class="mode-cap-btn" id="btnModeManual" onclick="switchWorkMode('manual')">手动模式</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 双列滚轮选择矩阵 (动作模式 + 肌群) -->
|
||||||
|
<div class="dual-wheel-matrix">
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">动作模式</div>
|
||||||
|
<div class="matrix-item" onclick="selectAction(this)">徒步</div>
|
||||||
|
<div class="matrix-item" onclick="selectAction(this)">骑行</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectAction(this)">游泳</div>
|
||||||
|
<div class="matrix-item" onclick="selectAction(this)">瑜伽</div>
|
||||||
|
<div class="matrix-item" onclick="selectAction(this)">拳击</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">肌群选择</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscle(this)">大腿</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscle(this)">背阔肌</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectMuscle(this)">前臂</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscle(this)">背部</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscle(this)">足部</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 力量档位 -->
|
||||||
|
<div class="strength-section">
|
||||||
|
<div style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">力量档位调节</div>
|
||||||
|
<div class="strength-grid">
|
||||||
|
<button class="strength-btn" onclick="selectStrength(1, this)">力量 1</button>
|
||||||
|
<button class="strength-btn" onclick="selectStrength(2, this)">力量 2</button>
|
||||||
|
<button class="strength-btn" onclick="selectStrength(3, this)">力量 3</button>
|
||||||
|
<button class="strength-btn active" onclick="selectStrength(4, this)">力量 4</button>
|
||||||
|
<button class="strength-btn" onclick="selectStrength(5, this)">力量 5</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button class="btn-save-full" onclick="handleSaveConfig()">
|
||||||
|
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></svg>
|
||||||
|
<span>保存配置</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let isConnected = true;
|
||||||
|
let timerRunning = false;
|
||||||
|
let secondsLeft = 178; // 02:58
|
||||||
|
|
||||||
|
function handleStartTimer() {
|
||||||
|
timerRunning = true;
|
||||||
|
alert('已启动泡沫轴训练倒计时!');
|
||||||
|
}
|
||||||
|
|
||||||
|
function handlePauseTimer() {
|
||||||
|
timerRunning = false;
|
||||||
|
alert('已暂停泡沫轴训练!');
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectDuration(dur) {
|
||||||
|
document.querySelectorAll('.wheel-item').forEach(el => el.classList.remove('selected'));
|
||||||
|
event.target.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function switchWorkMode(mode) {
|
||||||
|
const btnA = document.getElementById('btnModeAuto');
|
||||||
|
const btnM = document.getElementById('btnModeManual');
|
||||||
|
if (mode === 'auto') {
|
||||||
|
btnA.className = 'mode-cap-btn active-blue';
|
||||||
|
btnM.className = 'mode-cap-btn';
|
||||||
|
} else {
|
||||||
|
btnA.className = 'mode-cap-btn';
|
||||||
|
btnM.className = 'mode-cap-btn active-red';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectAction(el) {
|
||||||
|
el.parentElement.querySelectorAll('.matrix-item').forEach(item => item.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectMuscle(el) {
|
||||||
|
el.parentElement.querySelectorAll('.matrix-item').forEach(item => item.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectStrength(level, btn) {
|
||||||
|
document.querySelectorAll('.strength-btn').forEach(b => b.classList.remove('active'));
|
||||||
|
btn.classList.add('active');
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleSaveConfig() {
|
||||||
|
alert('已保存当前泡沫轴训练与力量参数配置!');
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleToggleConnect() {
|
||||||
|
isConnected = !isConnected;
|
||||||
|
if (!isConnected) {
|
||||||
|
document.getElementById('dispId').innerText = '--';
|
||||||
|
document.getElementById('dispVer').innerText = '--';
|
||||||
|
document.getElementById('dispBat').innerHTML = '<span style="color:var(--text-dim)">未连接</span>';
|
||||||
|
document.getElementById('btnDisconnect').innerText = '连接设备';
|
||||||
|
document.getElementById('btnDisconnect').className = 'btn-mini btn-primary-blue';
|
||||||
|
document.getElementById('dispTimer').innerText = '00:00';
|
||||||
|
} else {
|
||||||
|
document.getElementById('dispId').innerText = '12EC';
|
||||||
|
document.getElementById('dispVer').innerText = 'V1.2.8';
|
||||||
|
document.getElementById('dispBat').innerHTML = '<svg style="width:12px;height:12px;fill:currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg> <span>100%</span>';
|
||||||
|
document.getElementById('btnDisconnect').innerText = '断开连接';
|
||||||
|
document.getElementById('btnDisconnect').className = 'btn-mini btn-danger-outline';
|
||||||
|
document.getElementById('dispTimer').innerText = '02:58';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function connectDevice(devName) {
|
||||||
|
alert(`正在连接泡沫轴设备: ${devName}...`);
|
||||||
|
if (!isConnected) handleToggleConnect();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
<!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: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
|
||||||
|
border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||||
|
}
|
||||||
|
.bento-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 320px 1fr 1fr; gap: 16px; flex: 1; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.b-card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px;" 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 style="font-size: 18px; font-weight: 700;">泡沫轴</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="bento-grid">
|
||||||
|
<div class="b-card">
|
||||||
|
<h3 style="font-size: 15px;">设备状态 (12EC)</h3>
|
||||||
|
<div style="font-size: 13px; color: var(--text-sub);">电量 100% · 版本 V1.2.8</div>
|
||||||
|
<div style="display: flex; gap: 8px; margin-top: auto;">
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid var(--divider); background: #F1F5F9; border-radius: 6px; font-weight: 700;">刷新设备</button>
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid #FECDD3; background: white; color: #E11D48; border-radius: 6px; font-weight: 700;">断开连接</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="b-card" style="align-items: center; text-align: center; justify-content: space-between;">
|
||||||
|
<h3 style="font-size: 15px; align-self: flex-start;">倒计时训练</h3>
|
||||||
|
<div style="font-size: 64px; font-weight: 900; font-family: monospace;">02:58</div>
|
||||||
|
<div style="display: flex; gap: 10px; width: 100%;">
|
||||||
|
<button style="flex: 1; height: 42px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;">开始</button>
|
||||||
|
<button style="flex: 1; height: 42px; background: #E11D48; color: white; border: none; border-radius: 8px; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="b-card" style="justify-content: space-between;">
|
||||||
|
<h3 style="font-size: 15px;">动作与肌群</h3>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 8px; font-size: 13.5px;">
|
||||||
|
<div>动作:<b>游泳</b></div>
|
||||||
|
<div>肌群:<b>前臂</b></div>
|
||||||
|
<div>力量:<b>4 档</b></div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 42px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;">保存参数</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
<!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 HUD 极客暗黑中枢</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--primary: #38BDF8;
|
||||||
|
--bg: #090D16;
|
||||||
|
--card: #111827;
|
||||||
|
--border: #1F2937;
|
||||||
|
--text: #F9FAFB;
|
||||||
|
--sub: #9CA3AF;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||||
|
background: #030712; color: var(--text); min-height: 100vh; padding: 20px;
|
||||||
|
}
|
||||||
|
.device-wrapper {
|
||||||
|
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--bg);
|
||||||
|
border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
|
||||||
|
border-bottom: 1px solid var(--border); background: var(--bg);
|
||||||
|
}
|
||||||
|
.hud-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 16px; flex: 1;
|
||||||
|
}
|
||||||
|
.hud-card {
|
||||||
|
background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px; fill: white;" 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 style="font-size: 18px; font-weight: 700; color: var(--primary);">⚡ 泡沫轴 HUD</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="hud-grid">
|
||||||
|
<div class="hud-card">
|
||||||
|
<h3 style="font-size: 15px; color: var(--primary);">设备遥测 (12EC)</h3>
|
||||||
|
<div style="font-size: 13px; color: var(--sub);">固件 V1.2.8 · 电量 100%</div>
|
||||||
|
<div style="display: flex; gap: 8px;">
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid var(--border); background: #1F2937; color: white; border-radius: 6px; font-weight: 700;">刷新</button>
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid #7F1D1D; background: #991B1B; color: white; border-radius: 6px; font-weight: 700;">断开</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hud-card" style="align-items: center; text-align: center;">
|
||||||
|
<h3 style="font-size: 15px; align-self: flex-start; color: var(--primary);">倒计时</h3>
|
||||||
|
<div style="font-size: 64px; font-weight: 900; font-family: monospace; color: var(--primary);">02:58</div>
|
||||||
|
<div style="display: flex; gap: 10px; width: 100%;">
|
||||||
|
<button style="flex: 1; height: 42px; background: #0284C7; color: white; border: none; border-radius: 8px; font-weight: 700;">开始</button>
|
||||||
|
<button style="flex: 1; height: 42px; background: #DC2626; color: white; border: none; border-radius: 8px; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hud-card">
|
||||||
|
<h3 style="font-size: 15px; color: var(--primary);">参数矩阵</h3>
|
||||||
|
<div style="font-size: 13.5px; color: var(--sub);">游泳 · 前臂 · 力量 4</div>
|
||||||
|
<button style="height: 42px; background: #0284C7; color: white; border: none; border-radius: 8px; font-weight: 700;">保存参数</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
<!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 {
|
||||||
|
--primary: #0F172A;
|
||||||
|
--bg: #F8FAFC;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--border: #E2E8F0;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||||
|
background: #F1F5F9; color: #0F172A; min-height: 100vh; padding: 20px;
|
||||||
|
}
|
||||||
|
.device-wrapper {
|
||||||
|
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||||
|
border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
.slate-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 16px; flex: 1;
|
||||||
|
}
|
||||||
|
.s-card {
|
||||||
|
border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<h1 style="font-size: 18px; font-weight: 700;">泡沫轴</h1>
|
||||||
|
</header>
|
||||||
|
<main class="slate-grid">
|
||||||
|
<div class="s-card">
|
||||||
|
<div>
|
||||||
|
<h3 style="font-size: 15px;">设备状态 (12EC)</h3>
|
||||||
|
<p style="font-size: 13px; color: #64748B; margin-top: 6px;">V1.2.8 · 100% 电量</p>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 8px;">
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid var(--border); background: white; font-weight: 600;">刷新</button>
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid var(--border); background: #F1F5F9; font-weight: 600;">断开</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="s-card" style="align-items: center; text-align: center;">
|
||||||
|
<h3 style="font-size: 15px; align-self: flex-start;">倒计时</h3>
|
||||||
|
<div style="font-size: 64px; font-weight: 800; font-family: monospace;">02:58</div>
|
||||||
|
<div style="display: flex; gap: 10px; width: 100%;">
|
||||||
|
<button style="flex: 1; height: 42px; background: #0F172A; color: white; border: none; border-radius: 6px; font-weight: 700;">开始</button>
|
||||||
|
<button style="flex: 1; height: 42px; background: #E2E8F0; color: #0F172A; border: none; border-radius: 6px; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="s-card">
|
||||||
|
<h3 style="font-size: 15px;">训练参数</h3>
|
||||||
|
<div style="font-size: 13.5px; color: #64748B;">自动模式 · 游泳 · 前臂 · 力量 4</div>
|
||||||
|
<button style="height: 42px; background: #0F172A; color: white; border: none; border-radius: 6px; font-weight: 700;">保存</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 5:Segmented Stream 胶囊步进流</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar { height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--divider); }
|
||||||
|
.stream-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; flex: 1; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.st-card { background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<h1 style="font-size: 18px; font-weight: 700;">泡沫轴 · 步进中枢</h1>
|
||||||
|
</header>
|
||||||
|
<main class="stream-grid">
|
||||||
|
<div class="st-card">
|
||||||
|
<h3>1. 选定设备</h3>
|
||||||
|
<p>FR100-12EC 已连接</p>
|
||||||
|
<button style="height: 40px; border: 1px solid var(--divider); border-radius: 8px;">断开</button>
|
||||||
|
</div>
|
||||||
|
<div class="st-card" style="text-align: center;">
|
||||||
|
<h3>2. 设置时长</h3>
|
||||||
|
<div style="font-size: 56px; font-weight: 900; font-family: monospace;">02:58</div>
|
||||||
|
<button style="height: 40px; background: var(--color-primary); color: white; border: none; border-radius: 8px;">开始训练</button>
|
||||||
|
</div>
|
||||||
|
<div class="st-card">
|
||||||
|
<h3>3. 模式与力量</h3>
|
||||||
|
<p>自动 · 游泳 · 力量 4</p>
|
||||||
|
<button style="height: 40px; background: var(--color-primary); color: white; border: none; border-radius: 8px;">保存</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
<!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: #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: 760px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header-bar">
|
||||||
|
<div class="hub-title">
|
||||||
|
<span>🛹 泡沫轴 · 方案1的5套细化方案决策中心</span>
|
||||||
|
<span style="font-size: 12px; background: rgba(37,99,235,0.2); color: #60A5FA; padding: 2px 8px; border-radius: 100px;">搭载官方 FR100 产品渲染图</span>
|
||||||
|
</div>
|
||||||
|
<div class="tabs-row">
|
||||||
|
<button class="tab-btn active" onclick="switchOpt('1a', this)">方案 1A:经典工控立体滚轮 (推荐·官方FR100图版)</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt('1b', this)">方案 1B:现代极简平滑流</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt('1c', this)">方案 1C:数据看板与环形进度</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt('1d', this)">方案 1D:紧凑高对比工控台</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt('1e', this)">方案 1E:分段卡片磁吸座舱</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="preview-container">
|
||||||
|
<iframe id="previewFrame" src="variant_1a_pro_industrial.html"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const files = {
|
||||||
|
'1a': 'variant_1a_pro_industrial.html',
|
||||||
|
'1b': 'variant_1b_modern_smooth.html',
|
||||||
|
'1c': 'variant_1c_visual_graphic.html',
|
||||||
|
'1d': 'variant_1d_compact_precision.html',
|
||||||
|
'1e': 'variant_1e_inset_cockpit.html'
|
||||||
|
};
|
||||||
|
function switchOpt(key, btn) {
|
||||||
|
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||||
|
btn.classList.add('active');
|
||||||
|
document.getElementById('previewFrame').src = files[key];
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 54 KiB |
@@ -0,0 +1,440 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1A:经典工控立体滚轮 (推荐·已连接态/未连接态区分)</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;
|
||||||
|
|
||||||
|
--color-success: #059669;
|
||||||
|
--color-success-bg: #ECFDF5;
|
||||||
|
--color-success-border: #A7F3D0;
|
||||||
|
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--color-danger-bg: #FFF1F2;
|
||||||
|
--color-danger-border: #FFE4E6;
|
||||||
|
--color-danger-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 720px; 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: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
/* 2. 核心三栏工控布局 */
|
||||||
|
.tri-body {
|
||||||
|
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||||
|
display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03); position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header-title {
|
||||||
|
font-size: 17px; font-weight: 700; color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 左栏:设备状态与蓝牙扫描 */
|
||||||
|
.left-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
|
||||||
|
.device-status-box {
|
||||||
|
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||||
|
padding: 8px 0 16px; border-bottom: 1px solid var(--divider); min-height: 190px; justify-content: center;
|
||||||
|
}
|
||||||
|
.fr100-product-img {
|
||||||
|
width: 170px; height: 85px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
|
||||||
|
}
|
||||||
|
.fr100-disconnected-img {
|
||||||
|
width: 130px; height: 65px; display: flex; align-items: center; justify-content: center; opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-meta-list { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||||
|
.meta-item { display: flex; justify-content: space-between; align-items: center; }
|
||||||
|
.meta-label { color: var(--text-sub); }
|
||||||
|
.meta-val { font-weight: 700; color: var(--text-main); font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
.battery-pill {
|
||||||
|
background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border);
|
||||||
|
padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
|
||||||
|
.btn-mini {
|
||||||
|
height: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s ease; border: 1.5px solid transparent;
|
||||||
|
}
|
||||||
|
.btn-ghost-neutral { background: #F1F5F9; color: var(--text-main); border-color: #CBD5E1; }
|
||||||
|
.btn-ghost-neutral:hover { background: #E2E8F0; }
|
||||||
|
.btn-primary-blue { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
|
||||||
|
.btn-danger-outline { background: white; color: var(--color-danger); border-color: #FECDD3; }
|
||||||
|
.btn-danger-outline:hover { background: var(--color-danger-bg); }
|
||||||
|
|
||||||
|
.scan-list-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 16px;
|
||||||
|
display: flex; flex-direction: column; gap: 10px; flex: 1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.scan-item {
|
||||||
|
height: 44px; padding: 0 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--divider);
|
||||||
|
display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.scan-item:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||||
|
.scan-name { font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace; }
|
||||||
|
.rssi-bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
|
||||||
|
.rssi-bar { width: 3px; background: #94A3B8; border-radius: 1px; }
|
||||||
|
.rssi-bar.active { background: var(--color-primary); }
|
||||||
|
|
||||||
|
/* 中栏:开始 (倒计时控制) */
|
||||||
|
.center-timer-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.countdown-hero {
|
||||||
|
font-size: clamp(54px, 6.5vw, 80px); font-weight: 900; font-family: "SF Pro Display", ui-monospace, monospace;
|
||||||
|
color: var(--text-main); letter-spacing: -0.03em; margin: 12px 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wheel-picker-box {
|
||||||
|
width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px 0; position: relative;
|
||||||
|
mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
|
||||||
|
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
|
||||||
|
}
|
||||||
|
.wheel-item {
|
||||||
|
height: 36px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
|
||||||
|
color: var(--text-dim); transition: all 0.2s ease; cursor: pointer; border-radius: 8px;
|
||||||
|
}
|
||||||
|
.wheel-item.selected {
|
||||||
|
font-size: 18px; font-weight: 800; color: var(--color-primary); background: var(--color-primary-light);
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.timer-actions-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
|
||||||
|
.btn-ctrl {
|
||||||
|
height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; border: none; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-start { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 12px var(--color-primary-glow); }
|
||||||
|
.btn-start:hover { transform: translateY(-1px); }
|
||||||
|
.btn-pause { background: var(--color-danger-gradient); color: white; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }
|
||||||
|
.btn-pause:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
/* 右栏:设备信息 (模式与参数) */
|
||||||
|
.right-config-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mode-segmented-capsule {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F1F5F9; border-radius: 10px; padding: 4px;
|
||||||
|
}
|
||||||
|
.mode-cap-btn {
|
||||||
|
height: 36px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; color: var(--text-sub); background: transparent;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-blue {
|
||||||
|
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-red {
|
||||||
|
background: white; color: var(--color-danger); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dual-wheel-matrix {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;
|
||||||
|
}
|
||||||
|
.wheel-col {
|
||||||
|
background: #F8FAFC; border: 1px solid var(--divider); border-radius: 10px; padding: 8px 4px;
|
||||||
|
display: flex; flex-direction: column; gap: 2px;
|
||||||
|
}
|
||||||
|
.col-header { font-size: 12px; font-weight: 700; color: var(--text-sub); text-align: center; margin-bottom: 4px; }
|
||||||
|
.matrix-item {
|
||||||
|
height: 32px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center;
|
||||||
|
justify-content: center; border-radius: 6px; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.matrix-item.selected {
|
||||||
|
background: var(--color-primary-light); color: var(--color-primary); font-weight: 800;
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.strength-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
|
||||||
|
.strength-btn {
|
||||||
|
height: 36px; border-radius: 8px; border: 1px solid var(--divider); background: #F8FAFC;
|
||||||
|
font-size: 13px; font-weight: 700; color: var(--text-sub); cursor: pointer; display: flex; align-items: center;
|
||||||
|
justify-content: center; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.strength-btn.active {
|
||||||
|
background: var(--color-primary); color: white; border-color: var(--color-primary);
|
||||||
|
box-shadow: 0 2px 8px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-save-full {
|
||||||
|
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||||
|
background: var(--color-primary-gradient); color: white; border: none; box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-save-full:hover { transform: translateY(-1px); }
|
||||||
|
</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="tri-body">
|
||||||
|
<!-- ================= 左栏:设备连接与蓝牙扫描 ================= -->
|
||||||
|
<div class="left-stack">
|
||||||
|
<div class="panel-card" style="padding: 18px;">
|
||||||
|
<div class="device-status-box" id="deviceStatusBox">
|
||||||
|
<!-- 已连接态使用官方产品实物图 fr100_setup_200.png -->
|
||||||
|
<img src="fr100_setup_200.png" class="fr100-product-img" id="productImg" alt="FR100 Foam Roller">
|
||||||
|
|
||||||
|
<div class="device-meta-list">
|
||||||
|
<div class="meta-item"><span class="meta-label">ID:</span><span class="meta-val" id="valId">12EC</span></div>
|
||||||
|
<div class="meta-item"><span class="meta-label">版本:</span><span class="meta-val" id="valVer">V1.2.8</span></div>
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">电量:</span>
|
||||||
|
<span class="battery-pill" id="valBat">
|
||||||
|
<svg style="width: 12px; height: 12px; fill: currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg>
|
||||||
|
<span>100%</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-btn-group">
|
||||||
|
<button class="btn-mini btn-ghost-neutral" onclick="handleScanRefresh()">
|
||||||
|
<svg style="width: 14px; height: 14px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
|
||||||
|
<span>刷新设备</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-mini btn-danger-outline" id="btnToggleConn" onclick="toggleConnectState()">
|
||||||
|
<span>断开连接</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 蓝牙扫描发现列表 -->
|
||||||
|
<div class="scan-list-card">
|
||||||
|
<div style="font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; justify-content: space-between;">
|
||||||
|
<span>📡 周边设备列表</span>
|
||||||
|
<span style="font-size: 11px; color: var(--color-primary);" id="scanStatusText">自动扫描中</span>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item" onclick="connectDeviceItem('FR100-12EC')">
|
||||||
|
<span class="scan-name">FR100-12EC</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item" onclick="connectDeviceItem('FR100-1776')">
|
||||||
|
<span class="scan-name">FR100-1776</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 中栏:开始 (严格对齐真机文字) ================= -->
|
||||||
|
<div class="center-timer-panel">
|
||||||
|
<div style="width: 100%; text-align: left;">
|
||||||
|
<h2 class="panel-header-title">开始</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: center; width: 100%;">
|
||||||
|
<div class="countdown-hero" id="dispTimer">02:58</div>
|
||||||
|
|
||||||
|
<div class="wheel-picker-box" id="wheelPickerBox">
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this)">1 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this)">2 : 00 分</div>
|
||||||
|
<div class="wheel-item selected" onclick="selectDurationItem(this)">3 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this)">4 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this)">5 : 00 分</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="timer-actions-row">
|
||||||
|
<button class="btn-ctrl btn-start" id="btnStart">
|
||||||
|
<svg style="width: 18px; height: 18px; fill: currentColor;" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>
|
||||||
|
<span>开始</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-ctrl btn-pause" id="btnPause">
|
||||||
|
<svg style="width: 18px; height: 18px; fill: currentColor;" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>
|
||||||
|
<span>暂停</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 右栏:设备信息 (严格对齐真机文字) ================= -->
|
||||||
|
<div class="right-config-panel">
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 14px;">
|
||||||
|
<h2 class="panel-header-title">设备信息</h2>
|
||||||
|
|
||||||
|
<div class="mode-segmented-capsule">
|
||||||
|
<button class="mode-cap-btn active-blue" id="btnModeAuto" onclick="setMode('auto')">自动模式</button>
|
||||||
|
<button class="mode-cap-btn" id="btnModeManual" onclick="setMode('manual')">手动模式</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dual-wheel-matrix">
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">动作模式</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">徒步</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">骑行</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectMatrix(this)">游泳</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">瑜伽</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">拳击</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">肌群</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">大腿</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">背阔肌</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectMatrix(this)">前臂</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">背部</div>
|
||||||
|
<div class="matrix-item" onclick="selectMatrix(this)">足部</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 6px;">
|
||||||
|
<div style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">力量档位</div>
|
||||||
|
<div class="strength-grid">
|
||||||
|
<button class="strength-btn" onclick="setStrength(1, this)">力量 : 1</button>
|
||||||
|
<button class="strength-btn" onclick="setStrength(2, this)">力量 : 2</button>
|
||||||
|
<button class="strength-btn" onclick="setStrength(3, this)">力量 : 3</button>
|
||||||
|
<button class="strength-btn active" onclick="setStrength(4, this)">力量 : 4</button>
|
||||||
|
<button class="strength-btn" onclick="setStrength(5, this)">力量 : 5</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button class="btn-save-full">
|
||||||
|
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/></svg>
|
||||||
|
<span>保存</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let isConnected = true;
|
||||||
|
|
||||||
|
function toggleConnectState() {
|
||||||
|
isConnected = !isConnected;
|
||||||
|
const img = document.getElementById('productImg');
|
||||||
|
const valId = document.getElementById('valId');
|
||||||
|
const valVer = document.getElementById('valVer');
|
||||||
|
const valBat = document.getElementById('valBat');
|
||||||
|
const btnToggle = document.getElementById('btnToggleConn');
|
||||||
|
const timer = document.getElementById('dispTimer');
|
||||||
|
|
||||||
|
if (isConnected) {
|
||||||
|
// 切换为已连接状态 (展示真实 3D 产品图)
|
||||||
|
img.src = 'fr100_setup_200.png';
|
||||||
|
img.className = 'fr100-product-img';
|
||||||
|
valId.innerText = '12EC';
|
||||||
|
valVer.innerText = 'V1.2.8';
|
||||||
|
valBat.innerHTML = '<svg style="width:12px;height:12px;fill:currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg> <span>100%</span>';
|
||||||
|
btnToggle.innerText = '断开连接';
|
||||||
|
btnToggle.className = 'btn-mini btn-danger-outline';
|
||||||
|
timer.innerText = '02:58';
|
||||||
|
} else {
|
||||||
|
// 切换为未连接状态 (展示未连接专属硬件插画/线框)
|
||||||
|
img.src = 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="70" viewBox="0 0 140 70"><ellipse cx="25" cy="35" rx="14" ry="24" fill="%23E2E8F0" stroke="%2394A3B8" stroke-width="2"/><rect x="25" y="11" width="90" height="48" rx="4" fill="%23F1F5F9" stroke="%23CBD5E1" stroke-width="2"/><ellipse cx="115" cy="35" rx="14" ry="24" fill="%23E2E8F0" stroke="%2394A3B8" stroke-width="2"/><circle cx="70" cy="35" r="10" fill="%23CBD5E1"/><path d="M66 35h8" stroke="%2394A3B8" stroke-width="2"/></svg>';
|
||||||
|
img.className = 'fr100-disconnected-img';
|
||||||
|
valId.innerText = '--';
|
||||||
|
valVer.innerText = '--';
|
||||||
|
valBat.innerHTML = '<span style="color:var(--text-dim)">未连接</span>';
|
||||||
|
btnToggle.innerText = '连接设备';
|
||||||
|
btnToggle.className = 'btn-mini btn-primary-blue';
|
||||||
|
timer.innerText = '00:00';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectDurationItem(el) {
|
||||||
|
document.querySelectorAll('.wheel-item').forEach(i => i.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function setMode(mode) {
|
||||||
|
document.getElementById('btnModeAuto').className = mode === 'auto' ? 'mode-cap-btn active-blue' : 'mode-cap-btn';
|
||||||
|
document.getElementById('btnModeManual').className = mode === 'manual' ? 'mode-cap-btn active-red' : 'mode-cap-btn';
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectMatrix(el) {
|
||||||
|
el.parentElement.querySelectorAll('.matrix-item').forEach(item => item.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function setStrength(level, btn) {
|
||||||
|
document.querySelectorAll('.strength-btn').forEach(b => b.classList.remove('active'));
|
||||||
|
btn.classList.add('active');
|
||||||
|
}
|
||||||
|
|
||||||
|
function connectDeviceItem(dev) {
|
||||||
|
if (!isConnected) toggleConnectState();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,143 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1B:现代极简平滑流 (Modern Smooth Studio)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--color-primary-light: #EFF6FF;
|
||||||
|
--color-primary-border: #DBEAFE;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--text-dim: #94A3B8;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
|
||||||
|
border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||||
|
}
|
||||||
|
.tri-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px; flex: 1; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px;" 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 style="font-size: 18px; font-weight: 700;">泡沫轴 · 现代平滑版</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="tri-grid">
|
||||||
|
<!-- 左栏 -->
|
||||||
|
<div class="panel" style="gap: 16px;">
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; border-bottom: 1px solid var(--divider); padding-bottom: 16px;">
|
||||||
|
<img src="fr100_setup_200.png" style="width: 160px; height: 80px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.1));" alt="FR100">
|
||||||
|
<div style="width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; margin-top: 4px;">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">设备 ID</span><b>12EC</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">固件版本</span><b>V1.2.8</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span style="color: var(--text-sub);">剩余电量</span><span style="color: #059669; font-weight: 700;">100% 满电</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 8px;">
|
||||||
|
<span style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">周边设备</span>
|
||||||
|
<div style="height: 40px; padding: 0 12px; background: #F8FAFC; border: 1px solid var(--divider); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700;">
|
||||||
|
<span>FR100-12EC</span>
|
||||||
|
<span style="color: var(--color-primary); font-size: 12px;">已直连</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 8px;">
|
||||||
|
<button style="height: 38px; border: 1px solid var(--divider); background: #F1F5F9; border-radius: 8px; font-weight: 700;">刷新设备</button>
|
||||||
|
<button style="height: 38px; border: 1px solid #FECDD3; background: white; color: var(--color-danger); border-radius: 8px; font-weight: 700;">断开连接</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 中栏 -->
|
||||||
|
<div class="panel" style="align-items: center; text-align: center;">
|
||||||
|
<div style="width: 100%; display: flex; justify-content: space-between; align-items: center;">
|
||||||
|
<span style="font-size: 16px; font-weight: 700;">训练计时</span>
|
||||||
|
<span style="font-size: 12px; color: var(--color-primary); background: var(--color-primary-light); padding: 2px 8px; border-radius: 4px; font-weight: 700;">运行中</span>
|
||||||
|
</div>
|
||||||
|
<div style="margin: 14px 0;">
|
||||||
|
<div style="font-size: 72px; font-weight: 900; font-family: monospace; letter-spacing: -0.03em;">02:58</div>
|
||||||
|
<div style="display: inline-flex; gap: 6px; background: #F1F5F9; padding: 4px; border-radius: 8px; margin-top: 8px;">
|
||||||
|
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">1分</span>
|
||||||
|
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">2分</span>
|
||||||
|
<span style="padding: 4px 12px; font-size: 13px; background: white; color: var(--color-primary); font-weight: 800; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.06);">3分</span>
|
||||||
|
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">4分</span>
|
||||||
|
<span style="padding: 4px 10px; font-size: 13px; color: var(--text-sub);">5分</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px;">开始训练</button>
|
||||||
|
<button style="height: 44px; background: var(--color-danger); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右栏 -->
|
||||||
|
<div class="panel" style="gap: 16px;">
|
||||||
|
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||||
|
<span style="font-size: 16px; font-weight: 700;">模式与参数</span>
|
||||||
|
<div style="display: flex; gap: 4px; background: #F1F5F9; padding: 3px; border-radius: 6px;">
|
||||||
|
<span style="padding: 3px 10px; background: white; color: var(--color-primary); font-size: 12px; font-weight: 700; border-radius: 4px;">自动</span>
|
||||||
|
<span style="padding: 3px 10px; color: var(--text-sub); font-size: 12px; font-weight: 700;">手动</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 10px;">
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">动作模式</span>
|
||||||
|
<div style="display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;">
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">徒步</span>
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">骑行</span>
|
||||||
|
<span style="padding: 4px 12px; background: var(--color-primary-light); color: var(--color-primary); border: 1px solid var(--color-primary-border); border-radius: 6px; font-size: 12.5px; font-weight: 700;">游泳</span>
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">瑜伽</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">肌群选择</span>
|
||||||
|
<div style="display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;">
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">大腿</span>
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">背阔肌</span>
|
||||||
|
<span style="padding: 4px 12px; background: var(--color-primary-light); color: var(--color-primary); border: 1px solid var(--color-primary-border); border-radius: 6px; font-size: 12.5px; font-weight: 700;">前臂</span>
|
||||||
|
<span style="padding: 4px 10px; background: #F1F5F9; border-radius: 6px; font-size: 12.5px;">背部</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="font-size: 12px; color: var(--text-sub); font-weight: 700;">力量档位 (当前 4 档)</span>
|
||||||
|
<div style="display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 4px;">
|
||||||
|
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">1</button>
|
||||||
|
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">2</button>
|
||||||
|
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">3</button>
|
||||||
|
<button style="height: 32px; border: none; background: var(--color-primary); color: white; border-radius: 6px; font-weight: 700;">4</button>
|
||||||
|
<button style="height: 32px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">5</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700;">保存配置</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1C:数据看板与环形进度 (Visual Graphic Station)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--color-primary-light: #EFF6FF;
|
||||||
|
--color-primary-border: #DBEAFE;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--text-dim: #94A3B8;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
|
||||||
|
border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||||
|
}
|
||||||
|
.tri-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px; flex: 1; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px;" 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 style="font-size: 18px; font-weight: 700;">泡沫轴 · 环形看板版</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="tri-grid">
|
||||||
|
<!-- 左栏 -->
|
||||||
|
<div class="panel">
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;">
|
||||||
|
<img src="fr100_setup_200.png" style="width: 170px; height: 85px; object-fit: contain;" alt="FR100">
|
||||||
|
<div style="width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13px; background: #F8FAFC; padding: 12px; border-radius: 10px;">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>设备型号</span><b>FR100-12EC</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>软件版本</span><b>V1.2.8</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>电池状态</span><b style="color: #059669;">100% 正常</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 8px;">
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid var(--divider); background: #F1F5F9; border-radius: 8px; font-weight: 700;">扫描刷新</button>
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid #FECDD3; background: white; color: var(--color-danger); border-radius: 8px; font-weight: 700;">断开连接</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 中栏:环形进度计时 -->
|
||||||
|
<div class="panel" style="align-items: center; text-align: center;">
|
||||||
|
<div style="width: 100%; text-align: left;"><span style="font-size: 16px; font-weight: 700;">倒计时训练</span></div>
|
||||||
|
<div style="position: relative; width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; margin: 10px 0;">
|
||||||
|
<svg width="190" height="190" viewBox="0 0 190 190" style="transform: rotate(-90deg);">
|
||||||
|
<circle cx="95" cy="95" r="82" fill="none" stroke="#DBEAFE" stroke-width="12"/>
|
||||||
|
<circle cx="95" cy="95" r="82" fill="none" stroke="var(--color-primary)" stroke-width="12" stroke-dasharray="515" stroke-dashoffset="120" stroke-linecap="round"/>
|
||||||
|
</svg>
|
||||||
|
<div style="position: absolute; display: flex; flex-direction: column; align-items: center;">
|
||||||
|
<span style="font-size: 40px; font-weight: 900; font-family: monospace;">02:58</span>
|
||||||
|
<span style="font-size: 12px; color: var(--text-sub);">设定时长: 3:00分</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700;">启动训练</button>
|
||||||
|
<button style="height: 44px; background: var(--color-danger); color: white; border: none; border-radius: 10px; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右栏:图形化模式与肌群 -->
|
||||||
|
<div class="panel" style="gap: 14px;">
|
||||||
|
<span style="font-size: 16px; font-weight: 700;">动作与肌群指示</span>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px;">
|
||||||
|
<div style="background: var(--color-primary-light); border: 1.5px solid var(--color-primary-border); border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; align-items: center;">
|
||||||
|
<div>
|
||||||
|
<div style="font-size: 12px; color: var(--text-sub);">当前动作</div>
|
||||||
|
<div style="font-size: 16px; font-weight: 800; color: var(--color-primary);">🏊 游泳训练</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div style="font-size: 12px; color: var(--text-sub);">目标肌群</div>
|
||||||
|
<div style="font-size: 16px; font-weight: 800; color: var(--color-primary);">💪 前臂肌群</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
||||||
|
<span style="font-size: 12.5px; font-weight: 700; color: var(--text-sub);">振动强度 (4档)</span>
|
||||||
|
<div style="display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;">
|
||||||
|
<button style="height: 34px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">1</button>
|
||||||
|
<button style="height: 34px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">2</button>
|
||||||
|
<button style="height: 34px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">3</button>
|
||||||
|
<button style="height: 34px; border: none; background: var(--color-primary); color: white; border-radius: 6px; font-weight: 700;">4</button>
|
||||||
|
<button style="height: 34px; border: 1px solid var(--divider); background: #F8FAFC; border-radius: 6px; font-weight: 700;">5</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 10px; font-weight: 700;">保存配置</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1D:紧凑高对比工控 (Compact Precision)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #1D4ED8;
|
||||||
|
--bg: #F1F5F9;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #475569;
|
||||||
|
--divider: #CBD5E1;
|
||||||
|
--color-danger: #BE123C;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.device-wrapper {
|
||||||
|
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||||
|
border-radius: 12px; border: 1.5px solid var(--divider); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar { height: 52px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1.5px solid var(--divider); }
|
||||||
|
.tri-grid {
|
||||||
|
padding: 16px; display: grid; grid-template-columns: 300px 1.15fr 1fr; gap: 14px; flex: 1;
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 10px; padding: 18px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<h1 style="font-size: 17px; font-weight: 800;">泡沫轴 · 紧凑工控台</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="tri-grid">
|
||||||
|
<div class="panel">
|
||||||
|
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px;">
|
||||||
|
<img src="fr100_setup_200.png" style="width: 150px; height: 75px; object-fit: contain;" alt="FR100">
|
||||||
|
<div style="width: 100%; font-size: 13px; display: flex; flex-direction: column; gap: 6px;">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>设备:</span><b>12EC</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>版本:</span><b>V1.2.8</b></div>
|
||||||
|
<div style="display: flex; justify-content: space-between;"><span>电量:</span><b>100%</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 6px;">
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid var(--divider); font-weight: 700; background: white;">刷新</button>
|
||||||
|
<button style="flex: 1; height: 36px; border: 1px solid #FDA4AF; background: #FFF1F2; color: var(--color-danger); font-weight: 700;">断开</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel" style="text-align: center; align-items: center;">
|
||||||
|
<span style="font-size: 15px; font-weight: 800; align-self: flex-start;">倒计时 (分)</span>
|
||||||
|
<div style="font-size: 68px; font-weight: 900; font-family: monospace;">02:58</div>
|
||||||
|
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;">
|
||||||
|
<button style="height: 42px; background: var(--color-primary); color: white; border: none; font-weight: 700;">开始</button>
|
||||||
|
<button style="height: 42px; background: var(--color-danger); color: white; border: none; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<span style="font-size: 15px; font-weight: 800;">参数配置</span>
|
||||||
|
<div style="font-size: 13px; line-height: 1.8;">
|
||||||
|
<div>模式:<b>自动模式</b></div>
|
||||||
|
<div>动作:<b>游泳</b></div>
|
||||||
|
<div>肌群:<b>前臂</b></div>
|
||||||
|
<div>力量:<b>4 档</b></div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 42px; background: var(--color-primary); color: white; border: none; font-weight: 700;">保存参数</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - 方案 1E:分段卡片磁吸流 (Inset Cockpit)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 720px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.appbar { height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--divider); }
|
||||||
|
.tri-grid {
|
||||||
|
padding: 20px; display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px; flex: 1; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.inset-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<h1 style="font-size: 18px; font-weight: 700;">泡沫轴 · 磁吸座舱版</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="tri-grid">
|
||||||
|
<div class="inset-panel">
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<img src="fr100_setup_200.png" style="width: 165px; height: 82px; object-fit: contain;" alt="FR100">
|
||||||
|
<div style="margin-top: 10px; background: #F1F5F9; padding: 10px; border-radius: 10px; font-size: 13px;">
|
||||||
|
<b>FR100-12EC · V1.2.8 · 100%</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 8px;">
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid var(--divider); background: white; border-radius: 8px; font-weight: 700;">刷新</button>
|
||||||
|
<button style="flex: 1; height: 38px; border: 1px solid #FECDD3; background: #FFF1F2; color: var(--color-danger); border-radius: 8px; font-weight: 700;">断开</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="inset-panel" style="text-align: center; align-items: center;">
|
||||||
|
<span style="font-size: 16px; font-weight: 700;">训练计时</span>
|
||||||
|
<div style="font-size: 70px; font-weight: 900; font-family: monospace; color: var(--color-primary);">02:58</div>
|
||||||
|
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;">开始</button>
|
||||||
|
<button style="height: 44px; background: var(--color-danger); color: white; border: none; border-radius: 8px; font-weight: 700;">暂停</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="inset-panel">
|
||||||
|
<span style="font-size: 16px; font-weight: 700;">参数设置</span>
|
||||||
|
<div style="background: #F1F5F9; padding: 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.6;">
|
||||||
|
<div>模式:<b>自动模式</b></div>
|
||||||
|
<div>动作:<b>游泳</b></div>
|
||||||
|
<div>肌群:<b>前臂</b></div>
|
||||||
|
<div>力量:<b>4 档</b></div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 44px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;">保存参数</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,297 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 1:双视图联动工控工作台 (推荐·全槽位联动)</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;
|
||||||
|
|
||||||
|
--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;
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 740px; 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: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
/* 2. 页面主容器 */
|
||||||
|
.page-container {
|
||||||
|
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 顶部操作与筛选栏 */
|
||||||
|
.top-filter-bar {
|
||||||
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
||||||
|
}
|
||||||
|
.sort-select-box {
|
||||||
|
display: inline-flex; align-items: center; gap: 8px; background: white; border: 1.5px solid var(--divider);
|
||||||
|
padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-main); cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 计划卡片列表 */
|
||||||
|
.plan-list-wrapper { display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
.plan-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px 20px;
|
||||||
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); display: flex; flex-direction: column; gap: 14px;
|
||||||
|
transition: all 0.2s ease; border-left: 4px solid var(--color-primary);
|
||||||
|
}
|
||||||
|
.plan-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
|
||||||
|
|
||||||
|
.card-header-row {
|
||||||
|
display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--divider);
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
.athlete-title-group { display: flex; align-items: center; gap: 10px; }
|
||||||
|
.athlete-name { font-size: 16px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.athlete-id-badge { font-family: ui-monospace, monospace; font-size: 13px; color: var(--text-sub); background: #F1F5F9; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
|
||||||
|
.athlete-meta-pill { font-size: 12.5px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
|
||||||
|
.plan-time-stamp { font-size: 12.5px; color: var(--text-dim); font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
/* 计划核心参数栅格 */
|
||||||
|
.plan-metrics-grid {
|
||||||
|
display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
|
||||||
|
}
|
||||||
|
.metric-col { display: flex; flex-direction: column; gap: 4px; }
|
||||||
|
.metric-col-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
|
||||||
|
.metric-col-val { font-size: 15px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.metric-col-val.sub { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
|
||||||
|
|
||||||
|
.card-footer-row {
|
||||||
|
display: flex; justify-content: flex-end; align-items: center; padding-top: 6px;
|
||||||
|
}
|
||||||
|
.btn-delete-link {
|
||||||
|
color: var(--color-danger); font-size: 13px; font-weight: 700; background: transparent; border: none;
|
||||||
|
cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-delete-link:hover { background: var(--color-danger-bg); }
|
||||||
|
|
||||||
|
/* 悬浮操作按钮组 (FABs) */
|
||||||
|
.fab-log-btn {
|
||||||
|
position: absolute; bottom: 24px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
|
||||||
|
background: white; border: 1.5px solid var(--divider); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
|
||||||
|
display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-sub);
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.fab-log-btn:hover { background: #F8FAFC; color: var(--color-primary); transform: scale(1.05); }
|
||||||
|
|
||||||
|
.fab-add-btn {
|
||||||
|
position: absolute; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%;
|
||||||
|
background: var(--color-primary-gradient); border: none; box-shadow: 0 8px 20px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; cursor: pointer; color: white;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.fab-add-btn:hover { transform: scale(1.08) translateY(-2px); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
新建/编辑表单与 AI 计划分析抽屉/子视图
|
||||||
|
========================================================================= */
|
||||||
|
.editor-dual-view {
|
||||||
|
display: grid; grid-template-columns: 380px 1fr; gap: 18px; height: 100%;
|
||||||
|
}
|
||||||
|
.form-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
|
||||||
|
}
|
||||||
|
.form-section-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
|
||||||
|
|
||||||
|
.form-item { display: flex; flex-direction: column; gap: 6px; position: relative; }
|
||||||
|
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text-sub); }
|
||||||
|
.form-input {
|
||||||
|
height: 40px; border: 1.5px solid var(--divider); border-radius: 8px; padding: 0 12px;
|
||||||
|
font-size: 14px; color: var(--text-main); outline: none; transition: all 0.15s ease; background: #F8FAFC;
|
||||||
|
}
|
||||||
|
.form-input:focus { border-color: var(--color-primary); background: white; box-shadow: 0 0 0 3px var(--color-primary-glow); }
|
||||||
|
|
||||||
|
.ai-panel-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
|
||||||
|
}
|
||||||
|
.btn-update-plan {
|
||||||
|
height: 46px; border-radius: 10px; background: var(--color-primary-gradient); color: white;
|
||||||
|
border: none; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-update-plan:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
/* 调整日志模态抽屉 */
|
||||||
|
.modal-overlay {
|
||||||
|
position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px);
|
||||||
|
display: none; align-items: center; justify-content: center; z-index: 1000;
|
||||||
|
}
|
||||||
|
.modal-overlay.active { display: flex; }
|
||||||
|
.log-modal-card {
|
||||||
|
width: 90%; max-width: 960px; max-height: 85%; background: white; border-radius: 16px;
|
||||||
|
box-shadow: 0 20px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
</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="page-container">
|
||||||
|
<div class="top-filter-bar">
|
||||||
|
<div class="sort-select-box">
|
||||||
|
<span>按创建时间降序</span>
|
||||||
|
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>
|
||||||
|
</div>
|
||||||
|
<div style="font-size: 13px; color: var(--text-sub);">共 <b>2</b> 条训练计划</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-list-wrapper">
|
||||||
|
<!-- 卡片 1: 郑梅 -->
|
||||||
|
<div class="plan-card">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">郑梅</span>
|
||||||
|
<span class="athlete-id-badge">ID: 108203</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 22岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-18 09:52:09</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">竞技级</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">比赛期</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val" style="color: var(--color-primary);">恢复</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">长距离</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="alert('确认删除郑梅的训练计划?')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 卡片 2: 吴静 -->
|
||||||
|
<div class="plan-card">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">吴静</span>
|
||||||
|
<span class="athlete-id-badge">ID: 103717</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 23岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-17 12:12:26</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">初学者</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">GPP</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val" style="color: var(--color-primary);">耐力</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">50米</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="alert('确认删除吴静的训练计划?')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 悬浮操作按钮 -->
|
||||||
|
<button class="fab-log-btn" title="查看调整日志" onclick="alert('查看规则校验调整日志')">
|
||||||
|
<svg style="width: 20px; height: 20px; fill: currentColor;" viewBox="0 0 24 24"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/></svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="fab-add-btn" title="新建游泳训练计划" onclick="alert('打开新建训练计划配置工作台')">
|
||||||
|
<svg style="width: 24px; height: 24px; fill: currentColor;" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
||||||
|
</button>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 1 (子视图 · 新建/编辑与AI分析中枢)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--color-primary-dark: #1D4ED8;
|
||||||
|
--color-primary-light: #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;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--text-dim: #94A3B8;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 740px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
}
|
||||||
|
.editor-dual-grid {
|
||||||
|
padding: 20px; background: #F8FAFC; flex: 1; display: grid; grid-template-columns: 380px 1fr; gap: 18px;
|
||||||
|
}
|
||||||
|
.form-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
|
||||||
|
}
|
||||||
|
.section-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.field-item { display: flex; flex-direction: column; gap: 4px; }
|
||||||
|
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-sub); }
|
||||||
|
.field-input, .field-select {
|
||||||
|
height: 38px; border: 1.5px solid var(--divider); border-radius: 8px; padding: 0 12px;
|
||||||
|
font-size: 13.5px; background: #F8FAFC; outline: none;
|
||||||
|
}
|
||||||
|
.field-input:focus, .field-select:focus { border-color: var(--color-primary); background: white; }
|
||||||
|
|
||||||
|
.ai-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
|
||||||
|
}
|
||||||
|
.btn-update {
|
||||||
|
height: 46px; border-radius: 10px; background: var(--color-primary-gradient); color: white;
|
||||||
|
border: none; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;"><svg style="width: 22px; height: 22px;" 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 style="font-size: 18px; font-weight: 700;">游泳训练计划 · 配置中枢</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="editor-dual-grid">
|
||||||
|
<!-- 左栏:档案与参数表单 -->
|
||||||
|
<div class="form-panel">
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px;">
|
||||||
|
<h2 class="section-title">运动员信息</h2>
|
||||||
|
<div class="field-item"><span class="field-label">用户名</span><input class="field-input" value="郑梅"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">性别 *</span>
|
||||||
|
<select class="field-select"><option>女</option><option>男</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item"><span class="field-label">年龄</span><input class="field-input" value="22"></div>
|
||||||
|
<div class="field-item"><span class="field-label">最大心率</span><input class="field-input" value="191"></div>
|
||||||
|
<div class="field-item"><span class="field-label">运动员ID *</span><input class="field-input" value="108203"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">教育阶段</span>
|
||||||
|
<select class="field-select"><option>大学</option><option>高中</option><option>初中</option><option>小学</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--divider); padding-top: 14px;">
|
||||||
|
<h2 class="section-title">训练档案</h2>
|
||||||
|
<div class="field-item"><span class="field-label">系统性训练时间 (年)</span><input class="field-input" value="3"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练水平 *</span>
|
||||||
|
<select class="field-select"><option>竞技级</option><option>专业级</option><option>初学者</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--divider); padding-top: 14px;">
|
||||||
|
<h2 class="section-title">计划参数</h2>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要项目 *</span>
|
||||||
|
<select class="field-select"><option>长距离</option><option>50米自由泳</option><option>100米自由泳</option><option>200米混合泳</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练阶段</span>
|
||||||
|
<select class="field-select"><option>比赛期</option><option>GPP (一般体能期)</option><option>SPP (专项体能期)</option><option>恢复期</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要目标</span>
|
||||||
|
<select class="field-select"><option>恢复</option><option>耐力</option><option>乳酸门槛</option><option>爆发力</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">计划类型</span>
|
||||||
|
<select class="field-select"><option>单次训练</option><option>周周期计划</option><option>月度宏观计划</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右栏:AI 分析与处方生成 -->
|
||||||
|
<div class="ai-panel">
|
||||||
|
<div>
|
||||||
|
<button class="btn-update" style="width: 100%;">⚡ 更新 / 执行 AI 训练计划</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); gap: 10px;">
|
||||||
|
<svg style="width: 48px; height: 48px; fill: #CBD5E1;" viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>
|
||||||
|
<div style="font-size: 15px; font-weight: 700; color: var(--text-sub);">AI 分析尚未执行</div>
|
||||||
|
<div style="font-size: 13px; max-width: 320px;">点击上方按钮,系统将根据左侧填写的运动员生理档案与专项目标自动生成个性化训练负荷与心率配比。</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: flex-end; gap: 10px;">
|
||||||
|
<button style="height: 40px; padding: 0 18px; border: 1px solid var(--divider); background: white; border-radius: 8px; font-weight: 700;">取消</button>
|
||||||
|
<button style="height: 40px; padding: 0 22px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;">保存计划</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 调整日志视图</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--color-warning: #D97706;
|
||||||
|
--color-warning-bg: #FFFBEB;
|
||||||
|
--color-warning-border: #FDE68A;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 740px; display: flex; flex-direction: column; overflow: hidden;
|
||||||
|
}
|
||||||
|
.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 {
|
||||||
|
width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||||
|
cursor: pointer; background: transparent; border: none;
|
||||||
|
}
|
||||||
|
.appbar-nav svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||||
|
.appbar-title { font-size: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
.log-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; background: #F8FAFC; }
|
||||||
|
.log-table {
|
||||||
|
width: 100%; border-collapse: separate; border-spacing: 0; background: white;
|
||||||
|
border-radius: 12px; border: 1.5px solid var(--divider); overflow: hidden; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.log-table th {
|
||||||
|
background: #F1F5F9; padding: 14px 18px; font-size: 13.5px; font-weight: 700; color: var(--text-sub); text-align: left;
|
||||||
|
border-bottom: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
.log-table td {
|
||||||
|
padding: 16px 18px; font-size: 14px; border-bottom: 1px solid var(--divider); color: var(--text-main);
|
||||||
|
}
|
||||||
|
.tag-auto-yellow {
|
||||||
|
background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border);
|
||||||
|
padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; display: inline-block;
|
||||||
|
}
|
||||||
|
</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>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="log-body">
|
||||||
|
<div style="font-size: 13.5px; color: var(--text-sub);">查看所有规则校验调整记录</div>
|
||||||
|
<table class="log-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>时间</th>
|
||||||
|
<th>规则</th>
|
||||||
|
<th>类型</th>
|
||||||
|
<th>运动员</th>
|
||||||
|
<th>字段</th>
|
||||||
|
<th>变更</th>
|
||||||
|
<th>原因</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: monospace; font-size: 13.5px;">1787017929</td>
|
||||||
|
<td style="font-weight: 700;">R011</td>
|
||||||
|
<td><span class="tag-auto-yellow">自动调整</span></td>
|
||||||
|
<td style="font-family: monospace; font-weight: 700;">108203</td>
|
||||||
|
<td>primaryGoal</td>
|
||||||
|
<td><b>Threshold</b> → <b>Recovery</b></td>
|
||||||
|
<td style="color: var(--text-sub);">-</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 2:Bento 看板流</title>
|
||||||
|
<style>
|
||||||
|
:root { --color-primary: #2563EB; --bg: #EEF2F6; --surface: #FFFFFF; --text-main: #0F172A; --divider: #E2E8F0; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: var(--bg); padding: 20px; }
|
||||||
|
.wrapper { max-width: 1240px; margin: 0 auto; background: var(--surface); border-radius: 20px; border: 1px solid var(--divider); overflow: hidden; }
|
||||||
|
.appbar { height: 56px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--divider); }
|
||||||
|
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; background: #F8FAFC; }
|
||||||
|
.card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px;">游泳训练计划 · 看板流</h1></header>
|
||||||
|
<main class="grid">
|
||||||
|
<div class="card">
|
||||||
|
<h3>竞技级 · 比赛期</h3>
|
||||||
|
<p style="margin-top: 8px;">郑梅 (108203) · 目标: 恢复 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<h3>初学者 · GPP</h3>
|
||||||
|
<p style="margin-top: 8px;">吴静 (103717) · 目标: 耐力 · 50米</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 3:全景驾驶舱</title>
|
||||||
|
<style>
|
||||||
|
:root { --primary: #0284C7; --bg: #0F172A; --card: #1E293B; --border: #334155; --text: white; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: #020617; color: var(--text); padding: 20px; }
|
||||||
|
.wrapper { max-width: 1240px; margin: 0 auto; background: var(--bg); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
|
||||||
|
.appbar { height: 56px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
|
||||||
|
.grid { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
|
||||||
|
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px; color: var(--primary);">🏊 游泳训练计划 · Pro Cockpit</h1></header>
|
||||||
|
<main class="grid">
|
||||||
|
<div class="card">
|
||||||
|
<h3>郑梅 (ID: 108203) · 竞技级</h3>
|
||||||
|
<p style="color: #94A3B8; margin-top: 6px;">比赛期 · 恢复 · 长距离 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<h3>吴静 (ID: 103717) · 初学者</h3>
|
||||||
|
<p style="color: #94A3B8; margin-top: 6px;">GPP · 耐力 · 50米 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<!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 { --primary: #0F172A; --bg: #F1F5F9; --surface: #FFFFFF; --divider: #CBD5E1; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: var(--bg); padding: 20px; }
|
||||||
|
.wrapper { max-width: 1240px; margin: 0 auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--divider); overflow: hidden; }
|
||||||
|
.appbar { height: 56px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--divider); }
|
||||||
|
.grid { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
|
||||||
|
.card { border: 1px solid var(--divider); border-radius: 8px; padding: 16px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px;">游泳训练计划</h1></header>
|
||||||
|
<main class="grid">
|
||||||
|
<div class="card"><h3>郑梅 (108203) - 竞技级 / 比赛期</h3><p style="color: #64748B;">主要目标: 恢复 · 长距离</p></div>
|
||||||
|
<div class="card"><h3>吴静 (103717) - 初学者 / GPP</h3><p style="color: #64748B;">主要目标: 耐力 · 50米</p></div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 5:Split Master-Detail 分屏流</title>
|
||||||
|
<style>
|
||||||
|
:root { --primary: #2563EB; --bg: #EEF2F6; --surface: #FFFFFF; --divider: #E2E8F0; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: var(--bg); padding: 20px; }
|
||||||
|
.wrapper { max-width: 1240px; margin: 0 auto; background: var(--surface); border-radius: 20px; border: 1px solid var(--divider); overflow: hidden; }
|
||||||
|
.appbar { height: 56px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--divider); }
|
||||||
|
.split-body { display: grid; grid-template-columns: 340px 1fr; gap: 16px; padding: 20px; background: #F8FAFC; min-height: 640px; }
|
||||||
|
.col-card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px;">游泳训练计划 · 分屏查阅</h1></header>
|
||||||
|
<main class="split-body">
|
||||||
|
<div class="col-card">
|
||||||
|
<h3>计划列表</h3>
|
||||||
|
<div style="margin-top: 12px; display: flex; flex-direction: column; gap: 10px;">
|
||||||
|
<div style="padding: 10px; background: #EFF6FF; border: 1px solid #DBEAFE; border-radius: 8px;"><b>郑梅 (108203)</b><div style="font-size: 12px;">竞技级 · 比赛期</div></div>
|
||||||
|
<div style="padding: 10px; background: #F8FAFC; border: 1px solid var(--divider); border-radius: 8px;"><b>吴静 (103717)</b><div style="font-size: 12px;">初学者 · GPP</div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-card">
|
||||||
|
<h3>训练详情与处方</h3>
|
||||||
|
<p style="margin-top: 12px; color: #64748B;">目标:恢复 | 阶段:比赛期 | 主要项目:长距离自由泳</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
<!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: 760px;
|
||||||
|
}
|
||||||
|
</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;">全真动态跳转 · 点击卡片直达更新</span>
|
||||||
|
</div>
|
||||||
|
<div class="tabs-row">
|
||||||
|
<button class="tab-btn active" onclick="switchOpt(1, this)">方案 1:双向平滑工控工作台 (推荐·全真交互)</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt(2, this)">方案 2:底部操作扩展坞 (Action Dock)</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt(3, this)">方案 3:侧边栏抽屉协同台 (Drawer Split)</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt(4, this)">方案 4:极客卡片驾驶舱 (Cyber Matrix)</button>
|
||||||
|
<button class="tab-btn" onclick="switchOpt(5, this)">方案 5:分步向导阶段过滤流 (Wizard Flow)</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="preview-container">
|
||||||
|
<iframe id="previewFrame" src="scheme_1_multiview_studio.html"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const files = {
|
||||||
|
1: 'scheme_1_multiview_studio.html',
|
||||||
|
2: 'scheme_2_action_dock.html',
|
||||||
|
3: 'scheme_3_drawer_split.html',
|
||||||
|
4: 'scheme_4_cyber_matrix.html',
|
||||||
|
5: 'scheme_5_wizard_flow.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>
|
||||||
@@ -0,0 +1,551 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 1:双向工控工作台 (悬浮/点击自动高亮蓝色列标识)</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;
|
||||||
|
|
||||||
|
--color-warning: #D97706;
|
||||||
|
--color-warning-bg: #FFFBEB;
|
||||||
|
--color-warning-border: #FDE68A;
|
||||||
|
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--color-danger-bg: #FFF1F2;
|
||||||
|
--color-danger-border: #FFE4E6;
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 740px; 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: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
/* 视图容器 (View Container) */
|
||||||
|
.view-panel {
|
||||||
|
flex: 1; display: none; flex-direction: column; position: relative; background: #F8FAFC; overflow-y: auto;
|
||||||
|
}
|
||||||
|
.view-panel.active { display: flex; }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 1:计划主列表 (List View)
|
||||||
|
========================================================================= */
|
||||||
|
.list-content {
|
||||||
|
padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 16px; flex: 1; padding-bottom: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-filter-bar {
|
||||||
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
||||||
|
}
|
||||||
|
.sort-select-box {
|
||||||
|
display: inline-flex; align-items: center; gap: 8px; background: white; border: 1.5px solid var(--divider);
|
||||||
|
padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-main); cursor: pointer;
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,0.02); transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.sort-select-box:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||||
|
|
||||||
|
.plan-list-wrapper { display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
|
||||||
|
/* 核心优化:卡片在悬浮(:hover)或手点击/选中(.selected)时自动高亮左侧蓝色标识 */
|
||||||
|
.plan-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-left: 4.5px solid transparent;
|
||||||
|
border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||||
|
display: flex; flex-direction: column; gap: 14px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
cursor: pointer; position: relative;
|
||||||
|
}
|
||||||
|
.plan-card:hover, .plan-card.selected, .plan-card:active {
|
||||||
|
border-left: 4.5px solid var(--color-primary) !important;
|
||||||
|
border-color: var(--color-primary-border);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
|
||||||
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header-row {
|
||||||
|
display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--divider);
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
.athlete-title-group { display: flex; align-items: center; gap: 10px; }
|
||||||
|
.athlete-name { font-size: 16.5px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.athlete-id-badge { font-family: ui-monospace, monospace; font-size: 13px; color: var(--text-sub); background: #F1F5F9; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
|
||||||
|
.athlete-meta-pill { font-size: 12.5px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
|
||||||
|
.plan-time-stamp { font-size: 12.5px; color: var(--text-dim); font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
.plan-metrics-grid {
|
||||||
|
display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
|
||||||
|
}
|
||||||
|
.metric-col { display: flex; flex-direction: column; gap: 4px; }
|
||||||
|
.metric-col-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
|
||||||
|
.metric-col-val { font-size: 15px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.metric-col-val.sub { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
|
||||||
|
|
||||||
|
.card-footer-row {
|
||||||
|
display: flex; justify-content: flex-end; align-items: center; padding-top: 6px;
|
||||||
|
}
|
||||||
|
.btn-delete-link {
|
||||||
|
color: var(--color-danger); font-size: 13.5px; font-weight: 700; background: transparent; border: none;
|
||||||
|
cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-delete-link:hover { background: var(--color-danger-bg); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
悬浮图标按钮 (FABs)
|
||||||
|
========================================================================= */
|
||||||
|
.fab-log-btn {
|
||||||
|
position: absolute; bottom: 24px; left: 24px; width: 48px; height: 48px; border-radius: 50%;
|
||||||
|
background: white; border: 1.5px solid var(--divider); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
|
||||||
|
display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-sub);
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 50;
|
||||||
|
}
|
||||||
|
.fab-log-btn:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary-border); transform: scale(1.08); box-shadow: 0 10px 24px var(--color-primary-glow); }
|
||||||
|
.fab-log-btn svg { width: 22px; height: 22px; fill: currentColor; }
|
||||||
|
|
||||||
|
.fab-add-btn {
|
||||||
|
position: absolute; bottom: 24px; right: 24px; width: 52px; height: 52px; border-radius: 50%;
|
||||||
|
background: var(--color-primary-gradient); border: none; box-shadow: 0 8px 22px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; cursor: pointer; color: white;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 50;
|
||||||
|
}
|
||||||
|
.fab-add-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4); }
|
||||||
|
.fab-add-btn svg { width: 26px; height: 26px; fill: currentColor; }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 2:新建/编辑训练计划表单与 AI 处方 (Editor View)
|
||||||
|
========================================================================= */
|
||||||
|
.editor-dual-grid {
|
||||||
|
padding: 20px; flex: 1; display: grid; grid-template-columns: 380px 1fr; gap: 18px; min-height: 0;
|
||||||
|
}
|
||||||
|
.form-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; gap: 16px; overflow-y: auto; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.section-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
|
||||||
|
.field-item { display: flex; flex-direction: column; gap: 4px; }
|
||||||
|
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-sub); }
|
||||||
|
.field-input, .field-select {
|
||||||
|
height: 38px; border: 1.5px solid var(--divider); border-radius: 8px; padding: 0 12px;
|
||||||
|
font-size: 13.5px; background: #F8FAFC; outline: none; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.field-input:focus, .field-select:focus { border-color: var(--color-primary); background: white; box-shadow: 0 0 0 3px var(--color-primary-glow); }
|
||||||
|
|
||||||
|
.ai-panel {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.btn-update-plan {
|
||||||
|
height: 48px; border-radius: 10px; background: var(--color-primary-gradient); color: white;
|
||||||
|
border: none; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-update-plan:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
.ai-prescription-box {
|
||||||
|
background: #F8FAFC; border: 1.5px solid var(--divider); border-radius: 12px; padding: 18px;
|
||||||
|
display: none; flex-direction: column; gap: 14px;
|
||||||
|
}
|
||||||
|
.ai-prescription-box.active { display: flex; }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 3:调整日志 (Logs View) - 类型严格采用黄色规范
|
||||||
|
========================================================================= */
|
||||||
|
.log-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
.log-table {
|
||||||
|
width: 100%; border-collapse: separate; border-spacing: 0; background: white;
|
||||||
|
border-radius: 12px; border: 1.5px solid var(--divider); overflow: hidden; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.log-table th {
|
||||||
|
background: #F1F5F9; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--text-sub); text-align: left;
|
||||||
|
border-bottom: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
.log-table td {
|
||||||
|
padding: 14px 16px; font-size: 13.5px; border-bottom: 1px solid var(--divider); color: var(--text-main);
|
||||||
|
}
|
||||||
|
.tag-auto-yellow {
|
||||||
|
background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border);
|
||||||
|
padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toast 提示 */
|
||||||
|
.toast-msg {
|
||||||
|
position: absolute; top: 68px; left: 50%; transform: translateX(-50%) translateY(-20px);
|
||||||
|
background: #0F172A; color: white; padding: 10px 20px; border-radius: 100px; font-size: 13.5px;
|
||||||
|
font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 1000;
|
||||||
|
}
|
||||||
|
.toast-msg.show { transform: translateX(-50%) translateY(0); opacity: 1; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<!-- 顶部 AppBar -->
|
||||||
|
<header class="appbar">
|
||||||
|
<div class="appbar-left">
|
||||||
|
<button class="appbar-nav" id="btnNavBack" onclick="navigateBack()" 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" id="pageTitle">游泳训练计划</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>
|
||||||
|
|
||||||
|
<!-- ================= 视图 1:主列表视图 ================= -->
|
||||||
|
<main class="view-panel active" id="viewList">
|
||||||
|
<div class="list-content">
|
||||||
|
<div class="top-filter-bar">
|
||||||
|
<div class="sort-select-box">
|
||||||
|
<span>按创建时间降序</span>
|
||||||
|
<svg style="width: 16px; height: 16px; fill: currentColor;" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>
|
||||||
|
</div>
|
||||||
|
<div style="font-size: 13px; color: var(--text-sub);">共 <b>2</b> 条训练计划 · 悬浮或点击卡片自动高亮蓝色标识并进入配置</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-list-wrapper">
|
||||||
|
<!-- 卡片 1: 郑梅 (当前高亮选中态:显示左侧蓝色列标识) -->
|
||||||
|
<div class="plan-card selected" id="card108203" onclick="openPlanEditor('108203')">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">郑梅</span>
|
||||||
|
<span class="athlete-id-badge">ID: 108203</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 22岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-18 09:52:09</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">竞技级</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">比赛期</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val" style="color: var(--color-primary);">恢复</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">长距离</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="event.stopPropagation(); deletePlan('郑梅')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 卡片 2: 吴静 (悬浮或点击时自动高亮左侧蓝色标识) -->
|
||||||
|
<div class="plan-card" id="card103717" onclick="openPlanEditor('103717')">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">吴静</span>
|
||||||
|
<span class="athlete-id-badge">ID: 103717</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 23岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-17 12:12:26</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">初学者</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">GPP</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val" style="color: var(--color-primary);">耐力</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">50米</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="event.stopPropagation(); deletePlan('吴静')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 悬浮图标按钮 (FABs) -->
|
||||||
|
<button class="fab-log-btn" title="查看调整日志" onclick="openLogsView()">
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/></svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="fab-add-btn" title="新建训练计划" onclick="openPlanEditor('new')">
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
||||||
|
</button>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- ================= 视图 2:新建/更新训练计划表单与 AI 处方 ================= -->
|
||||||
|
<main class="view-panel" id="viewEditor">
|
||||||
|
<div class="editor-dual-grid">
|
||||||
|
<!-- 左侧表单 -->
|
||||||
|
<div class="form-panel">
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px;">
|
||||||
|
<h2 class="section-title">运动员信息</h2>
|
||||||
|
<div class="field-item"><span class="field-label">用户名</span><input class="field-input" id="inpName" value="郑梅"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">性别 *</span>
|
||||||
|
<select class="field-select" id="inpGender"><option>女</option><option>男</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item"><span class="field-label">年龄</span><input class="field-input" id="inpAge" value="22"></div>
|
||||||
|
<div class="field-item"><span class="field-label">最大心率</span><input class="field-input" id="inpMaxHr" value="191"></div>
|
||||||
|
<div class="field-item"><span class="field-label">运动员ID *</span><input class="field-input" id="inpId" value="108203"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">教育阶段</span>
|
||||||
|
<select class="field-select" id="inpEdu"><option>大学</option><option>高中</option><option>初中</option><option>小学</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--divider); padding-top: 14px;">
|
||||||
|
<h2 class="section-title">训练档案</h2>
|
||||||
|
<div class="field-item"><span class="field-label">系统性训练时间 (年)</span><input class="field-input" id="inpExp" value="3"></div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练水平 *</span>
|
||||||
|
<select class="field-select" id="inpLevel"><option>竞技级</option><option>专业级</option><option>初学者</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--divider); padding-top: 14px;">
|
||||||
|
<h2 class="section-title">计划参数</h2>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要项目 *</span>
|
||||||
|
<select class="field-select" id="inpEvent"><option>长距离</option><option>50米自由泳</option><option>100米自由泳</option><option>200米混合泳</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练阶段</span>
|
||||||
|
<select class="field-select" id="inpStage"><option>比赛期</option><option>GPP</option><option>SPP</option><option>恢复期</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要目标</span>
|
||||||
|
<select class="field-select" id="inpGoal"><option>恢复</option><option>耐力</option><option>乳酸门槛</option><option>冲刺爆发</option></select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">计划类型</span>
|
||||||
|
<select class="field-select" id="inpType"><option>单次训练</option><option>周周期计划</option><option>月度计划</option></select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右侧 AI 中枢 -->
|
||||||
|
<div class="ai-panel">
|
||||||
|
<div>
|
||||||
|
<button class="btn-update-plan" style="width: 100%;" onclick="runAiAnalysis()">更新训练计划</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 未执行状态提示 -->
|
||||||
|
<div id="aiEmptyState" style="flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); gap: 10px;">
|
||||||
|
<div style="font-size: 15px; font-weight: 700; color: var(--text-sub);">AI分析尚未执行</div>
|
||||||
|
<div style="font-size: 13px; max-width: 320px; line-height: 1.6;">点击上方「更新训练计划」按钮,系统将根据左侧填写的档案参数智能生成个性化训练负荷与心率配比。</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- AI 处方生成结果 -->
|
||||||
|
<div id="aiResultBox" class="ai-prescription-box">
|
||||||
|
<div style="font-size: 15px; font-weight: 800; color: var(--color-primary);">AI 智能训练处方已就绪</div>
|
||||||
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px;">
|
||||||
|
<div style="background: white; padding: 10px; border-radius: 8px; border: 1px solid var(--divider);">
|
||||||
|
<div style="color: var(--text-sub);">目标心率靶区</div>
|
||||||
|
<div style="font-size: 16px; font-weight: 800; color: var(--text-main); margin-top: 2px;">138 ~ 156 bpm</div>
|
||||||
|
</div>
|
||||||
|
<div style="background: white; padding: 10px; border-radius: 8px; border: 1px solid var(--divider);">
|
||||||
|
<div style="color: var(--text-sub);">建议总负荷量</div>
|
||||||
|
<div style="font-size: 16px; font-weight: 800; color: var(--text-main); margin-top: 2px;">3,200 米 / 单次</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="font-size: 12.5px; color: var(--text-sub); line-height: 1.6; background: white; padding: 12px; border-radius: 8px; border: 1px solid var(--divider);">
|
||||||
|
<b>训练结构分配:</b>热身 400m(心率 120-135) ➔ 有氧耐力主项 2000m(配速 1:18/100m) ➔ 专项技术 400m ➔ 放松恢复 400m。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--divider); padding-top: 14px;">
|
||||||
|
<button style="height: 40px; padding: 0 18px; border: 1px solid var(--divider); background: white; border-radius: 8px; font-weight: 700; cursor: pointer;" onclick="navigateBack()">取消</button>
|
||||||
|
<button style="height: 40px; padding: 0 22px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;" onclick="savePlan()">保存并应用</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- ================= 视图 3:调整日志视图 ================= -->
|
||||||
|
<main class="view-panel" id="viewLogs">
|
||||||
|
<div class="log-body">
|
||||||
|
<div style="font-size: 13.5px; color: var(--text-sub);">查看所有规则校验调整记录</div>
|
||||||
|
<table class="log-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>时间</th>
|
||||||
|
<th>规则</th>
|
||||||
|
<th>类型</th>
|
||||||
|
<th>运动员</th>
|
||||||
|
<th>字段</th>
|
||||||
|
<th>变更</th>
|
||||||
|
<th>原因</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: monospace;">1787017929</td>
|
||||||
|
<td style="font-weight: 700;">R011</td>
|
||||||
|
<td><span class="tag-auto-yellow">自动调整</span></td>
|
||||||
|
<td style="font-family: monospace; font-weight: 700;">108203</td>
|
||||||
|
<td>primaryGoal</td>
|
||||||
|
<td><b>Threshold</b> → <b>Recovery</b></td>
|
||||||
|
<td style="color: var(--text-sub);">-</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<div id="toast" class="toast-msg"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let currentView = 'list';
|
||||||
|
|
||||||
|
function showToastMsg(msg) {
|
||||||
|
const t = document.getElementById('toast');
|
||||||
|
t.innerText = msg;
|
||||||
|
t.classList.add('show');
|
||||||
|
setTimeout(() => t.classList.remove('show'), 2000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function switchView(targetView, title) {
|
||||||
|
currentView = targetView;
|
||||||
|
document.querySelectorAll('.view-panel').forEach(p => p.classList.remove('active'));
|
||||||
|
document.getElementById(targetView).classList.add('active');
|
||||||
|
document.getElementById('pageTitle').innerText = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
function navigateBack() {
|
||||||
|
if (currentView !== 'viewList') {
|
||||||
|
switchView('viewList', '游泳训练计划');
|
||||||
|
} else {
|
||||||
|
showToastMsg('已返回上一级主页面');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function openPlanEditor(athleteId) {
|
||||||
|
document.querySelectorAll('.plan-card').forEach(c => c.classList.remove('selected'));
|
||||||
|
const cardEl = document.getElementById('card' + athleteId);
|
||||||
|
if (cardEl) cardEl.classList.add('selected');
|
||||||
|
|
||||||
|
if (athleteId === '108203') {
|
||||||
|
document.getElementById('inpName').value = '郑梅';
|
||||||
|
document.getElementById('inpGender').value = '女';
|
||||||
|
document.getElementById('inpAge').value = '22';
|
||||||
|
document.getElementById('inpMaxHr').value = '191';
|
||||||
|
document.getElementById('inpId').value = '108203';
|
||||||
|
document.getElementById('inpEdu').value = '大学';
|
||||||
|
document.getElementById('inpExp').value = '3';
|
||||||
|
document.getElementById('inpLevel').value = '竞技级';
|
||||||
|
document.getElementById('inpEvent').value = '长距离';
|
||||||
|
document.getElementById('inpStage').value = '比赛期';
|
||||||
|
document.getElementById('inpGoal').value = '恢复';
|
||||||
|
document.getElementById('inpType').value = '单次训练';
|
||||||
|
} else if (athleteId === '103717') {
|
||||||
|
document.getElementById('inpName').value = '吴静';
|
||||||
|
document.getElementById('inpGender').value = '女';
|
||||||
|
document.getElementById('inpAge').value = '23';
|
||||||
|
document.getElementById('inpMaxHr').value = '188';
|
||||||
|
document.getElementById('inpId').value = '103717';
|
||||||
|
document.getElementById('inpEdu').value = '大学';
|
||||||
|
document.getElementById('inpExp').value = '1';
|
||||||
|
document.getElementById('inpLevel').value = '初学者';
|
||||||
|
document.getElementById('inpEvent').value = '50米';
|
||||||
|
document.getElementById('inpStage').value = 'GPP';
|
||||||
|
document.getElementById('inpGoal').value = '耐力';
|
||||||
|
document.getElementById('inpType').value = '单次训练';
|
||||||
|
} else {
|
||||||
|
document.getElementById('inpName').value = '';
|
||||||
|
document.getElementById('inpAge').value = '';
|
||||||
|
document.getElementById('inpMaxHr').value = '';
|
||||||
|
document.getElementById('inpId').value = '';
|
||||||
|
}
|
||||||
|
document.getElementById('aiEmptyState').style.display = 'flex';
|
||||||
|
document.getElementById('aiResultBox').classList.remove('active');
|
||||||
|
switchView('viewEditor', '游泳训练计划');
|
||||||
|
}
|
||||||
|
|
||||||
|
function openLogsView() {
|
||||||
|
switchView('viewLogs', '调整日志');
|
||||||
|
}
|
||||||
|
|
||||||
|
function runAiAnalysis() {
|
||||||
|
showToastMsg('正在执行 AI 分析与生理负荷计算...');
|
||||||
|
setTimeout(() => {
|
||||||
|
document.getElementById('aiEmptyState').style.display = 'none';
|
||||||
|
document.getElementById('aiResultBox').classList.add('active');
|
||||||
|
showToastMsg('训练计划与处方已智能生成!');
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
function savePlan() {
|
||||||
|
showToastMsg('训练计划已成功保存!');
|
||||||
|
setTimeout(() => navigateBack(), 800);
|
||||||
|
}
|
||||||
|
|
||||||
|
function deletePlan(name) {
|
||||||
|
if (confirm(`确认删除【${name}】的游泳训练计划?`)) {
|
||||||
|
showToastMsg(`已删除【${name}】的训练计划`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 2:底部操作扩展坞 (无图标统一纯净版)</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-primary: #2563EB;
|
||||||
|
--bg: #EEF2F6;
|
||||||
|
--surface: #FFFFFF;
|
||||||
|
--text-main: #0F172A;
|
||||||
|
--text-sub: #64748B;
|
||||||
|
--divider: #E2E8F0;
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
}
|
||||||
|
* { 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: 20px;
|
||||||
|
}
|
||||||
|
.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);
|
||||||
|
min-height: 740px; display: flex; flex-direction: column; overflow: hidden; position: relative;
|
||||||
|
}
|
||||||
|
.appbar {
|
||||||
|
height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
|
||||||
|
border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||||
|
}
|
||||||
|
.view-panel { flex: 1; display: none; flex-direction: column; background: #F8FAFC; padding: 20px; padding-bottom: 100px; }
|
||||||
|
.view-panel.active { display: flex; }
|
||||||
|
|
||||||
|
.floating-dock-bar {
|
||||||
|
position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
|
||||||
|
background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(12px); border-radius: 100px;
|
||||||
|
padding: 6px 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
|
||||||
|
border: 1px solid rgba(255,255,255,0.15); z-index: 100;
|
||||||
|
}
|
||||||
|
.dock-btn {
|
||||||
|
height: 40px; padding: 0 20px; border-radius: 100px; border: none; font-size: 14px; font-weight: 700;
|
||||||
|
cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.dock-btn-sub { background: transparent; color: #E2E8F0; }
|
||||||
|
.dock-btn-sub:hover { background: rgba(255,255,255,0.1); color: white; }
|
||||||
|
.dock-btn-main { background: var(--color-primary); color: white; box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px 20px;
|
||||||
|
display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
border-left: 4px solid var(--color-primary);
|
||||||
|
}
|
||||||
|
.card:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar">
|
||||||
|
<div style="display: flex; align-items: center; gap: 10px;">
|
||||||
|
<button style="border: none; background: transparent; cursor: pointer;" onclick="goToList()"><svg style="width: 22px; height: 22px;" 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 style="font-size: 18px; font-weight: 700;" id="dockTitle">游泳训练计划 · 操作坞版</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="view-panel active" id="pList">
|
||||||
|
<div class="card" onclick="goToEdit('郑梅')">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><b>郑梅 (ID: 108203) · 竞技级</b><span style="color: #94A3B8; font-size: 12px;">2026-08-18 09:52:09</span></div>
|
||||||
|
<div style="font-size: 13.5px; color: var(--text-sub);">比赛期 | 主要目标: 恢复 | 主要项目: 长距离 | 单次训练</div>
|
||||||
|
</div>
|
||||||
|
<div class="card" onclick="goToEdit('吴静')">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><b>吴静 (ID: 103717) · 初学者</b><span style="color: #94A3B8; font-size: 12px;">2026-08-17 12:12:26</span></div>
|
||||||
|
<div style="font-size: 13.5px; color: var(--text-sub);">GPP | 主要目标: 耐力 | 主要项目: 50米 | 单次训练</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 纯文字底部扩展坞 (无图标) -->
|
||||||
|
<div class="floating-dock-bar">
|
||||||
|
<button class="dock-btn dock-btn-sub" onclick="goToLogs()">调整日志</button>
|
||||||
|
<div style="width: 1px; height: 20px; background: rgba(255,255,255,0.2);"></div>
|
||||||
|
<button class="dock-btn dock-btn-main" onclick="goToEdit('新运动员')">新建训练计划</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<main class="view-panel" id="pEdit">
|
||||||
|
<div style="background: white; padding: 24px; border-radius: 16px; border: 1.5px solid var(--divider);">
|
||||||
|
<h2 style="font-size: 16px; font-weight: 800;" id="editHead">更新训练计划</h2>
|
||||||
|
<div style="margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;">
|
||||||
|
<div><label style="font-size: 12px; color: var(--text-sub);">用户名</label><input id="inpAthName" style="width: 100%; height: 38px; border: 1px solid var(--divider); border-radius: 6px; padding: 0 10px;" value="郑梅"></div>
|
||||||
|
<div><label style="font-size: 12px; color: var(--text-sub);">训练阶段</label><select style="width: 100%; height: 38px; border: 1px solid var(--divider); border-radius: 6px; padding: 0 10px;"><option>比赛期</option><option>GPP</option></select></div>
|
||||||
|
</div>
|
||||||
|
<button style="margin-top: 16px; height: 42px; width: 100%; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;" onclick="alert('已执行更新计划!')">更新训练计划</button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<main class="view-panel" id="pLogs">
|
||||||
|
<div style="background: white; padding: 20px; border-radius: 16px; border: 1.5px solid var(--divider);">
|
||||||
|
<h2 style="font-size: 16px; font-weight: 800;">调整日志</h2>
|
||||||
|
<p style="color: var(--text-sub); font-size: 13px; margin-top: 6px;">记录: R011 · 自动调整 · primaryGoal: Threshold -> Recovery</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function goToList() {
|
||||||
|
document.getElementById('pList').className = 'view-panel active';
|
||||||
|
document.getElementById('pEdit').className = 'view-panel';
|
||||||
|
document.getElementById('pLogs').className = 'view-panel';
|
||||||
|
document.getElementById('dockTitle').innerText = '游泳训练计划 · 操作坞版';
|
||||||
|
}
|
||||||
|
function goToEdit(name) {
|
||||||
|
document.getElementById('pList').className = 'view-panel';
|
||||||
|
document.getElementById('pEdit').className = 'view-panel active';
|
||||||
|
document.getElementById('pLogs').className = 'view-panel';
|
||||||
|
document.getElementById('editHead').innerText = `更新训练计划 - ${name}`;
|
||||||
|
document.getElementById('inpAthName').value = name;
|
||||||
|
document.getElementById('dockTitle').innerText = `更新训练计划 - ${name}`;
|
||||||
|
}
|
||||||
|
function goToLogs() {
|
||||||
|
document.getElementById('pList').className = 'view-panel';
|
||||||
|
document.getElementById('pEdit').className = 'view-panel';
|
||||||
|
document.getElementById('pLogs').className = 'view-panel active';
|
||||||
|
document.getElementById('dockTitle').innerText = '调整日志';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 3:侧边栏抽屉协同台 (Drawer Split)</title>
|
||||||
|
<style>
|
||||||
|
:root { --color-primary: #2563EB; --bg: #EEF2F6; --surface: #FFFFFF; --text-main: #0F172A; --divider: #E2E8F0; --content-max-width: 1240px; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); padding: 20px; }
|
||||||
|
.device-wrapper { width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface); border-radius: 20px; border: 1px solid var(--divider); min-height: 740px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
|
||||||
|
.appbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--divider); }
|
||||||
|
.split-body { padding: 20px; display: grid; grid-template-columns: 1fr 480px; gap: 18px; flex: 1; background: #F8FAFC; }
|
||||||
|
.card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px; margin-bottom: 12px; cursor: pointer; }
|
||||||
|
.card.selected { border-color: var(--color-primary); background: #EFF6FF; }
|
||||||
|
.drawer { background: white; 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"><h1 style="font-size: 18px; font-weight: 700;">游泳训练计划 · 抽屉协同版</h1></header>
|
||||||
|
<main class="split-body">
|
||||||
|
<div>
|
||||||
|
<div style="font-size: 14px; font-weight: 700; color: #64748B; margin-bottom: 10px;">训练计划列表(点击实时更新右侧)</div>
|
||||||
|
<div class="card selected" onclick="selectItem('郑梅', '108203', '竞技级', '恢复')">
|
||||||
|
<b>郑梅 (108203) · 竞技级</b>
|
||||||
|
<p style="font-size: 13px; color: #64748B; margin-top: 4px;">比赛期 · 恢复 · 长距离 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
<div class="card" onclick="selectItem('吴静', '103717', '初学者', '耐力')">
|
||||||
|
<b>吴静 (103717) · 初学者</b>
|
||||||
|
<p style="font-size: 13px; color: #64748B; margin-top: 4px;">GPP · 耐力 · 50米 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer">
|
||||||
|
<h3 id="drTitle">配置与 AI 处方 (郑梅)</h3>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: 8px; font-size: 13px;">
|
||||||
|
<div>姓名: <b id="drName">郑梅</b> | ID: <b id="drId">108203</b></div>
|
||||||
|
<div>等级: <b id="drLevel">竞技级</b> | 目标: <b id="drGoal">恢复</b></div>
|
||||||
|
</div>
|
||||||
|
<button style="height: 42px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;" onclick="alert('AI 分析处方已实时更新!')">⚡ 更新 / 执行 AI 训练计划</button>
|
||||||
|
<div style="background: #F8FAFC; border: 1px solid var(--divider); padding: 12px; border-radius: 8px; font-size: 12.5px;">
|
||||||
|
处方:建议心率 138-156 bpm,主项 2000m 有氧耐力。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function selectItem(name, id, level, goal) {
|
||||||
|
document.getElementById('drTitle').innerText = `配置与 AI 处方 (${name})`;
|
||||||
|
document.getElementById('drName').innerText = name;
|
||||||
|
document.getElementById('drId').innerText = id;
|
||||||
|
document.getElementById('drLevel').innerText = level;
|
||||||
|
document.getElementById('drGoal').innerText = goal;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 4:极客卡片驾驶舱 (Cyber Matrix)</title>
|
||||||
|
<style>
|
||||||
|
:root { --primary: #38BDF8; --bg: #0F172A; --card: #1E293B; --border: #334155; --text: #F8FAFC; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: #020617; color: var(--text); padding: 20px; }
|
||||||
|
.device-wrapper { max-width: 1240px; margin: 0 auto; background: var(--bg); border-radius: 20px; border: 1px solid var(--border); min-height: 740px; display: flex; flex-direction: column; position: relative; }
|
||||||
|
.appbar { height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border); }
|
||||||
|
.list-box { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
.cyber-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; cursor: pointer; }
|
||||||
|
.cyber-card:hover { border-color: var(--primary); }
|
||||||
|
.fab-right-pill { position: absolute; bottom: 24px; right: 24px; height: 46px; padding: 0 20px; background: #0284C7; color: white; border: none; border-radius: 100px; font-weight: 700; cursor: pointer; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px; color: var(--primary);">🏊 游泳训练计划 · Cyber Cockpit</h1></header>
|
||||||
|
<main class="list-box">
|
||||||
|
<div class="cyber-card" onclick="alert('进入郑梅 AI 训练参数配置工作台')">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><b style="color: var(--primary);">郑梅 · ID: 108203</b><span>竞技级 / 比赛期</span></div>
|
||||||
|
<p style="color: #94A3B8; font-size: 13px; margin-top: 6px;">恢复 · 长距离 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
<div class="cyber-card" onclick="alert('进入吴静 AI 训练参数配置工作台')">
|
||||||
|
<div style="display: flex; justify-content: space-between;"><b style="color: var(--primary);">吴静 · ID: 103717</b><span>初学者 / GPP</span></div>
|
||||||
|
<p style="color: #94A3B8; font-size: 13px; margin-top: 6px;">耐力 · 50米 · 单次训练</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<button class="fab-right-pill" onclick="alert('新建游泳训练计划')">+ 新建计划</button>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划 - 方案 5:分步向导流 (Wizard Flow)</title>
|
||||||
|
<style>
|
||||||
|
:root { --primary: #2563EB; --bg: #EEF2F6; --surface: #FFFFFF; --divider: #E2E8F0; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
body { font-family: -apple-system, sans-serif; background: var(--bg); padding: 20px; }
|
||||||
|
.device-wrapper { max-width: 1240px; margin: 0 auto; background: var(--surface); border-radius: 20px; border: 1px solid var(--divider); min-height: 740px; display: flex; flex-direction: column; position: relative; }
|
||||||
|
.appbar { height: 56px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--divider); }
|
||||||
|
.tab-row { display: flex; gap: 8px; padding: 14px 20px 0; background: #F8FAFC; border-bottom: 1px solid var(--divider); }
|
||||||
|
.tab-btn { padding: 8px 16px; border: none; background: transparent; font-weight: 700; color: #64748B; cursor: pointer; border-bottom: 2px solid transparent; }
|
||||||
|
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
|
||||||
|
.content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
|
||||||
|
.card { background: white; border: 1.5px solid var(--divider); border-radius: 12px; padding: 16px; cursor: pointer; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<header class="appbar"><h1 style="font-size: 18px;">游泳训练计划 · 阶段过滤流</h1></header>
|
||||||
|
<div class="tab-row">
|
||||||
|
<button class="tab-btn active">全部计划 (2)</button>
|
||||||
|
<button class="tab-btn">比赛期 (1)</button>
|
||||||
|
<button class="tab-btn">GPP 阶段 (1)</button>
|
||||||
|
</div>
|
||||||
|
<main class="content">
|
||||||
|
<div class="card" onclick="alert('进入郑梅计划配置工作台')">
|
||||||
|
<b>郑梅 · 比赛期</b>
|
||||||
|
<p style="color: #64748B; font-size: 13px;">竞技级 · 恢复 · 长距离</p>
|
||||||
|
</div>
|
||||||
|
<div class="card" onclick="alert('进入吴静计划配置工作台')">
|
||||||
|
<b>吴静 · GPP</b>
|
||||||
|
<p style="color: #64748B; font-size: 13px;">初学者 · 耐力 · 50米</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,51 @@
|
|||||||
|
# 泡沫轴 (Foam Roller) - 界面重构与设计规范文档
|
||||||
|
|
||||||
|
## 1. 业务概述与槽位定义
|
||||||
|
本页面为 EAP 工控系统的核心运动器械控制界面之一,用于连接、监控与配置智能泡沫轴(JAXJOX FR100)硬件设备,并提供沉浸式倒计时训练与动作肌群联动控制。
|
||||||
|
|
||||||
|
### 核心功能槽位:
|
||||||
|
1. **顶部导航栏 (AppBar)**:返回上一级主页面、标题【泡沫轴】、扩展菜单按钮;
|
||||||
|
2. **左栏 (设备连接与雷达扫描区,310px)**:
|
||||||
|
- **已连接态**:搭载官方 JAXJOX FR100 3D 渲染图(`fr100_setup_200.png`)、设备 ID(`12EC`)、固件版本(`V1.2.8`)、电池电量(`100%` 绿标胶囊)、【刷新设备】与【断开连接】操作组;
|
||||||
|
- **未连接态**:切换为未连接专属线框插画、状态置灰(`--` / `未连接`)、【连接设备】高亮按钮;
|
||||||
|
- **周边设备列表**:展示蓝牙雷达扫描发现的周边可用设备(`FR100-12EC`、`FR100-1776`)及 RSSI 信号强度条,支持点击直连。
|
||||||
|
3. **中栏 (开始 / 倒计时控制中心,1.15fr)**:
|
||||||
|
- 标题严格对齐真机原版为【**开始**】;
|
||||||
|
- 核心超大数显计时器(`02:58`);
|
||||||
|
- 3D 立体微凸时间滚轮选择器(`1:00分` ~ `5:00分`,支持点击与滚轮切换);
|
||||||
|
- 底部训练控制按钮组:【开始】(`#2563EB` 渐变蓝)与【暂停】(`#E11D48` 危险红)。
|
||||||
|
4. **右栏 (设备信息 / 模式与参数工作台,1fr)**:
|
||||||
|
- 标题严格对齐真机原版为【**设备信息**】;
|
||||||
|
- 模式分段选择器:【自动模式】(蓝高亮)与【手动模式】(红高亮);
|
||||||
|
- 动作模式与肌群选择双列立体滚轮矩阵:
|
||||||
|
- **动作模式**:徒步 / 骑行 / **游泳** (当前选中) / 瑜伽 / 拳击;
|
||||||
|
- **肌群选择**:大腿 / 背阔肌 / **前臂** (当前选中) / 背部 / 足部;
|
||||||
|
- 力量档位选择器:`力量 : 1` ~ `力量 : 5` 快速点选胶囊条;
|
||||||
|
- 底部操作:【保存】主按钮(全宽设计)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. 全局 Design Tokens 规范
|
||||||
|
- **主色 (Primary Blue)**: `#2563EB`
|
||||||
|
- **深主色 (Dark Primary)**: `#1D4ED8`
|
||||||
|
- **浅蓝选中背景 (Light Blue Container)**: `#EFF6FF`
|
||||||
|
- **主色边框 (Border Blue)**: `#DBEAFE`
|
||||||
|
- **背景底色 (Canvas BG)**: `#EEF2F6` / `#F8FAFC`
|
||||||
|
- **主文字 (Text Main)**: `#0F172A`
|
||||||
|
- **次级文字 (Text Sub)**: `#64748B`
|
||||||
|
- **危险色 (Danger Crimson)**: `#E11D48`
|
||||||
|
- **成功色 (Success Emerald)**: `#059669`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. 文件组织架构
|
||||||
|
```
|
||||||
|
主页面_四个下拉选项页面/泡沫轴/
|
||||||
|
├── baseline_ui.html # 核心交互页面 HTML
|
||||||
|
├── baseline_ui.css # 模块化样式表
|
||||||
|
├── baseline_ui.js # 交互与计时器状态逻辑
|
||||||
|
├── fr100_setup_200.png # 官方 FR100 3D 渲染实物图
|
||||||
|
├── image.png # 1200x800 高清交付截图
|
||||||
|
├── README.md # 本设计与架构规范文档
|
||||||
|
└── changelog.md # 版本变更与重构履历
|
||||||
|
```
|
||||||
@@ -0,0 +1,273 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
泡沫轴 - 工控交互工作台样式规范 (严格基于 #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;
|
||||||
|
|
||||||
|
--color-success: #059669;
|
||||||
|
--color-success-bg: #ECFDF5;
|
||||||
|
--color-success-border: #A7F3D0;
|
||||||
|
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--color-danger-bg: #FFF1F2;
|
||||||
|
--color-danger-border: #FFE4E6;
|
||||||
|
--color-danger-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { 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: 720px; 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: 38px; height: 38px; 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: 18px; font-weight: 700; margin-left: 10px; }
|
||||||
|
|
||||||
|
/* 2. 核心三栏工控布局 */
|
||||||
|
.tri-body {
|
||||||
|
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||||
|
display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||||
|
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03); position: relative; transition: all 0.25s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header-title {
|
||||||
|
font-size: 17px; font-weight: 700; color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
左栏:设备连接与蓝牙扫描
|
||||||
|
========================================================================= */
|
||||||
|
.left-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
|
||||||
|
.left-device-card { padding: 18px; }
|
||||||
|
|
||||||
|
.device-status-box {
|
||||||
|
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||||
|
padding: 8px 0 16px; border-bottom: 1px solid var(--divider); min-height: 190px; justify-content: center;
|
||||||
|
}
|
||||||
|
.fr100-product-img {
|
||||||
|
width: 170px; height: 85px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.fr100-disconnected-img {
|
||||||
|
width: 140px; height: 60px; display: flex; align-items: center; justify-content: center; opacity: 0.65;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-meta-list { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||||
|
.meta-item { display: flex; justify-content: space-between; align-items: center; }
|
||||||
|
.meta-label { color: var(--text-sub); }
|
||||||
|
.meta-val { font-weight: 700; color: var(--text-main); font-family: ui-monospace, monospace; }
|
||||||
|
|
||||||
|
.battery-pill {
|
||||||
|
background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border);
|
||||||
|
padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
|
||||||
|
}
|
||||||
|
.battery-pill.dim {
|
||||||
|
background: #F1F5F9; color: var(--text-dim); border-color: #E2E8F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
|
||||||
|
.btn-mini {
|
||||||
|
height: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s ease; border: 1.5px solid transparent;
|
||||||
|
}
|
||||||
|
.btn-ghost-neutral { background: #F1F5F9; color: var(--text-main); border-color: #CBD5E1; }
|
||||||
|
.btn-ghost-neutral:hover { background: #E2E8F0; }
|
||||||
|
.btn-primary-blue { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
|
||||||
|
.btn-primary-blue:hover { transform: translateY(-1px); }
|
||||||
|
.btn-danger-outline { background: white; color: var(--color-danger); border-color: #FECDD3; }
|
||||||
|
.btn-danger-outline:hover { background: var(--color-danger-bg); }
|
||||||
|
.btn-disabled-style { background: #F1F5F9; color: var(--text-dim); border-color: #E2E8F0; cursor: not-allowed; }
|
||||||
|
|
||||||
|
.scan-list-card {
|
||||||
|
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 16px;
|
||||||
|
display: flex; flex-direction: column; gap: 10px; flex: 1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
.scan-header {
|
||||||
|
font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; justify-content: space-between;
|
||||||
|
}
|
||||||
|
.scan-status-tag { font-size: 11px; color: var(--color-primary); font-weight: 600; }
|
||||||
|
|
||||||
|
.scan-item {
|
||||||
|
height: 44px; padding: 0 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--divider);
|
||||||
|
display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.scan-item:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||||
|
.scan-item.highlight { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||||
|
.scan-name { font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace; }
|
||||||
|
.rssi-bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
|
||||||
|
.rssi-bar { width: 3px; background: #CBD5E1; border-radius: 1px; }
|
||||||
|
.rssi-bar.active { background: var(--color-primary); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
中栏:开始 (倒计时控制中心)
|
||||||
|
========================================================================= */
|
||||||
|
.center-timer-panel {
|
||||||
|
padding: 24px; align-items: center; text-align: center;
|
||||||
|
}
|
||||||
|
.panel-top-row { width: 100%; text-align: left; }
|
||||||
|
|
||||||
|
.timer-core-area {
|
||||||
|
display: flex; flex-direction: column; align-items: center; width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.countdown-hero {
|
||||||
|
font-size: clamp(54px, 6.5vw, 80px); font-weight: 900; font-family: "SF Pro Display", ui-monospace, monospace;
|
||||||
|
color: var(--text-main); letter-spacing: -0.03em; margin: 12px 0 8px; transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
.countdown-hero.dim-state { color: var(--text-dim); }
|
||||||
|
|
||||||
|
.wheel-picker-box {
|
||||||
|
width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px 0; position: relative;
|
||||||
|
mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
|
||||||
|
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
|
||||||
|
}
|
||||||
|
.wheel-item {
|
||||||
|
height: 36px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
|
||||||
|
color: var(--text-dim); transition: all 0.2s ease; cursor: pointer; border-radius: 8px;
|
||||||
|
}
|
||||||
|
.wheel-item:hover { color: var(--text-main); }
|
||||||
|
.wheel-item.selected {
|
||||||
|
font-size: 18px; font-weight: 800; color: var(--color-primary); background: var(--color-primary-light);
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.timer-actions-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
|
||||||
|
.btn-ctrl {
|
||||||
|
height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; border: none; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-start { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 12px var(--color-primary-glow); }
|
||||||
|
.btn-start:hover { transform: translateY(-1px); }
|
||||||
|
.btn-pause { background: var(--color-danger-gradient); color: white; box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }
|
||||||
|
.btn-pause:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
右栏:设备信息 (模式与参数配置)
|
||||||
|
========================================================================= */
|
||||||
|
.right-config-panel { padding: 22px; }
|
||||||
|
|
||||||
|
.right-top-section { display: flex; flex-direction: column; gap: 14px; }
|
||||||
|
|
||||||
|
.mode-segmented-capsule {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F1F5F9; border-radius: 10px; padding: 4px;
|
||||||
|
}
|
||||||
|
.mode-cap-btn {
|
||||||
|
height: 36px; border-radius: 8px; border: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
|
||||||
|
display: flex; align-items: center; justify-content: center; color: var(--text-sub); background: transparent;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-blue {
|
||||||
|
background: white; color: var(--color-primary); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
.mode-cap-btn.active-red {
|
||||||
|
background: white; color: var(--color-danger); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dual-wheel-matrix {
|
||||||
|
display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;
|
||||||
|
}
|
||||||
|
.wheel-col {
|
||||||
|
background: #F8FAFC; border: 1px solid var(--divider); border-radius: 10px; padding: 8px 4px;
|
||||||
|
display: flex; flex-direction: column; gap: 2px;
|
||||||
|
}
|
||||||
|
.col-header { font-size: 12px; font-weight: 700; color: var(--text-sub); text-align: center; margin-bottom: 4px; }
|
||||||
|
.matrix-item {
|
||||||
|
height: 32px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center;
|
||||||
|
justify-content: center; border-radius: 6px; cursor: pointer; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.matrix-item:hover { color: var(--text-main); }
|
||||||
|
.matrix-item.selected {
|
||||||
|
background: var(--color-primary-light); color: var(--color-primary); font-weight: 800;
|
||||||
|
border: 1px solid var(--color-primary-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.strength-box { display: flex; flex-direction: column; gap: 8px; }
|
||||||
|
.strength-header-row {
|
||||||
|
display: flex; justify-content: space-between; align-items: center;
|
||||||
|
}
|
||||||
|
.strength-title { font-size: 13px; font-weight: 700; color: var(--text-sub); }
|
||||||
|
.strength-current-tag {
|
||||||
|
font-size: 12px; font-weight: 800; color: var(--color-primary); background: var(--color-primary-light);
|
||||||
|
border: 1px solid var(--color-primary-border); padding: 2px 8px; border-radius: 6px;
|
||||||
|
}
|
||||||
|
.strength-grid {
|
||||||
|
display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%;
|
||||||
|
}
|
||||||
|
.strength-btn {
|
||||||
|
height: 38px; min-width: 0; border-radius: 8px; border: 1.5px solid var(--divider); background: #F8FAFC;
|
||||||
|
font-size: 14px; font-weight: 800; color: var(--text-main); cursor: pointer; display: flex; align-items: center;
|
||||||
|
justify-content: center; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.strength-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: white; }
|
||||||
|
.strength-btn.active {
|
||||||
|
background: var(--color-primary); color: white; border-color: var(--color-primary);
|
||||||
|
box-shadow: 0 4px 10px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-save-full {
|
||||||
|
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
|
||||||
|
background: var(--color-primary-gradient); color: white; border: none; box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
.btn-save-full:hover { transform: translateY(-1px); }
|
||||||
|
|
||||||
|
/* 禁用与弱化保护态 */
|
||||||
|
.disabled-panel-state {
|
||||||
|
opacity: 0.75; pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toast 提示浮窗 */
|
||||||
|
.toast-popup {
|
||||||
|
position: absolute; top: 72px; left: 50%; transform: translateX(-50%) translateY(-20px);
|
||||||
|
background: #0F172A; color: white; padding: 10px 20px; border-radius: 100px; font-size: 13.5px;
|
||||||
|
font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 1000;
|
||||||
|
}
|
||||||
|
.toast-popup.show {
|
||||||
|
transform: translateX(-50%) translateY(0); opacity: 1;
|
||||||
|
}
|
||||||
@@ -0,0 +1,171 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>泡沫轴 - EAP 工控系统交互工作台</title>
|
||||||
|
<link rel="stylesheet" href="baseline_ui.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<!-- 顶部导航栏 -->
|
||||||
|
<header class="appbar">
|
||||||
|
<div class="appbar-left">
|
||||||
|
<button class="appbar-nav" title="返回" onclick="handleNavBack()"><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" title="更多选项"><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="tri-body">
|
||||||
|
<!-- ================= 左栏:设备连接与蓝牙扫描 ================= -->
|
||||||
|
<div class="left-stack">
|
||||||
|
<div class="panel-card left-device-card">
|
||||||
|
<div class="device-status-box" id="deviceStatusBox">
|
||||||
|
<!-- 已连接态使用官方实物渲染图 fr100_setup_200.png,未连接态动态切换为待连接插画 -->
|
||||||
|
<img src="fr100_setup_200.png" class="fr100-product-img" id="productImg" alt="FR100 Foam Roller">
|
||||||
|
|
||||||
|
<div class="device-meta-list">
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">ID:</span>
|
||||||
|
<span class="meta-val" id="valId">12EC</span>
|
||||||
|
</div>
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">版本:</span>
|
||||||
|
<span class="meta-val" id="valVer">V1.2.8</span>
|
||||||
|
</div>
|
||||||
|
<div class="meta-item">
|
||||||
|
<span class="meta-label">电量:</span>
|
||||||
|
<span class="battery-pill" id="valBat">
|
||||||
|
<svg style="width: 12px; height: 12px; fill: currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg>
|
||||||
|
<span id="batText">100%</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="device-btn-group">
|
||||||
|
<button class="btn-mini btn-ghost-neutral" id="btnRefresh" onclick="handleScanRefresh()">
|
||||||
|
<span>刷新设备</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-mini btn-danger-outline" id="btnToggleConn" onclick="toggleConnectState()">
|
||||||
|
<span>断开连接</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 蓝牙扫描发现列表 -->
|
||||||
|
<div class="scan-list-card">
|
||||||
|
<div class="scan-header">
|
||||||
|
<span>📡 周边设备列表</span>
|
||||||
|
<span class="scan-status-tag" id="scanStatusText">自动扫描中</span>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item highlight" id="itemFr12EC" onclick="connectDeviceItem('FR100-12EC')">
|
||||||
|
<span class="scan-name">FR100-12EC</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="scan-item" id="itemFr1776" onclick="connectDeviceItem('FR100-1776')">
|
||||||
|
<span class="scan-name">FR100-1776</span>
|
||||||
|
<div class="rssi-bars">
|
||||||
|
<div class="rssi-bar active" style="height: 4px;"></div>
|
||||||
|
<div class="rssi-bar active" style="height: 7px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 10px;"></div>
|
||||||
|
<div class="rssi-bar" style="height: 13px;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 中栏:开始 (倒计时控制中心) ================= -->
|
||||||
|
<div class="center-timer-panel panel-card" id="centerTimerPanel">
|
||||||
|
<div class="panel-top-row">
|
||||||
|
<h2 class="panel-header-title">开始</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="timer-core-area">
|
||||||
|
<div class="countdown-hero" id="dispTimer">02:58</div>
|
||||||
|
|
||||||
|
<div class="wheel-picker-box" id="wheelPickerBox">
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this, 60)">1 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this, 120)">2 : 00 分</div>
|
||||||
|
<div class="wheel-item selected" id="defaultDurOpt" onclick="selectDurationItem(this, 180)">3 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this, 240)">4 : 00 分</div>
|
||||||
|
<div class="wheel-item" onclick="selectDurationItem(this, 300)">5 : 00 分</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="timer-actions-row">
|
||||||
|
<button class="btn-ctrl btn-start" id="btnStart" onclick="handleStartTimer()">
|
||||||
|
<span>开始</span>
|
||||||
|
</button>
|
||||||
|
<button class="btn-ctrl btn-pause" id="btnPause" onclick="handlePauseTimer()">
|
||||||
|
<span>暂停</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ================= 右栏:设备信息 (模式与参数配置) ================= -->
|
||||||
|
<div class="right-config-panel panel-card" id="rightConfigPanel">
|
||||||
|
<div class="right-top-section">
|
||||||
|
<h2 class="panel-header-title">设备信息</h2>
|
||||||
|
|
||||||
|
<!-- 模式切换胶囊 -->
|
||||||
|
<div class="mode-segmented-capsule">
|
||||||
|
<button class="mode-cap-btn active-blue" id="btnModeAuto" onclick="setWorkMode('auto')">自动模式</button>
|
||||||
|
<button class="mode-cap-btn" id="btnModeManual" onclick="setWorkMode('manual')">手动模式</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 双列立体滚轮矩阵 (动作模式 + 肌群) -->
|
||||||
|
<div class="dual-wheel-matrix">
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">动作模式</div>
|
||||||
|
<div class="matrix-item" onclick="selectActionMatrix(this, '徒步')">徒步</div>
|
||||||
|
<div class="matrix-item" onclick="selectActionMatrix(this, '骑行')">骑行</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectActionMatrix(this, '游泳')">游泳</div>
|
||||||
|
<div class="matrix-item" onclick="selectActionMatrix(this, '瑜伽')">瑜伽</div>
|
||||||
|
<div class="matrix-item" onclick="selectActionMatrix(this, '拳击')">拳击</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wheel-col">
|
||||||
|
<div class="col-header">肌群</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscleMatrix(this, '大腿')">大腿</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscleMatrix(this, '背阔肌')">背阔肌</div>
|
||||||
|
<div class="matrix-item selected" onclick="selectMuscleMatrix(this, '前臂')">前臂</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscleMatrix(this, '背部')">背部</div>
|
||||||
|
<div class="matrix-item" onclick="selectMuscleMatrix(this, '足部')">足部</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 力量档位选择 (国际化防溢出优化:标题栏指示当前档位,按钮通用数字等宽分段) -->
|
||||||
|
<div class="strength-box">
|
||||||
|
<div class="strength-header-row">
|
||||||
|
<span class="strength-title">力量档位</span>
|
||||||
|
<span class="strength-current-tag" id="dispStrengthTag">4 档</span>
|
||||||
|
</div>
|
||||||
|
<div class="strength-grid">
|
||||||
|
<button class="strength-btn" onclick="setStrengthLevel(1, this)">1</button>
|
||||||
|
<button class="strength-btn" onclick="setStrengthLevel(2, this)">2</button>
|
||||||
|
<button class="strength-btn" onclick="setStrengthLevel(3, this)">3</button>
|
||||||
|
<button class="strength-btn active" onclick="setStrengthLevel(4, this)">4</button>
|
||||||
|
<button class="strength-btn" onclick="setStrengthLevel(5, this)">5</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="right-bottom-section">
|
||||||
|
<button class="btn-save-full" id="btnSaveConfig" onclick="handleSaveConfig()">
|
||||||
|
<span>保存</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="baseline_ui.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
/**
|
||||||
|
* 泡沫轴交互控制逻辑 (无弹窗纯净版)
|
||||||
|
* 支持:已连接/未连接动态双态流转、真实倒计时启停与时长调节、动作/肌群/力量多维参数切换与保存。
|
||||||
|
*/
|
||||||
|
|
||||||
|
let isConnected = true;
|
||||||
|
let isRunning = false;
|
||||||
|
let totalSeconds = 178; // 默认 02:58
|
||||||
|
let timerInterval = null;
|
||||||
|
let currentMode = 'auto';
|
||||||
|
let currentAction = '游泳';
|
||||||
|
let currentMuscle = '前臂';
|
||||||
|
let currentStrength = 4;
|
||||||
|
|
||||||
|
const SVG_DISCONNECTED = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="60" viewBox="0 0 140 60"><ellipse cx="22" cy="30" rx="12" ry="20" fill="%23F1F5F9" stroke="%2394A3B8" stroke-width="2"/><rect x="22" y="10" width="96" height="40" rx="4" fill="%23F8FAFC" stroke="%23CBD5E1" stroke-width="2"/><ellipse cx="118" cy="30" rx="12" ry="20" fill="%23E2E8F0" stroke="%2394A3B8" stroke-width="2"/><line x1="38" y1="10" x2="38" y2="50" stroke="%23CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/><line x1="56" y1="10" x2="56" y2="50" stroke="%23CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/><line x1="74" y1="10" x2="74" y2="50" stroke="%23CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/><line x1="92" y1="10" x2="92" y2="50" stroke="%23CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/><circle cx="70" cy="30" r="8" fill="%2394A3B8"/></svg>`;
|
||||||
|
|
||||||
|
function formatTime(sec) {
|
||||||
|
const m = Math.floor(sec / 60).toString().padStart(2, '0');
|
||||||
|
const s = (sec % 60).toString().padStart(2, '0');
|
||||||
|
return `${m}:${s}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleNavBack() {
|
||||||
|
// 无弹窗直接返回
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleScanRefresh() {
|
||||||
|
const statusEl = document.getElementById('scanStatusText');
|
||||||
|
statusEl.innerText = '正在重新扫描周边设备...';
|
||||||
|
setTimeout(() => {
|
||||||
|
statusEl.innerText = '自动扫描中';
|
||||||
|
}, 1200);
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleConnectState() {
|
||||||
|
isConnected = !isConnected;
|
||||||
|
const img = document.getElementById('productImg');
|
||||||
|
const valId = document.getElementById('valId');
|
||||||
|
const valVer = document.getElementById('valVer');
|
||||||
|
const valBat = document.getElementById('valBat');
|
||||||
|
const btnToggle = document.getElementById('btnToggleConn');
|
||||||
|
const timer = document.getElementById('dispTimer');
|
||||||
|
const centerPanel = document.getElementById('centerTimerPanel');
|
||||||
|
const rightPanel = document.getElementById('rightConfigPanel');
|
||||||
|
|
||||||
|
if (isConnected) {
|
||||||
|
// 切换为已连接态 (显示真实 3D 渲染图)
|
||||||
|
img.src = 'fr100_setup_200.png';
|
||||||
|
img.className = 'fr100-product-img';
|
||||||
|
valId.innerText = '12EC';
|
||||||
|
valVer.innerText = 'V1.2.8';
|
||||||
|
valBat.className = 'battery-pill';
|
||||||
|
valBat.innerHTML = '<svg style="width:12px;height:12px;fill:currentColor;" viewBox="0 0 24 24"><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/></svg> <span id="batText">100%</span>';
|
||||||
|
btnToggle.innerText = '断开连接';
|
||||||
|
btnToggle.className = 'btn-mini btn-danger-outline';
|
||||||
|
totalSeconds = 178;
|
||||||
|
timer.innerText = formatTime(totalSeconds);
|
||||||
|
timer.classList.remove('dim-state');
|
||||||
|
centerPanel.classList.remove('disabled-panel-state');
|
||||||
|
rightPanel.classList.remove('disabled-panel-state');
|
||||||
|
} else {
|
||||||
|
// 切换为未连接态 (显示专属线框待连接图)
|
||||||
|
if (isRunning) handlePauseTimer();
|
||||||
|
img.src = SVG_DISCONNECTED;
|
||||||
|
img.className = 'fr100-disconnected-img';
|
||||||
|
valId.innerText = '--';
|
||||||
|
valVer.innerText = '--';
|
||||||
|
valBat.className = 'battery-pill dim';
|
||||||
|
valBat.innerHTML = '<span>未连接</span>';
|
||||||
|
btnToggle.innerText = '连接设备';
|
||||||
|
btnToggle.className = 'btn-mini btn-primary-blue';
|
||||||
|
timer.innerText = '00:00';
|
||||||
|
timer.classList.add('dim-state');
|
||||||
|
centerPanel.classList.add('disabled-panel-state');
|
||||||
|
rightPanel.classList.add('disabled-panel-state');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function connectDeviceItem(deviceName) {
|
||||||
|
if (!isConnected) {
|
||||||
|
toggleConnectState();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleStartTimer() {
|
||||||
|
if (!isConnected) return;
|
||||||
|
if (isRunning) return;
|
||||||
|
isRunning = true;
|
||||||
|
timerInterval = setInterval(() => {
|
||||||
|
if (totalSeconds > 0) {
|
||||||
|
totalSeconds--;
|
||||||
|
document.getElementById('dispTimer').innerText = formatTime(totalSeconds);
|
||||||
|
} else {
|
||||||
|
clearInterval(timerInterval);
|
||||||
|
isRunning = false;
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handlePauseTimer() {
|
||||||
|
if (!isRunning) return;
|
||||||
|
clearInterval(timerInterval);
|
||||||
|
isRunning = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectDurationItem(el, seconds) {
|
||||||
|
if (!isConnected) return;
|
||||||
|
document.querySelectorAll('#wheelPickerBox .wheel-item').forEach(item => item.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
if (!isRunning) {
|
||||||
|
totalSeconds = seconds;
|
||||||
|
document.getElementById('dispTimer').innerText = formatTime(totalSeconds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function setWorkMode(mode) {
|
||||||
|
if (!isConnected) return;
|
||||||
|
currentMode = mode;
|
||||||
|
const btnA = document.getElementById('btnModeAuto');
|
||||||
|
const btnM = document.getElementById('btnModeManual');
|
||||||
|
if (mode === 'auto') {
|
||||||
|
btnA.className = 'mode-cap-btn active-blue';
|
||||||
|
btnM.className = 'mode-cap-btn';
|
||||||
|
} else {
|
||||||
|
btnA.className = 'mode-cap-btn';
|
||||||
|
btnM.className = 'mode-cap-btn active-red';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectActionMatrix(el, actionName) {
|
||||||
|
if (!isConnected) return;
|
||||||
|
currentAction = actionName;
|
||||||
|
el.parentElement.querySelectorAll('.matrix-item').forEach(i => i.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectMuscleMatrix(el, muscleName) {
|
||||||
|
if (!isConnected) return;
|
||||||
|
currentMuscle = muscleName;
|
||||||
|
el.parentElement.querySelectorAll('.matrix-item').forEach(i => i.classList.remove('selected'));
|
||||||
|
el.classList.add('selected');
|
||||||
|
}
|
||||||
|
|
||||||
|
function setStrengthLevel(level, btn) {
|
||||||
|
if (!isConnected) return;
|
||||||
|
currentStrength = level;
|
||||||
|
document.querySelectorAll('.strength-grid .strength-btn').forEach(b => b.classList.remove('active'));
|
||||||
|
btn.classList.add('active');
|
||||||
|
const tag = document.getElementById('dispStrengthTag');
|
||||||
|
if (tag) tag.innerText = level + ' 档';
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleSaveConfig() {
|
||||||
|
if (!isConnected) return;
|
||||||
|
// 保存配置静默完成,按钮呈现短暂保存确认态
|
||||||
|
const btn = document.getElementById('btnSaveConfig');
|
||||||
|
const originText = btn.innerText;
|
||||||
|
btn.innerText = '已保存';
|
||||||
|
setTimeout(() => {
|
||||||
|
btn.innerText = originText;
|
||||||
|
}, 1200);
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# 泡沫轴 (Foam Roller) - 版本变更履历 (Changelog)
|
||||||
|
|
||||||
|
## [2.1.0] - 2026-08-18
|
||||||
|
|
||||||
|
### 优化与调整 (Refined & Optimized)
|
||||||
|
- **多语言国际化防溢出优化**:
|
||||||
|
- 重构【力量档位】设计:标题栏采用双段式(左侧标题,右侧动态高亮当前档位徽章如 `4 档`);
|
||||||
|
- 档位按钮升级为通用数字等宽分段键(`1` ~ `5`),彻底消除其他语种(德语、俄语、西班牙语等)长文本导致的挤压、遮挡与占位溢出风险。
|
||||||
|
- **去除按钮前置图标**:
|
||||||
|
- 【刷新设备】、【开始】、【暂停】、【保存】等所有操作按钮全面取消前置图标,呈现纯粹工控文字美学。
|
||||||
|
|
||||||
|
## [1.0.0] - 2026-08-18
|
||||||
|
|
||||||
|
### 🌟 初始现代化重构与全量 6 件套交付
|
||||||
|
- **官方实物渲染图接入**:
|
||||||
|
- 严格采用目录中的官方 3D 渲染图 `fr100_setup_200.png` 作为泡沫轴已连接状态的硬件展示图;
|
||||||
|
- 针对未连接态设计了专属线框插画,完美区分连接与待连接双态。
|
||||||
|
- **文案严格对齐真机原版**:
|
||||||
|
- 将中栏标题严格纠正为真机原版【开始】(剔除“训练计时”等额外字样);
|
||||||
|
- 将右栏标题严格纠正为真机原版【设备信息】;
|
||||||
|
- 力量档位严格呈现为【力量 : 1】~【力量 : 5】;
|
||||||
|
- 保存按钮严格呈现为【保存】。
|
||||||
|
- **三栏工控布局重构 (3-Column Layout)**:
|
||||||
|
- **左栏 (310px)**:已连接硬件状态卡片(ID、版本、100% 满电胶囊、刷新/断开按钮)+ 蓝牙周边雷达扫描发现列表(带 4 档信号条);
|
||||||
|
- **中栏 (1.15fr)**:02:58 超大数显计时器 + 3D 立体微凸时长滚轮(1:00分~5:00分)+ 开始/暂停控制组;
|
||||||
|
- **右栏 (1fr)**:自动/手动模式分段胶囊 + 动作模式/肌群双列立体滚轮矩阵 + 力量档位选择条 + 全宽保存按钮。
|
||||||
|
- **全真动态交互实现**:
|
||||||
|
- 支持点击【断开连接】/【连接设备】动态在已连接与未连接双态间平滑流转;
|
||||||
|
- 支持真实倒计时启动、暂停、跳秒与完成提示;
|
||||||
|
- 支持时长、动作、肌群、力量档位及模式的动态点选与保存反显。
|
||||||
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 315 KiB |
|
After Width: | Height: | Size: 107 KiB |
@@ -0,0 +1,39 @@
|
|||||||
|
# 游泳训练计划 - 交互工作台规范文档
|
||||||
|
|
||||||
|
## 1. 业务概述与架构
|
||||||
|
游泳训练计划模块为教练员与科研人员提供全流程的游泳训练计划制定、档案匹配、AI 负荷处方智能生成以及规则校验调整日志审计能力。
|
||||||
|
|
||||||
|
### 视图三位一体架构
|
||||||
|
1. **计划主列表视图 (`viewList`)**:
|
||||||
|
- 展现所有已制定的运动员游泳训练方案;
|
||||||
|
- 字段维度包含:创建时间、姓名、性别、年龄、运动员ID、训练等级(竞技级/初学者)、训练阶段(比赛期/GPP)、主要目标(恢复/耐力)、主要项目(长距离/50米)、计划类型(单次训练)及删除入口;
|
||||||
|
- **交互增强**:卡片在鼠标悬浮 (`:hover`) 或手指点击 (`:active` / `.selected`) 时自动高亮显现左侧品牌主色蓝(`#2563EB`)强调线,点击卡片直接进入该运动员的更新页面并真实回显数据;
|
||||||
|
- 底部悬浮图标按钮 (FABs):左下角圆形白底【时钟图标(调整日志)】、右下角圆形渐变蓝【加号图标(新建训练计划)】。
|
||||||
|
2. **新建/更新训练计划与 AI 处方中枢 (`viewEditor`)**:
|
||||||
|
- 双栏并排工作台(左侧 380px 档案表单,右侧 AI 分析与处方中枢);
|
||||||
|
- 左栏包含三大核心区块:
|
||||||
|
- **运动员信息**:用户名、性别、年龄、最大心率、运动员ID、教育阶段;
|
||||||
|
- **训练档案**:系统性训练时间 (年)、训练水平 (竞技级/专业级/初学者);
|
||||||
|
- **计划参数**:主要项目、训练阶段、主要目标、计划类型;
|
||||||
|
- 右栏中枢提供【更新训练计划】按钮,点击后触发 AI 计算模拟并生成个性化目标心率靶区(如 `138 ~ 156 bpm`)、单次总负荷量(如 `3,200 米 / 单次`)及分段结构化处方。
|
||||||
|
3. **调整日志视图 (`viewLogs`)**:
|
||||||
|
- 表头包含:时间、规则 (如 `R011`)、类型、运动员 (如 `108203`)、字段 (`primaryGoal`)、变更 (`Threshold` → `Recovery`)、原因 (`-`);
|
||||||
|
- 【自动调整】类型标签严格采用规定的琥珀黄色规范 (`#D97706` / `#FFFBEB` / `#FDE68A`)。
|
||||||
|
|
||||||
|
## 2. 核心设计规范 Tokens
|
||||||
|
| Token 类别 | 变量名 | 规范值 | 用途说明 |
|
||||||
|
| :--- | :--- | :--- | :--- |
|
||||||
|
| **品牌主色** | `--color-primary` | `#2563EB` | 激活卡片左侧边框、主按钮、高亮目标字段 |
|
||||||
|
| **主色暗调** | `--color-primary-dark` | `#1D4ED8` | 悬停态、主操作渐变深端 |
|
||||||
|
| **主色容器** | `--color-primary-light` | `#EFF6FF` | 高亮底色、悬浮卡片背景 |
|
||||||
|
| **主色边框** | `--color-primary-border` | `#DBEAFE` | 激活卡片外边框 |
|
||||||
|
| **告警黄色** | `--color-warning` | `#D97706` | 调整日志「自动调整」类型标签文字 |
|
||||||
|
| **黄色背景** | `--color-warning-bg` | `#FFFBEB` | 调整日志类型标签背景色 |
|
||||||
|
| **黄色边框** | `--color-warning-border` | `#FDE68A` | 调整日志类型标签外边框 |
|
||||||
|
| **危险红色** | `--color-danger` | `#E11D48` | 卡片「删除」按钮文字与悬停态 |
|
||||||
|
|
||||||
|
## 3. 文件构成清单
|
||||||
|
1. `baseline_ui.html`:三视图一体化结构模板与 DOM 槽位映射;
|
||||||
|
2. `baseline_ui.css`:工控响应式流式布局样式表与微交互动效;
|
||||||
|
3. `baseline_ui.js`:动态路由切换、数据回显、AI 处方计算与删除交互;
|
||||||
|
4. `image.png`:1200x800 高清交付截图。
|
||||||
@@ -0,0 +1,693 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
游泳训练计划 - 全局样式规范表 (baseline_ui.css)
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
/* 品牌核心主色体系 (锁定 #2563EB) */
|
||||||
|
--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-warning: #D97706;
|
||||||
|
--color-warning-bg: #FFFBEB;
|
||||||
|
--color-warning-border: #FDE68A;
|
||||||
|
|
||||||
|
--color-danger: #E11D48;
|
||||||
|
--color-danger-bg: #FFF1F2;
|
||||||
|
--color-danger-border: #FFE4E6;
|
||||||
|
|
||||||
|
--content-max-width: 1240px;
|
||||||
|
--content-gutter: clamp(14px, 2vw, 24px);
|
||||||
|
--appbar-height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
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: 740px;
|
||||||
|
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: 38px;
|
||||||
|
height: 38px;
|
||||||
|
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: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-left: 10px;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 视图容器 (View Container) */
|
||||||
|
.view-panel {
|
||||||
|
flex: 1;
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
background: #F8FAFC;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-panel.active {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 1:计划主列表 (List View)
|
||||||
|
========================================================================= */
|
||||||
|
.list-content {
|
||||||
|
padding: clamp(16px, 2vw, 24px);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
flex: 1;
|
||||||
|
padding-bottom: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-filter-bar {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sort-select-box {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
background: white;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
padding: 6px 14px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 13.5px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-main);
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,0.02);
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sort-select-box:hover {
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sort-select-box svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-count-badge {
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-list-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 计划卡片:默认无蓝色边条,悬浮(:hover)或选中(.selected)时自动高亮显现 */
|
||||||
|
.plan-card {
|
||||||
|
background: white;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
border-left: 4.5px solid transparent;
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 18px 20px;
|
||||||
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 14px;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-card:hover, .plan-card.selected, .plan-card:active {
|
||||||
|
border-left: 4.5px solid var(--color-primary) !important;
|
||||||
|
border-color: var(--color-primary-border);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
|
||||||
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid var(--divider);
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.athlete-title-group {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.athlete-name {
|
||||||
|
font-size: 16.5px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.athlete-id-badge {
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
background: #F1F5F9;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.athlete-meta-pill {
|
||||||
|
font-size: 12.5px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-time-stamp {
|
||||||
|
font-size: 12.5px;
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-metrics-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(5, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-col {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-col-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-col-val {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-col-val.sub {
|
||||||
|
font-size: 13.5px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-col-val.highlight-val {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-delete-link {
|
||||||
|
color: var(--color-danger);
|
||||||
|
font-size: 13.5px;
|
||||||
|
font-weight: 700;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-delete-link:hover {
|
||||||
|
background: var(--color-danger-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
悬浮图标按钮 (FABs) - 原生图标风格
|
||||||
|
========================================================================= */
|
||||||
|
.fab-log-btn {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 24px;
|
||||||
|
left: 24px;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: white;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--text-sub);
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fab-log-btn:hover {
|
||||||
|
background: var(--color-primary-light);
|
||||||
|
color: var(--color-primary);
|
||||||
|
border-color: var(--color-primary-border);
|
||||||
|
transform: scale(1.08);
|
||||||
|
box-shadow: 0 10px 24px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fab-log-btn svg {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fab-add-btn {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 24px;
|
||||||
|
right: 24px;
|
||||||
|
width: 52px;
|
||||||
|
height: 52px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--color-primary-gradient);
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 8px 22px var(--color-primary-glow);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fab-add-btn:hover {
|
||||||
|
transform: scale(1.08) translateY(-2px);
|
||||||
|
box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fab-add-btn svg {
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 2:新建/编辑训练计划表单与 AI 处方 (Editor View)
|
||||||
|
========================================================================= */
|
||||||
|
.editor-dual-grid {
|
||||||
|
padding: 20px;
|
||||||
|
flex: 1;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 380px 1fr;
|
||||||
|
gap: 18px;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-panel {
|
||||||
|
background: white;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
overflow-y: auto;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section + .form-section {
|
||||||
|
border-top: 1px solid var(--divider);
|
||||||
|
padding-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-label {
|
||||||
|
font-size: 12.5px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-input, .field-select {
|
||||||
|
height: 38px;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 0 12px;
|
||||||
|
font-size: 13.5px;
|
||||||
|
background: #F8FAFC;
|
||||||
|
outline: none;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-input:focus, .field-select:focus {
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
background: white;
|
||||||
|
box-shadow: 0 0 0 3px var(--color-primary-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-panel {
|
||||||
|
background: white;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 24px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 18px;
|
||||||
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-update-plan {
|
||||||
|
width: 100%;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: var(--color-primary-gradient);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 14px var(--color-primary-glow);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-update-plan:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-empty-state {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
color: var(--text-dim);
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-empty-title {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-empty-desc {
|
||||||
|
font-size: 13px;
|
||||||
|
max-width: 320px;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-prescription-box {
|
||||||
|
background: #F8FAFC;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 18px;
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-prescription-box.active {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-res-title {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-stat-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-stat-card {
|
||||||
|
background: white;
|
||||||
|
padding: 10px 14px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-stat-label {
|
||||||
|
color: var(--text-sub);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-stat-num {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-breakdown-card {
|
||||||
|
font-size: 12.5px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
line-height: 1.6;
|
||||||
|
background: white;
|
||||||
|
padding: 12px 14px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-bottom-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 10px;
|
||||||
|
border-top: 1px solid var(--divider);
|
||||||
|
padding-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-cancel {
|
||||||
|
height: 40px;
|
||||||
|
padding: 0 18px;
|
||||||
|
border: 1px solid var(--divider);
|
||||||
|
background: white;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--text-main);
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-cancel:hover {
|
||||||
|
background: #F1F5F9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-save {
|
||||||
|
height: 40px;
|
||||||
|
padding: 0 22px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-save:hover {
|
||||||
|
background: var(--color-primary-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================================================
|
||||||
|
视图 3:调整日志 (Logs View)
|
||||||
|
========================================================================= */
|
||||||
|
.log-body {
|
||||||
|
padding: 24px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-top-hint {
|
||||||
|
font-size: 13.5px;
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: separate;
|
||||||
|
border-spacing: 0;
|
||||||
|
background: white;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 1.5px solid var(--divider);
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-table th {
|
||||||
|
background: #F1F5F9;
|
||||||
|
padding: 12px 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-sub);
|
||||||
|
text-align: left;
|
||||||
|
border-bottom: 1px solid var(--divider);
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-table td {
|
||||||
|
padding: 14px 16px;
|
||||||
|
font-size: 13.5px;
|
||||||
|
border-bottom: 1px solid var(--divider);
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-auto-yellow {
|
||||||
|
background: var(--color-warning-bg);
|
||||||
|
color: var(--color-warning);
|
||||||
|
border: 1px solid var(--color-warning-border);
|
||||||
|
padding: 3px 10px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 12.5px;
|
||||||
|
font-weight: 700;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mono-font {
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bold-font {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-sub {
|
||||||
|
color: var(--text-sub);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toast 提示 */
|
||||||
|
.toast-msg {
|
||||||
|
position: absolute;
|
||||||
|
top: 68px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%) translateY(-20px);
|
||||||
|
background: #0F172A;
|
||||||
|
color: white;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-radius: 100px;
|
||||||
|
font-size: 13.5px;
|
||||||
|
font-weight: 600;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-msg.show {
|
||||||
|
transform: translateX(-50%) translateY(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>游泳训练计划</title>
|
||||||
|
<link rel="stylesheet" href="baseline_ui.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="device-wrapper">
|
||||||
|
<!-- 顶部 AppBar 导航 -->
|
||||||
|
<header class="appbar">
|
||||||
|
<div class="appbar-left">
|
||||||
|
<button class="appbar-nav" id="btnNavBack" onclick="navigateBack()" 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" id="pageTitle">游泳训练计划</h1>
|
||||||
|
</div>
|
||||||
|
<button class="appbar-more" title="更多选项">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- ================= 视图 1:计划主列表视图 ================= -->
|
||||||
|
<main class="view-panel active" id="viewList">
|
||||||
|
<div class="list-content">
|
||||||
|
<!-- 顶部排序与统计栏 -->
|
||||||
|
<div class="top-filter-bar">
|
||||||
|
<div class="sort-select-box" onclick="toggleSort()">
|
||||||
|
<span id="sortLabel">按创建时间降序</span>
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>
|
||||||
|
</div>
|
||||||
|
<div class="list-count-badge">共 <b>2</b> 条训练计划</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 训练计划卡片流 -->
|
||||||
|
<div class="plan-list-wrapper">
|
||||||
|
<!-- 卡片 1: 郑梅 (竞技级) -->
|
||||||
|
<div class="plan-card selected" id="card108203" onclick="openPlanEditor('108203')">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">郑梅</span>
|
||||||
|
<span class="athlete-id-badge">ID: 108203</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 22岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-18 09:52:09</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">竞技级</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">比赛期</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val highlight-val">恢复</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">长距离</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="event.stopPropagation(); deletePlan('郑梅', '108203')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 卡片 2: 吴静 (初学者) -->
|
||||||
|
<div class="plan-card" id="card103717" onclick="openPlanEditor('103717')">
|
||||||
|
<div class="card-header-row">
|
||||||
|
<div class="athlete-title-group">
|
||||||
|
<span class="athlete-name">吴静</span>
|
||||||
|
<span class="athlete-id-badge">ID: 103717</span>
|
||||||
|
<span class="athlete-meta-pill">女 ● 23岁</span>
|
||||||
|
</div>
|
||||||
|
<span class="plan-time-stamp">2026-08-17 12:12:26</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="plan-metrics-grid">
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练等级</span>
|
||||||
|
<span class="metric-col-val">初学者</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">训练阶段</span>
|
||||||
|
<span class="metric-col-val">GPP</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要目标</span>
|
||||||
|
<span class="metric-col-val highlight-val">耐力</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">主要项目</span>
|
||||||
|
<span class="metric-col-val sub">50米</span>
|
||||||
|
</div>
|
||||||
|
<div class="metric-col">
|
||||||
|
<span class="metric-col-label">计划类型</span>
|
||||||
|
<span class="metric-col-val sub">单次训练</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer-row">
|
||||||
|
<button class="btn-delete-link" onclick="event.stopPropagation(); deletePlan('吴静', '103717')">删除</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 悬浮图标按钮 (FABs) -->
|
||||||
|
<button class="fab-log-btn" title="查看调整日志" onclick="openLogsView()">
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/></svg>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="fab-add-btn" title="新建训练计划" onclick="openPlanEditor('new')">
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
||||||
|
</button>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- ================= 视图 2:新建/更新训练计划表单与 AI 处方中枢 ================= -->
|
||||||
|
<main class="view-panel" id="viewEditor">
|
||||||
|
<div class="editor-dual-grid">
|
||||||
|
<!-- 左侧档案与参数表单 -->
|
||||||
|
<div class="form-panel">
|
||||||
|
<!-- 1. 运动员信息 -->
|
||||||
|
<div class="form-section">
|
||||||
|
<h2 class="section-title">运动员信息</h2>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">用户名</span>
|
||||||
|
<input class="field-input" id="inpName" value="郑梅">
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">性别 *</span>
|
||||||
|
<select class="field-select" id="inpGender">
|
||||||
|
<option value="女">女</option>
|
||||||
|
<option value="男">男</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">年龄</span>
|
||||||
|
<input class="field-input" id="inpAge" type="number" value="22">
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">最大心率</span>
|
||||||
|
<input class="field-input" id="inpMaxHr" type="number" value="191">
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">运动员ID *</span>
|
||||||
|
<input class="field-input" id="inpId" value="108203">
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">教育阶段</span>
|
||||||
|
<select class="field-select" id="inpEdu">
|
||||||
|
<option value="大学">大学</option>
|
||||||
|
<option value="高中">高中</option>
|
||||||
|
<option value="初中">初中</option>
|
||||||
|
<option value="小学">小学</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 2. 训练档案 -->
|
||||||
|
<div class="form-section">
|
||||||
|
<h2 class="section-title">训练档案</h2>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">系统性训练时间 (年)</span>
|
||||||
|
<input class="field-input" id="inpExp" type="number" value="3">
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练水平 *</span>
|
||||||
|
<select class="field-select" id="inpLevel">
|
||||||
|
<option value="竞技级">竞技级</option>
|
||||||
|
<option value="专业级">专业级</option>
|
||||||
|
<option value="初学者">初学者</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 3. 计划参数 -->
|
||||||
|
<div class="form-section">
|
||||||
|
<h2 class="section-title">计划参数</h2>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要项目 *</span>
|
||||||
|
<select class="field-select" id="inpEvent">
|
||||||
|
<option value="长距离">长距离</option>
|
||||||
|
<option value="50米自由泳">50米自由泳</option>
|
||||||
|
<option value="100米自由泳">100米自由泳</option>
|
||||||
|
<option value="200米混合泳">200米混合泳</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">训练阶段</span>
|
||||||
|
<select class="field-select" id="inpStage">
|
||||||
|
<option value="比赛期">比赛期</option>
|
||||||
|
<option value="GPP">GPP</option>
|
||||||
|
<option value="SPP">SPP</option>
|
||||||
|
<option value="恢复期">恢复期</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">主要目标</span>
|
||||||
|
<select class="field-select" id="inpGoal">
|
||||||
|
<option value="恢复">恢复</option>
|
||||||
|
<option value="耐力">耐力</option>
|
||||||
|
<option value="乳酸门槛">乳酸门槛</option>
|
||||||
|
<option value="冲刺爆发">冲刺爆发</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="field-item">
|
||||||
|
<span class="field-label">计划类型</span>
|
||||||
|
<select class="field-select" id="inpType">
|
||||||
|
<option value="单次训练">单次训练</option>
|
||||||
|
<option value="周周期计划">周周期计划</option>
|
||||||
|
<option value="月度计划">月度计划</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 右侧 AI 计算与处方中枢 -->
|
||||||
|
<div class="ai-panel">
|
||||||
|
<div>
|
||||||
|
<button class="btn-update-plan" onclick="runAiAnalysis()">更新训练计划</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- AI 未执行空白态 -->
|
||||||
|
<div id="aiEmptyState" class="ai-empty-state">
|
||||||
|
<div class="ai-empty-title">AI分析尚未执行</div>
|
||||||
|
<div class="ai-empty-desc">点击上方「更新训练计划」按钮,系统将根据左侧填写的档案参数智能生成个性化训练负荷与心率配比。</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- AI 计算结果处方 -->
|
||||||
|
<div id="aiResultBox" class="ai-prescription-box">
|
||||||
|
<div class="ai-res-title">AI 智能训练处方已就绪</div>
|
||||||
|
<div class="ai-stat-grid">
|
||||||
|
<div class="ai-stat-card">
|
||||||
|
<div class="ai-stat-label">目标心率靶区</div>
|
||||||
|
<div class="ai-stat-num" id="resHrRange">138 ~ 156 bpm</div>
|
||||||
|
</div>
|
||||||
|
<div class="ai-stat-card">
|
||||||
|
<div class="ai-stat-label">建议总负荷量</div>
|
||||||
|
<div class="ai-stat-num" id="resVolume">3,200 米 / 单次</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="ai-breakdown-card" id="resBreakdown">
|
||||||
|
<b>训练结构分配:</b>热身 400m(心率 120-135) ➔ 有氧耐力主项 2000m(配速 1:18/100m) ➔ 专项技术 400m ➔ 放松恢复 400m。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 底部控制栏 -->
|
||||||
|
<div class="editor-bottom-bar">
|
||||||
|
<button class="btn-cancel" onclick="navigateBack()">取消</button>
|
||||||
|
<button class="btn-save" onclick="savePlan()">保存并应用</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!-- ================= 视图 3:调整日志视图 ================= -->
|
||||||
|
<main class="view-panel" id="viewLogs">
|
||||||
|
<div class="log-body">
|
||||||
|
<div class="log-top-hint">查看所有规则校验调整记录</div>
|
||||||
|
<table class="log-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>时间</th>
|
||||||
|
<th>规则</th>
|
||||||
|
<th>类型</th>
|
||||||
|
<th>运动员</th>
|
||||||
|
<th>字段</th>
|
||||||
|
<th>变更</th>
|
||||||
|
<th>原因</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="mono-font">1787017929</td>
|
||||||
|
<td class="bold-font">R011</td>
|
||||||
|
<td><span class="tag-auto-yellow">自动调整</span></td>
|
||||||
|
<td class="mono-font bold-font">108203</td>
|
||||||
|
<td>primaryGoal</td>
|
||||||
|
<td><b>Threshold</b> → <b>Recovery</b></td>
|
||||||
|
<td class="text-sub">-</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="baseline_ui.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,183 @@
|
|||||||
|
/**
|
||||||
|
* 游泳训练计划 - 核心交互逻辑 (无弹窗纯净版)
|
||||||
|
*/
|
||||||
|
|
||||||
|
let currentView = 'viewList';
|
||||||
|
let sortDescending = true;
|
||||||
|
|
||||||
|
// 预置运动员计划数据
|
||||||
|
const athletePlans = {
|
||||||
|
'108203': {
|
||||||
|
name: '郑梅',
|
||||||
|
gender: '女',
|
||||||
|
age: 22,
|
||||||
|
maxHr: 191,
|
||||||
|
id: '108203',
|
||||||
|
edu: '大学',
|
||||||
|
exp: 3,
|
||||||
|
level: '竞技级',
|
||||||
|
event: '长距离',
|
||||||
|
stage: '比赛期',
|
||||||
|
goal: '恢复',
|
||||||
|
type: '单次训练',
|
||||||
|
createdTime: '2026-08-18 09:52:09',
|
||||||
|
prescription: {
|
||||||
|
hrRange: '138 ~ 156 bpm',
|
||||||
|
volume: '3,200 米 / 单次',
|
||||||
|
breakdown: '<b>训练结构分配:</b>热身 400m(心率 120-135) ➔ 有氧耐力主项 2000m(配速 1:18/100m) ➔ 专项技术 400m ➔ 放松恢复 400m。'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'103717': {
|
||||||
|
name: '吴静',
|
||||||
|
gender: '女',
|
||||||
|
age: 23,
|
||||||
|
maxHr: 188,
|
||||||
|
id: '103717',
|
||||||
|
edu: '大学',
|
||||||
|
exp: 1,
|
||||||
|
level: '初学者',
|
||||||
|
event: '50米自由泳',
|
||||||
|
stage: 'GPP',
|
||||||
|
goal: '耐力',
|
||||||
|
type: '单次训练',
|
||||||
|
createdTime: '2026-08-17 12:12:26',
|
||||||
|
prescription: {
|
||||||
|
hrRange: '125 ~ 145 bpm',
|
||||||
|
volume: '1,800 米 / 单次',
|
||||||
|
breakdown: '<b>训练结构分配:</b>基础热身 300m ➔ 基础技术分解 600m ➔ 有氧耐力 600m ➔ 放松 300m。'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 视图切换控制
|
||||||
|
*/
|
||||||
|
function switchView(targetViewId, title) {
|
||||||
|
currentView = targetViewId;
|
||||||
|
document.querySelectorAll('.view-panel').forEach(p => p.classList.remove('active'));
|
||||||
|
const targetEl = document.getElementById(targetViewId);
|
||||||
|
if (targetEl) targetEl.classList.add('active');
|
||||||
|
const titleEl = document.getElementById('pageTitle');
|
||||||
|
if (titleEl) titleEl.innerText = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 点击顶部返回按钮
|
||||||
|
*/
|
||||||
|
function navigateBack() {
|
||||||
|
if (currentView !== 'viewList') {
|
||||||
|
switchView('viewList', '游泳训练计划');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打开计划编辑/新建页面
|
||||||
|
*/
|
||||||
|
function openPlanEditor(athleteId) {
|
||||||
|
// 高亮当前选中卡片
|
||||||
|
document.querySelectorAll('.plan-card').forEach(c => c.classList.remove('selected'));
|
||||||
|
const cardEl = document.getElementById('card' + athleteId);
|
||||||
|
if (cardEl) cardEl.classList.add('selected');
|
||||||
|
|
||||||
|
const emptyState = document.getElementById('aiEmptyState');
|
||||||
|
const resultBox = document.getElementById('aiResultBox');
|
||||||
|
|
||||||
|
if (athleteId && athletePlans[athleteId]) {
|
||||||
|
const data = athletePlans[athleteId];
|
||||||
|
document.getElementById('inpName').value = data.name;
|
||||||
|
document.getElementById('inpGender').value = data.gender;
|
||||||
|
document.getElementById('inpAge').value = data.age;
|
||||||
|
document.getElementById('inpMaxHr').value = data.maxHr;
|
||||||
|
document.getElementById('inpId').value = data.id;
|
||||||
|
document.getElementById('inpEdu').value = data.edu;
|
||||||
|
document.getElementById('inpExp').value = data.exp;
|
||||||
|
document.getElementById('inpLevel').value = data.level;
|
||||||
|
document.getElementById('inpEvent').value = data.event;
|
||||||
|
document.getElementById('inpStage').value = data.stage;
|
||||||
|
document.getElementById('inpGoal').value = data.goal;
|
||||||
|
document.getElementById('inpType').value = data.type;
|
||||||
|
|
||||||
|
if (emptyState) emptyState.style.display = 'flex';
|
||||||
|
if (resultBox) resultBox.classList.remove('active');
|
||||||
|
} else {
|
||||||
|
// 新建计划空白态
|
||||||
|
document.getElementById('inpName').value = '';
|
||||||
|
document.getElementById('inpAge').value = '';
|
||||||
|
document.getElementById('inpMaxHr').value = '';
|
||||||
|
document.getElementById('inpId').value = '';
|
||||||
|
document.getElementById('inpExp').value = '';
|
||||||
|
if (emptyState) emptyState.style.display = 'flex';
|
||||||
|
if (resultBox) resultBox.classList.remove('active');
|
||||||
|
}
|
||||||
|
|
||||||
|
switchView('viewEditor', '游泳训练计划');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打开调整日志页面
|
||||||
|
*/
|
||||||
|
function openLogsView() {
|
||||||
|
switchView('viewLogs', '调整日志');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运行 AI 训练计划生成 (无弹窗平滑渲染)
|
||||||
|
*/
|
||||||
|
function runAiAnalysis() {
|
||||||
|
const btn = document.querySelector('.btn-update-plan');
|
||||||
|
const originText = btn.innerText;
|
||||||
|
btn.innerText = '计算中...';
|
||||||
|
setTimeout(() => {
|
||||||
|
const emptyState = document.getElementById('aiEmptyState');
|
||||||
|
const resultBox = document.getElementById('aiResultBox');
|
||||||
|
if (emptyState) emptyState.style.display = 'none';
|
||||||
|
if (resultBox) resultBox.classList.add('active');
|
||||||
|
|
||||||
|
const id = document.getElementById('inpId').value;
|
||||||
|
if (athletePlans[id] && athletePlans[id].prescription) {
|
||||||
|
document.getElementById('resHrRange').innerText = athletePlans[id].prescription.hrRange;
|
||||||
|
document.getElementById('resVolume').innerText = athletePlans[id].prescription.volume;
|
||||||
|
document.getElementById('resBreakdown').innerHTML = athletePlans[id].prescription.breakdown;
|
||||||
|
}
|
||||||
|
btn.innerText = originText;
|
||||||
|
}, 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存并应用训练计划
|
||||||
|
*/
|
||||||
|
function savePlan() {
|
||||||
|
const btn = document.querySelector('.btn-save');
|
||||||
|
const originText = btn.innerText;
|
||||||
|
btn.innerText = '已保存';
|
||||||
|
setTimeout(() => {
|
||||||
|
btn.innerText = originText;
|
||||||
|
navigateBack();
|
||||||
|
}, 600);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除训练计划
|
||||||
|
*/
|
||||||
|
function deletePlan(name, id) {
|
||||||
|
const cardEl = document.getElementById('card' + id);
|
||||||
|
if (cardEl) {
|
||||||
|
cardEl.style.transition = 'all 0.3s ease';
|
||||||
|
cardEl.style.opacity = '0';
|
||||||
|
cardEl.style.transform = 'scale(0.95)';
|
||||||
|
setTimeout(() => {
|
||||||
|
cardEl.remove();
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换排序方式
|
||||||
|
*/
|
||||||
|
function toggleSort() {
|
||||||
|
sortDescending = !sortDescending;
|
||||||
|
const label = document.getElementById('sortLabel');
|
||||||
|
if (label) {
|
||||||
|
label.innerText = sortDescending ? '按创建时间降序' : '按创建时间升序';
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# 变更日志 (Changelog) - 游泳训练计划
|
||||||
|
|
||||||
|
## [2.0.0] - 2026-08-18
|
||||||
|
|
||||||
|
### 新增与重构 (Added & Refactored)
|
||||||
|
- **三视图三位一体架构交付**:
|
||||||
|
- 主列表视图:对齐 4 张原始真机截屏中的全部数据槽位,卡片悬浮与点击自动高亮蓝色列前指示条;
|
||||||
|
- 新建/更新双栏中枢:左侧 380px 完整录入 12 项运动员生理与训练参数,右侧集成 AI 训练计划智能生成中枢与分段处方结构;
|
||||||
|
- 调整日志视图:对齐规则校验审计表格字段。
|
||||||
|
- **视觉与交互规范深度纠偏**:
|
||||||
|
- 剔除卡片中杂色(如初学者绿色穿插),统一采用规范主色蓝体系;
|
||||||
|
- 悬浮 FAB 按钮严格对齐真机圆形图标设计(左下角时钟日志图标,右下角加号新建图标);
|
||||||
|
- 调整日志中「自动调整」类型标签严格采用规定的黄色规范 (`#D97706` / `#FFFBEB` / `#FDE68A`);
|
||||||
|
- 实现全真交互跳转:点击列表卡片直达该运动员更新页面并真实回显数据,支持 AI 处方实时计算模拟。
|
||||||
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 193 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
After Width: | Height: | Size: 65 KiB |