feat: add resident miniapp MVP

This commit is contained in:
王鹏
2026-07-07 16:38:13 +08:00
parent bb325151d6
commit 576c54ec9d
52 changed files with 17865 additions and 66 deletions

View File

@@ -1 +1,19 @@
Page({})
Page({
data: {
user: null
},
onShow() {
const app = getApp()
this.setData({ user: app.globalData.user || null })
},
go(event) {
const url = event.currentTarget.dataset.url
if (event.currentTarget.dataset.tab) {
wx.switchTab({ url })
return
}
wx.navigateTo({ url })
}
})