feat: add resident miniapp MVP
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user