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,20 @@
Page({})
const { listNotices } = require('../../api/noticeApi')
Page({
data: {
loading: false,
notices: []
},
onLoad() {
this.load()
},
load() {
this.setData({ loading: true })
listNotices()
.then((notices) => this.setData({ notices: notices || [] }))
.catch((error) => wx.showToast({ title: error.message, icon: 'none' }))
.finally(() => this.setData({ loading: false }))
}
})