From 8a6890767ef5a82ba78f8fb05cbb7a1fb241645a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=93=A5=E5=A4=A7=E5=93=A5=E7=9A=84=E5=A4=A7?= =?UTF-8?q?=E5=93=A5=E5=93=A5?= Date: Sat, 18 Jul 2026 11:30:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(tongji):=20=E6=81=A2=E5=A4=8D=E5=B1=85?= =?UTF-8?q?=E5=AE=B6=E8=AE=AD=E7=BB=83=E5=B9=B6=E7=BB=9F=E4=B8=80=E8=AF=86?= =?UTF-8?q?=E7=B3=96=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/dev-training-entry/index.vue | 12 ++---------- TUICallKit-Vue3/pages.json | 2 +- .../endless-game/PLATFORM_INTEGRATION.md | 2 +- TUICallKit-Vue3/tongji/endless-game/README.md | 6 +++--- .../endless-game/composables/useGameAuth.js | 2 +- TUICallKit-Vue3/tongji/endless-game/index.vue | 6 +++--- TUICallKit-Vue3/tongji/pages/weekly.vue | 18 ++---------------- 7 files changed, 13 insertions(+), 35 deletions(-) diff --git a/TUICallKit-Vue3/components/dev-training-entry/index.vue b/TUICallKit-Vue3/components/dev-training-entry/index.vue index 0d92e3ec..6a1133fb 100644 --- a/TUICallKit-Vue3/components/dev-training-entry/index.vue +++ b/TUICallKit-Vue3/components/dev-training-entry/index.vue @@ -186,16 +186,8 @@ const inlineItems = computed(() => { return metro ? [metro, ...rest] : trainingItems }) -const isDevMode = (): boolean => { - /* HBuilderX 工程:发行(release)模式下 NODE_ENV === 'production' */ - try { - return process.env.NODE_ENV !== 'production' - } catch (_) { - return false - } -} - -const visible = ref(isDevMode()) +// 居家耗糖训练是正式功能,开发版和发行版都需要展示。 +const visible = ref(true) const expanded = ref(false) const toggle = () => { diff --git a/TUICallKit-Vue3/pages.json b/TUICallKit-Vue3/pages.json index e866048f..66acdbaf 100644 --- a/TUICallKit-Vue3/pages.json +++ b/TUICallKit-Vue3/pages.json @@ -224,7 +224,7 @@ "path": "endless-game/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "控糖消消乐", + "navigationBarTitleText": "识糖小课堂", "backgroundColor": "#eefbf4", "disableScroll": false, "enableShareAppMessage": true, diff --git a/TUICallKit-Vue3/tongji/endless-game/PLATFORM_INTEGRATION.md b/TUICallKit-Vue3/tongji/endless-game/PLATFORM_INTEGRATION.md index 51ecb259..a194febd 100644 --- a/TUICallKit-Vue3/tongji/endless-game/PLATFORM_INTEGRATION.md +++ b/TUICallKit-Vue3/tongji/endless-game/PLATFORM_INTEGRATION.md @@ -1,4 +1,4 @@ -# 控糖消消乐平台接入说明 +# 识糖小课堂平台接入说明 ## 已接入能力 diff --git a/TUICallKit-Vue3/tongji/endless-game/README.md b/TUICallKit-Vue3/tongji/endless-game/README.md index 17ce29bd..aed6b922 100644 --- a/TUICallKit-Vue3/tongji/endless-game/README.md +++ b/TUICallKit-Vue3/tongji/endless-game/README.md @@ -1,6 +1,6 @@ -# 控糖消消乐独立功能包 +# 识糖小课堂独立功能包 -此目录包含“控糖消消乐”无尽三消版的页面与运行代码。食品图片由远端 COS 提供,图标组件复用 `tongji` 分包的公共组件。 +此目录包含“识糖小课堂”无尽三消版的页面与运行代码。食品图片由远端 COS 提供,图标组件复用 `tongji` 分包的公共组件。 ## 目录内容 @@ -20,7 +20,7 @@ "path": "endless-game/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "控糖消消乐", + "navigationBarTitleText": "识糖小课堂", "backgroundColor": "#eefbf4", "disableScroll": false, "enableShareAppMessage": true, diff --git a/TUICallKit-Vue3/tongji/endless-game/composables/useGameAuth.js b/TUICallKit-Vue3/tongji/endless-game/composables/useGameAuth.js index 2ae3d209..cf7e44ee 100644 --- a/TUICallKit-Vue3/tongji/endless-game/composables/useGameAuth.js +++ b/TUICallKit-Vue3/tongji/endless-game/composables/useGameAuth.js @@ -1,5 +1,5 @@ /** - * 控糖消消乐独立登录适配层。复用主小程序账号,但不依赖 tongji 其他页面代码。 + * 识糖小课堂独立登录适配层。复用主小程序账号,但不依赖 tongji 其他页面代码。 */ export function useGameAuth(proxy) { let loginPromise = null diff --git a/TUICallKit-Vue3/tongji/endless-game/index.vue b/TUICallKit-Vue3/tongji/endless-game/index.vue index 0e10da9d..abb84c80 100644 --- a/TUICallKit-Vue3/tongji/endless-game/index.vue +++ b/TUICallKit-Vue3/tongji/endless-game/index.vue @@ -20,7 +20,7 @@ - 控糖消消乐 + 识糖小课堂 第{{ themeIndex + 1 }}站 · {{ currentTheme.title }} @@ -643,9 +643,9 @@ function formatWeekDate(value) { function gameShareTitle() { if (learned.value > 0) { - return `我在控糖消消乐认识了${learned.value}份食物,一起来挑战吧` + return `我在识糖小课堂认识了${learned.value}份食物,一起来挑战吧` } - return '控糖消消乐:边玩边认识常见食物' + return '识糖小课堂:边玩边认识常见食物' } function gameSharePath() { diff --git a/TUICallKit-Vue3/tongji/pages/weekly.vue b/TUICallKit-Vue3/tongji/pages/weekly.vue index e558ac31..c470685d 100644 --- a/TUICallKit-Vue3/tongji/pages/weekly.vue +++ b/TUICallKit-Vue3/tongji/pages/weekly.vue @@ -99,23 +99,13 @@ 示例数据,累计记录满 7 天后显示您的真实趋势 - - - - - - 识糖小课堂 - 认一认:哪些食物含糖高 - - - - 控糖消消乐 - 无尽消除,挑战控糖高分 + 识糖小课堂 + 三消认食物,学习哪些食物含糖高 @@ -1533,10 +1523,6 @@ function openGamePage(url) { }) } -function goSugarRaidGamePage() { - openGamePage('/tongji/pages/game') -} - function goEndlessGamePage() { openGamePage('/tongji/endless-game/index') }