From fce7c78de3828c4b1f9b28fa15063daf58c5e6b3 Mon Sep 17 00:00:00 2001 From: long <452591453@qq.com> Date: Sat, 28 Nov 2026 10:33:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(miniapp):=20=E4=BB=8E=E8=AF=86=E7=B3=96?= =?UTF-8?q?=E5=B0=8F=E8=AF=BE=E5=A0=82=E6=89=93=E5=BC=80=E6=99=BA=E6=85=A7?= =?UTF-8?q?=E7=A7=91=E6=8A=80=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TUICallKit-Vue3/tongji/pages/weekly.vue | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/TUICallKit-Vue3/tongji/pages/weekly.vue b/TUICallKit-Vue3/tongji/pages/weekly.vue index 434ca2a18..5ea3e9f22 100755 --- a/TUICallKit-Vue3/tongji/pages/weekly.vue +++ b/TUICallKit-Vue3/tongji/pages/weekly.vue @@ -1595,17 +1595,26 @@ async function goMorePage() { uni.navigateTo({ url: buildMorePageUrl() }) } -function openGamePage(url) { +function goEndlessGamePage() { + // #ifdef MP-WEIXIN + wx.navigateToMiniProgram({ + appId: 'wx0c2a9d5ebad26a3f', + path: 'tongji/endless-game/index', + envVersion: 'release', + fail(err) { + if (err?.errMsg?.includes('cancel')) return + uni.showToast({ title: '暂时无法打开课堂', icon: 'none' }) + } + }) + // #endif + // #ifndef MP-WEIXIN uni.navigateTo({ - url, + url: '/tongji/endless-game/index', fail() { uni.showToast({ title: '暂时无法打开游戏', icon: 'none' }) } }) -} - -function goEndlessGamePage() { - openGamePage('/tongji/endless-game/index') + // #endif } function navToUser() {