feat(miniapp): 从识糖小课堂打开智慧科技小程序

This commit is contained in:
2026-11-28 10:33:07 +08:00
parent 630318b9ca
commit fce7c78de3
+15 -6
View File
@@ -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() {