之前误将训练模块加在 uniapp 项目,实际目标项目是 TUICallKit-Vue3 (甄养堂主小程序壳),整体迁入: - hooks/useMetronome.ts 节拍器(音频实例池+预热,无冷启动延迟) - hooks/useTrainingSession.ts 训练 Session 状态机 - hooks/useVoiceCoach.ts 语音教练队列 - hooks/useTrainingBgm.ts 训练/休息 BGM 切换+渐变 - pages/training/index.vue 练一练主页(器械跟练) - pages/training/metronome.vue 独立节拍器(老人友好版, 中央圆即开始/暂停按钮,纯 CSS 几何 icon,大字大按钮) - pages/training/components/exercise-anim.vue CSS 动作动画 - pages/training/exercises.ts 5 个器械动作预设 - static/training/audio/*.mp3 3 种 click 音色(MIT 协议) - scripts/generate-voice.mjs MiMo TTS 批量生成语音脚本 - pages.json 注册 pages/training/index 与 pages/training/metronome - 「我的」页加 DevTrainingEntry 悬浮入口,生产环境自动隐藏 Co-authored-by: Cursor <cursoragent@cursor.com>
148 lines
2.8 KiB
JSON
148 lines
2.8 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": "付款"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/training/index",
|
|
"style": {
|
|
"navigationBarTitleText": "练一练"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/training/metronome",
|
|
"style": {
|
|
"navigationBarTitleText": "节拍器",
|
|
"navigationBarBackgroundColor": "#0f172a",
|
|
"navigationBarTextStyle": "white"
|
|
}
|
|
}
|
|
],
|
|
"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": "健康百科"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
}
|