Compare commits

...
2 Commits
Author SHA1 Message Date
long 0eeb572f0f Update .gitignore 2026-11-28 10:38:10 +08:00
long fce7c78de3 feat(miniapp): 从识糖小课堂打开智慧科技小程序 2026-11-28 10:33:07 +08:00
2 changed files with 16 additions and 6 deletions
+1
View File
@@ -38,3 +38,4 @@ app/.test-tmp-stream/
TUICallKit-Vue3/.env TUICallKit-Vue3/.env
/.codegraph /.codegraph
app/artifacts/ app/artifacts/
/artifacts
+15 -6
View File
@@ -1595,17 +1595,26 @@ async function goMorePage() {
uni.navigateTo({ url: buildMorePageUrl() }) 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({ uni.navigateTo({
url, url: '/tongji/endless-game/index',
fail() { fail() {
uni.showToast({ title: '暂时无法打开游戏', icon: 'none' }) uni.showToast({ title: '暂时无法打开游戏', icon: 'none' })
} }
}) })
} // #endif
function goEndlessGamePage() {
openGamePage('/tongji/endless-game/index')
} }
function navToUser() { function navToUser() {