diff --git a/.preview/foam_roller/fr100_setup_200.png b/.preview/foam_roller/fr100_setup_200.png new file mode 100644 index 0000000..d80854e Binary files /dev/null and b/.preview/foam_roller/fr100_setup_200.png differ diff --git a/.preview/foam_roller/option_1_subview_disconnected.html b/.preview/foam_roller/option_1_subview_disconnected.html new file mode 100644 index 0000000..ad2f6db --- /dev/null +++ b/.preview/foam_roller/option_1_subview_disconnected.html @@ -0,0 +1,220 @@ + + + + + +泡沫轴 - 方案 1A (子视图 · 未连接/待机态) + + + +
+
+
+ +

泡沫轴

+
+ +
+ +
+ +
+
+
+ +
+ + + + + + + + + + +
+ +
+
ID:--
+
版本:--
+
电量:未连接
+
+
+ +
+ + +
+
+ +
+
+ 📡 周边设备列表 + 点击直连 +
+
+ FR100-12EC + 点击连接 ➔ +
+
+ FR100-1776 + 信号弱 +
+
+
+ + +
+
+

开始

+
+ +
+
00:00
+
请先在左侧连接泡沫轴硬件设备
+
+ +
+ + +
+
+ + +
+
+

设备信息

+
+ 暂无连接设备,请点击左侧列表中的「FR100-12EC」建立蓝牙配对后配置训练参数。 +
+
+ + +
+
+
+ + diff --git a/.preview/foam_roller/option_1_tri_column_studio.html b/.preview/foam_roller/option_1_tri_column_studio.html new file mode 100644 index 0000000..024f660 --- /dev/null +++ b/.preview/foam_roller/option_1_tri_column_studio.html @@ -0,0 +1,506 @@ + + + + + +泡沫轴 - 方案 1:三栏专业工控工作台 (推荐·家族风) + + + +
+
+
+ +

泡沫轴

+
+ +
+ +
+ +
+
+
+ +
+ + + + + + + + + + + +
+ +
+
+ ID: + 12EC +
+
+ 版本: + V1.2.8 +
+
+ 电量: + + + 100% + +
+
+
+ +
+ + +
+
+ + +
+
+ 📡 周边设备列表 + 自动扫描中 +
+
+ FR100-12EC +
+
+
+
+
+
+
+
+ FR100-1776 +
+
+
+
+
+
+
+
+
+ + +
+
+

+ ⏱️ 训练计时 + 工作态 +

+
+ +
+
02:58
+ +
+
1 : 00 分
+
2 : 00 分
+
3 : 00 分
+
4 : 00 分
+
5 : 00 分
+
+
+ +
+ + +
+
+ + +
+
+

+ ⚙️ 设备信息与模式 +

+ + +
+ + +
+ + +
+
+
动作模式
+
徒步
+
骑行
+
游泳
+
瑜伽
+
拳击
+
+ +
+
肌群选择
+
大腿
+
背阔肌
+
前臂
+
背部
+
足部
+
+
+ + +
+
力量档位调节
+
+ + + + + +
+
+
+ +
+ +
+
+
+
+ + + + diff --git a/.preview/foam_roller/option_2_fluid_bento_station.html b/.preview/foam_roller/option_2_fluid_bento_station.html new file mode 100644 index 0000000..26495c5 --- /dev/null +++ b/.preview/foam_roller/option_2_fluid_bento_station.html @@ -0,0 +1,77 @@ + + + + + +泡沫轴 - 方案 2:Fluid Bento Station (磁贴流式分区) + + + +
+
+
+ +

泡沫轴

+
+
+ +
+
+

设备状态 (12EC)

+
电量 100% · 版本 V1.2.8
+
+ + +
+
+ +
+

倒计时训练

+
02:58
+
+ + +
+
+ +
+

动作与肌群

+
+
动作:游泳
+
肌群:前臂
+
力量:4 档
+
+ +
+
+
+ + diff --git a/.preview/foam_roller/option_3_cyber_hud_cockpit.html b/.preview/foam_roller/option_3_cyber_hud_cockpit.html new file mode 100644 index 0000000..caf8191 --- /dev/null +++ b/.preview/foam_roller/option_3_cyber_hud_cockpit.html @@ -0,0 +1,76 @@ + + + + + +泡沫轴 - 方案 3:Cyber HUD 极客暗黑中枢 + + + +
+
+
+ +

⚡ 泡沫轴 HUD

+
+
+ +
+
+

设备遥测 (12EC)

+
固件 V1.2.8 · 电量 100%
+
+ + +
+
+ +
+

倒计时

+
02:58
+
+ + +
+
+ +
+

参数矩阵

+
游泳 · 前臂 · 力量 4
+ +
+
+
+ + diff --git a/.preview/foam_roller/option_4_nordic_slate_minimal.html b/.preview/foam_roller/option_4_nordic_slate_minimal.html new file mode 100644 index 0000000..90a49e3 --- /dev/null +++ b/.preview/foam_roller/option_4_nordic_slate_minimal.html @@ -0,0 +1,68 @@ + + + + + +泡沫轴 - 方案 4:Nordic Slate 极净工业卡 + + + +
+
+

泡沫轴

+
+
+
+
+

设备状态 (12EC)

+

V1.2.8 · 100% 电量

+
+
+ + +
+
+
+

倒计时

+
02:58
+
+ + +
+
+
+

训练参数

+
自动模式 · 游泳 · 前臂 · 力量 4
+ +
+
+
+ + diff --git a/.preview/foam_roller/option_5_segmented_stream_flow.html b/.preview/foam_roller/option_5_segmented_stream_flow.html new file mode 100644 index 0000000..b6d4303 --- /dev/null +++ b/.preview/foam_roller/option_5_segmented_stream_flow.html @@ -0,0 +1,57 @@ + + + + + +泡沫轴 - 方案 5:Segmented Stream 胶囊步进流 + + + +
+
+

泡沫轴 · 步进中枢

+
+
+
+

1. 选定设备

+

FR100-12EC 已连接

+ +
+
+

2. 设置时长

+
02:58
+ +
+
+

3. 模式与力量

+

自动 · 游泳 · 力量 4

+ +
+
+
+ + diff --git a/.preview/foam_roller/preview_bakeoff.html b/.preview/foam_roller/preview_bakeoff.html new file mode 100644 index 0000000..870a254 --- /dev/null +++ b/.preview/foam_roller/preview_bakeoff.html @@ -0,0 +1,79 @@ + + + + + +泡沫轴 - 方案1的5套深度细化方案决策中心 + + + +
+
+ 🛹 泡沫轴 · 方案1的5套细化方案决策中心 + 搭载官方 FR100 产品渲染图 +
+
+ + + + + +
+
+ +
+ +
+ + + + diff --git a/.preview/foam_roller/shot_opt1.png b/.preview/foam_roller/shot_opt1.png new file mode 100644 index 0000000..e25c8eb Binary files /dev/null and b/.preview/foam_roller/shot_opt1.png differ diff --git a/.preview/foam_roller/shot_opt1_disconnected.png b/.preview/foam_roller/shot_opt1_disconnected.png new file mode 100644 index 0000000..47a858e Binary files /dev/null and b/.preview/foam_roller/shot_opt1_disconnected.png differ diff --git a/.preview/foam_roller/shot_opt2.png b/.preview/foam_roller/shot_opt2.png new file mode 100644 index 0000000..a1512c9 Binary files /dev/null and b/.preview/foam_roller/shot_opt2.png differ diff --git a/.preview/foam_roller/shot_opt3.png b/.preview/foam_roller/shot_opt3.png new file mode 100644 index 0000000..06adb0f Binary files /dev/null and b/.preview/foam_roller/shot_opt3.png differ diff --git a/.preview/foam_roller/shot_opt4.png b/.preview/foam_roller/shot_opt4.png new file mode 100644 index 0000000..7ca2947 Binary files /dev/null and b/.preview/foam_roller/shot_opt4.png differ diff --git a/.preview/foam_roller/shot_opt5.png b/.preview/foam_roller/shot_opt5.png new file mode 100644 index 0000000..549f27c Binary files /dev/null and b/.preview/foam_roller/shot_opt5.png differ diff --git a/.preview/foam_roller/shot_var1a.png b/.preview/foam_roller/shot_var1a.png new file mode 100644 index 0000000..df48750 Binary files /dev/null and b/.preview/foam_roller/shot_var1a.png differ diff --git a/.preview/foam_roller/shot_var1b.png b/.preview/foam_roller/shot_var1b.png new file mode 100644 index 0000000..e841d8e Binary files /dev/null and b/.preview/foam_roller/shot_var1b.png differ diff --git a/.preview/foam_roller/shot_var1c.png b/.preview/foam_roller/shot_var1c.png new file mode 100644 index 0000000..091e439 Binary files /dev/null and b/.preview/foam_roller/shot_var1c.png differ diff --git a/.preview/foam_roller/shot_var1d.png b/.preview/foam_roller/shot_var1d.png new file mode 100644 index 0000000..7b6f34a Binary files /dev/null and b/.preview/foam_roller/shot_var1d.png differ diff --git a/.preview/foam_roller/shot_var1e.png b/.preview/foam_roller/shot_var1e.png new file mode 100644 index 0000000..5d50e3f Binary files /dev/null and b/.preview/foam_roller/shot_var1e.png differ diff --git a/.preview/foam_roller/variant_1a_pro_industrial.html b/.preview/foam_roller/variant_1a_pro_industrial.html new file mode 100644 index 0000000..55ec6f1 --- /dev/null +++ b/.preview/foam_roller/variant_1a_pro_industrial.html @@ -0,0 +1,440 @@ + + + + + +泡沫轴 - 方案 1A:经典工控立体滚轮 (推荐·已连接态/未连接态区分) + + + +
+
+
+ +

泡沫轴

+
+ +
+ +
+ +
+
+
+ + FR100 Foam Roller + +
+
ID:12EC
+
版本:V1.2.8
+
+ 电量: + + + 100% + +
+
+
+ +
+ + +
+
+ + +
+
+ 📡 周边设备列表 + 自动扫描中 +
+
+ FR100-12EC +
+
+
+
+
+
+
+
+ FR100-1776 +
+
+
+
+
+
+
+
+
+ + +
+
+

开始

+
+ +
+
02:58
+ +
+
1 : 00 分
+
2 : 00 分
+
3 : 00 分
+
4 : 00 分
+
5 : 00 分
+
+
+ +
+ + +
+
+ + +
+
+

设备信息

+ +
+ + +
+ +
+
+
动作模式
+
徒步
+
骑行
+
游泳
+
瑜伽
+
拳击
+
+ +
+
肌群
+
大腿
+
背阔肌
+
前臂
+
背部
+
足部
+
+
+ +
+
力量档位
+
+ + + + + +
+
+
+ +
+ +
+
+
+
+ + + + diff --git a/.preview/foam_roller/variant_1b_modern_smooth.html b/.preview/foam_roller/variant_1b_modern_smooth.html new file mode 100644 index 0000000..0b0fe20 --- /dev/null +++ b/.preview/foam_roller/variant_1b_modern_smooth.html @@ -0,0 +1,143 @@ + + + + + +泡沫轴 - 方案 1B:现代极简平滑流 (Modern Smooth Studio) + + + +
+
+
+ +

泡沫轴 · 现代平滑版

+
+
+ +
+ +
+
+ FR100 +
+
设备 ID12EC
+
固件版本V1.2.8
+
剩余电量100% 满电
+
+
+
+ 周边设备 +
+ FR100-12EC + 已直连 +
+
+
+ + +
+
+ + +
+
+ 训练计时 + 运行中 +
+
+
02:58
+
+ 1分 + 2分 + 3分 + 4分 + 5分 +
+
+
+ + +
+
+ + +
+
+ 模式与参数 +
+ 自动 + 手动 +
+
+
+
+ 动作模式 +
+ 徒步 + 骑行 + 游泳 + 瑜伽 +
+
+
+ 肌群选择 +
+ 大腿 + 背阔肌 + 前臂 + 背部 +
+
+
+ 力量档位 (当前 4 档) +
+ + + + + +
+
+
+ +
+
+
+ + diff --git a/.preview/foam_roller/variant_1c_visual_graphic.html b/.preview/foam_roller/variant_1c_visual_graphic.html new file mode 100644 index 0000000..d3243e2 --- /dev/null +++ b/.preview/foam_roller/variant_1c_visual_graphic.html @@ -0,0 +1,120 @@ + + + + + +泡沫轴 - 方案 1C:数据看板与环形进度 (Visual Graphic Station) + + + +
+
+
+ +

泡沫轴 · 环形看板版

+
+
+ +
+ +
+
+ FR100 +
+
设备型号FR100-12EC
+
软件版本V1.2.8
+
电池状态100% 正常
+
+
+
+ + +
+
+ + +
+
倒计时训练
+
+ + + + +
+ 02:58 + 设定时长: 3:00分 +
+
+
+ + +
+
+ + +
+ 动作与肌群指示 +
+
+
+
当前动作
+
🏊 游泳训练
+
+
+
目标肌群
+
💪 前臂肌群
+
+
+ +
+ 振动强度 (4档) +
+ + + + + +
+
+
+ +
+
+
+ + diff --git a/.preview/foam_roller/variant_1d_compact_precision.html b/.preview/foam_roller/variant_1d_compact_precision.html new file mode 100644 index 0000000..4d0ba64 --- /dev/null +++ b/.preview/foam_roller/variant_1d_compact_precision.html @@ -0,0 +1,82 @@ + + + + + +泡沫轴 - 方案 1D:紧凑高对比工控 (Compact Precision) + + + +
+
+

泡沫轴 · 紧凑工控台

+
+ +
+
+
+ FR100 +
+
设备:12EC
+
版本:V1.2.8
+
电量:100%
+
+
+
+ + +
+
+ +
+ 倒计时 (分) +
02:58
+
+ + +
+
+ +
+ 参数配置 +
+
模式:自动模式
+
动作:游泳
+
肌群:前臂
+
力量:4 档
+
+ +
+
+
+ + diff --git a/.preview/foam_roller/variant_1e_inset_cockpit.html b/.preview/foam_roller/variant_1e_inset_cockpit.html new file mode 100644 index 0000000..2c77c83 --- /dev/null +++ b/.preview/foam_roller/variant_1e_inset_cockpit.html @@ -0,0 +1,80 @@ + + + + + +泡沫轴 - 方案 1E:分段卡片磁吸流 (Inset Cockpit) + + + +
+
+

泡沫轴 · 磁吸座舱版

+
+ +
+
+
+ FR100 +
+ FR100-12EC · V1.2.8 · 100% +
+
+
+ + +
+
+ +
+ 训练计时 +
02:58
+
+ + +
+
+ +
+ 参数设置 +
+
模式:自动模式
+
动作:游泳
+
肌群:前臂
+
力量:4 档
+
+ +
+
+
+ + diff --git a/主页面_四个下拉选项页面/泡沫轴/README.md b/主页面_四个下拉选项页面/泡沫轴/README.md new file mode 100644 index 0000000..25d7582 --- /dev/null +++ b/主页面_四个下拉选项页面/泡沫轴/README.md @@ -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 # 版本变更与重构履历 +``` diff --git a/主页面_四个下拉选项页面/泡沫轴/baseline_ui.css b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.css new file mode 100644 index 0000000..f856eb3 --- /dev/null +++ b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.css @@ -0,0 +1,264 @@ +/* ========================================================================= + 泡沫轴 - 工控交互工作台样式规范 (严格基于 #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: 6px; } +.strength-title { font-size: 12.5px; font-weight: 700; color: var(--text-sub); } +.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: 12px; font-weight: 700; color: var(--text-sub); cursor: pointer; display: flex; align-items: center; + justify-content: center; transition: all 0.15s ease; +} +.strength-btn:hover { border-color: var(--color-primary); } +.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); } + +/* 禁用与弱化保护态 */ +.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; +} diff --git a/主页面_四个下拉选项页面/泡沫轴/baseline_ui.html b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.html new file mode 100644 index 0000000..a31d851 --- /dev/null +++ b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.html @@ -0,0 +1,176 @@ + + + + + +泡沫轴 - EAP 工控系统交互工作台 + + + +
+ +
+
+ +

泡沫轴

+
+ +
+ + +
+ +
+
+
+ + FR100 Foam Roller + +
+
+ ID: + 12EC +
+
+ 版本: + V1.2.8 +
+
+ 电量: + + + 100% + +
+
+
+ +
+ + +
+
+ + +
+
+ 📡 周边设备列表 + 自动扫描中 +
+
+ FR100-12EC +
+
+
+
+
+
+
+
+ FR100-1776 +
+
+
+
+
+
+
+
+
+ + +
+
+

开始

+
+ +
+
02:58
+ +
+
1 : 00 分
+
2 : 00 分
+
3 : 00 分
+
4 : 00 分
+
5 : 00 分
+
+
+ +
+ + +
+
+ + +
+
+

设备信息

+ + +
+ + +
+ + +
+
+
动作模式
+
徒步
+
骑行
+
游泳
+
瑜伽
+
拳击
+
+ +
+
肌群
+
大腿
+
背阔肌
+
前臂
+
背部
+
足部
+
+
+ + +
+
力量档位
+
+ + + + + +
+
+
+ +
+ +
+
+
+ + +
+
+ + + + diff --git a/主页面_四个下拉选项页面/泡沫轴/baseline_ui.js b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.js new file mode 100644 index 0000000..bf29b4d --- /dev/null +++ b/主页面_四个下拉选项页面/泡沫轴/baseline_ui.js @@ -0,0 +1,178 @@ +/** + * 泡沫轴交互控制逻辑 + * 支持:已连接/未连接动态双态流转、真实倒计时启停与时长调节、动作/肌群/力量多维参数切换与保存。 + */ + +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,`; + +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 showToast(msg) { + const t = document.getElementById('toastMessage'); + t.innerText = msg; + t.classList.add('show'); + setTimeout(() => t.classList.remove('show'), 2200); +} + +function handleNavBack() { + showToast('返回上一级主页面'); +} + +function handleScanRefresh() { + const statusEl = document.getElementById('scanStatusText'); + statusEl.innerText = '正在重新扫描周边设备...'; + showToast('正在扫描周边可用蓝牙设备...'); + 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 = ' 100%'; + 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'); + showToast('已成功连接泡沫轴 FR100-12EC'); + } else { + // 切换为未连接态 (显示专属线框待连接图) + if (isRunning) handlePauseTimer(); + img.src = SVG_DISCONNECTED; + img.className = 'fr100-disconnected-img'; + valId.innerText = '--'; + valVer.innerText = '--'; + valBat.className = 'battery-pill dim'; + valBat.innerHTML = '未连接'; + 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'); + showToast('已断开与泡沫轴硬件设备的连接'); + } +} + +function connectDeviceItem(deviceName) { + if (!isConnected) { + toggleConnectState(); + } else { + showToast(`当前已连接到设备:${deviceName}`); + } +} + +function handleStartTimer() { + if (!isConnected) { + showToast('请先连接泡沫轴设备'); + return; + } + if (isRunning) return; + isRunning = true; + showToast('泡沫轴训练已开始!'); + timerInterval = setInterval(() => { + if (totalSeconds > 0) { + totalSeconds--; + document.getElementById('dispTimer').innerText = formatTime(totalSeconds); + } else { + clearInterval(timerInterval); + isRunning = false; + showToast('🎉 本轮泡沫轴训练已完成!'); + } + }, 1000); +} + +function handlePauseTimer() { + if (!isRunning) return; + clearInterval(timerInterval); + isRunning = false; + showToast('泡沫轴训练已暂停'); +} + +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'; + showToast('已切换至:自动模式'); + } else { + btnA.className = 'mode-cap-btn'; + btnM.className = 'mode-cap-btn active-red'; + showToast('已切换至:手动模式'); + } +} + +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'); + showToast(`力量档位已调节为:力量 ${level}`); +} + +function handleSaveConfig() { + if (!isConnected) { + showToast('未连接设备,无法保存配置'); + return; + } + showToast(`✅ 配置已保存:${currentMode === 'auto' ? '自动模式' : '手动模式'} | 动作:${currentAction} | 肌群:${currentMuscle} | 力量:${currentStrength}档`); +} diff --git a/主页面_四个下拉选项页面/泡沫轴/changelog.md b/主页面_四个下拉选项页面/泡沫轴/changelog.md new file mode 100644 index 0000000..5f8bc35 --- /dev/null +++ b/主页面_四个下拉选项页面/泡沫轴/changelog.md @@ -0,0 +1,21 @@ +# 泡沫轴 (Foam Roller) - 版本变更履历 (Changelog) + +## [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)**:自动/手动模式分段胶囊 + 动作模式/肌群双列立体滚轮矩阵 + 力量档位选择条 + 全宽保存按钮。 +- **全真动态交互实现**: + - 支持点击【断开连接】/【连接设备】动态在已连接与未连接双态间平滑流转; + - 支持真实倒计时启动、暂停、跳秒与完成提示; + - 支持时长、动作、肌群、力量档位及模式的动态点选与保存反显。 diff --git a/主页面_四个下拉选项页面/泡沫轴/fr100_setup_200.png b/主页面_四个下拉选项页面/泡沫轴/fr100_setup_200.png new file mode 100644 index 0000000..d80854e Binary files /dev/null and b/主页面_四个下拉选项页面/泡沫轴/fr100_setup_200.png differ diff --git a/主页面_四个下拉选项页面/泡沫轴/image.png b/主页面_四个下拉选项页面/泡沫轴/image.png index b80e131..20df795 100644 Binary files a/主页面_四个下拉选项页面/泡沫轴/image.png and b/主页面_四个下拉选项页面/泡沫轴/image.png differ