## 主要改动 ### 1. 连续训练模式 - 移除组数/休息逻辑,只统计总次数和时长 - 训练持续进行直到用户手动暂停 - 实时显示次数、时长、消耗糖分 ### 2. 递进式奖励系统 - 鸡蛋(8-12次) → 核桃(15-20次) → 易拉罐(25-30次) → 气球(40-50次) - 每个奖励在区间内随机触发 - 奖励按顺序递进,不会跳级 - 捏碎粒子特效 + 奖励弹窗 ### 3. 糖分计算与食物对比 - 公式: (MET × 体重 × 时长) / 4 - MET = 3.5, 体重 = 60kg - 食物对比: 苹果/香蕉/米饭/巧克力/可乐 ### 4. 视觉设计优化 - 真实握力环造型(完整圆环 + 中空 + 握点) - 立体渐变和纹理效果 - 挤压动画(训练时整体缩放) - 简洁交互(整个环可点击,无中心按钮) ### 5. 问题修复 - 修复进入页面时音效预热响声(静音预热) - 暂时禁用音效URL(避免404错误) - 修复捏碎特效层级问题 ## 技术实现 - 新增: grip-ring.vue (主页面) - 新增: grip-ring-canvas.vue (画布组件) - 修改: useMetronome.ts (静音预热) - 修改: exercises.ts (移除握力环) - 修改: index.vue (添加头部链接) - 修改: dev-training-entry/index.vue (添加菜单入口) - 修改: pages.json (添加路由) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
180 lines
3.5 KiB
JSON
180 lines
3.5 KiB
JSON
{
|
|
"pages": [
|
|
{
|
|
"path": "pages/index/index",
|
|
"style": {
|
|
"navigationBarTitleText": "甄养堂"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/login/login",
|
|
"style": {
|
|
"navigationBarTitleText": "视频问诊"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/user/userinfo",
|
|
"style": {
|
|
"navigationBarTitleText": "个人资料"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/index/video",
|
|
"style": {
|
|
"navigationBarTitleText": "甄养堂"
|
|
}
|
|
},
|
|
{
|
|
"path": "TUICallKit/src/Components/TUICallKit",
|
|
"style": {
|
|
"navigationBarTitleText": "视频问诊",
|
|
"navigationBarHidden": true,
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/order/monad/monad",
|
|
"style": {
|
|
"navigationBarTitleText": "诊单确认",
|
|
"navigationBarHidden": true,
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/user/user",
|
|
"style": {
|
|
"navigationBarTitleText": "我的"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/Card/Card",
|
|
"style": {
|
|
"navigationBarTitleText": "就诊卡"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/Card/edit_card",
|
|
"style": {
|
|
"navigationBarTitleText": "修改就诊卡"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/Card/contact",
|
|
"style": {
|
|
"navigationBarTitleText": "服务"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/order/order",
|
|
"style": {
|
|
"navigationBarTitleText": "付款"
|
|
}
|
|
}
|
|
],
|
|
"subPackages": [
|
|
{
|
|
"root": "TUIKit",
|
|
"pages": [
|
|
{
|
|
"path": "pages/chat/chat",
|
|
"style": {
|
|
"navigationBarTitleText": "问诊"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "doctor",
|
|
"pages": [
|
|
{
|
|
"path": "pages/doctor/doctor",
|
|
"style": {
|
|
"navigationBarTitleText": "医生信息"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/doctor/list/list",
|
|
"style": {
|
|
"navigationBarTitleText": "执业医生列表"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/article/article",
|
|
"style": {
|
|
"navigationBarTitleText": "健康百科"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "training",
|
|
"pages": [
|
|
{
|
|
"path": "pages/index",
|
|
"style": {
|
|
"navigationBarTitleText": "练一练"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/grip-ring",
|
|
"style": {
|
|
"navigationBarTitleText": "握力环训练",
|
|
"navigationBarBackgroundColor": "#f8fafc",
|
|
"navigationBarTextStyle": "black",
|
|
"backgroundColor": "#f8fafc",
|
|
"requiredBackgroundModes": ["audio"]
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/metronome",
|
|
"style": {
|
|
"navigationBarTitleText": "耗糖节拍器",
|
|
"navigationBarBackgroundColor": "#f8fafc",
|
|
"navigationBarTextStyle": "black",
|
|
"backgroundColor": "#f8fafc",
|
|
"requiredBackgroundModes": ["audio"]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "tongji",
|
|
"pages": [
|
|
{
|
|
"path": "pages/index",
|
|
"style": {
|
|
"navigationBarTitleText": "日常记录",
|
|
"navigationBarBackgroundColor": "#0ea5a4",
|
|
"navigationBarTextStyle": "white",
|
|
"backgroundColor": "#f1f5f9",
|
|
"enablePullDownRefresh": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tabBar": {
|
|
"color": "#8a8a8a",
|
|
"selectedColor": "#204e2b",
|
|
"borderStyle": "black",
|
|
"backgroundColor": "#ffffff",
|
|
"list": [{
|
|
"pagePath": "pages/index/index",
|
|
"iconPath": "/static/user/home.png",
|
|
"selectedIconPath": "/static/user/home_no.png",
|
|
"text": "首页"
|
|
},{
|
|
"pagePath": "pages/user/user",
|
|
"iconPath": "/static/user/user.png",
|
|
"selectedIconPath": "/static/user/user_no.png",
|
|
"text": "我的"
|
|
}]
|
|
},
|
|
"globalStyle": {
|
|
"navigationBarTextStyle": "black",
|
|
"navigationBarTitleText": "甄养堂互联网医院",
|
|
"navigationBarBackgroundColor": "#F8F8F8",
|
|
"backgroundColor": "#F8F8F8"
|
|
}
|
|
}
|