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() {