chore: save preview bakeoff prototypes for swimming plan
@@ -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 |