重构项目文件夹目录

This commit is contained in:
2026-06-15 15:53:55 +08:00
parent 8093e07190
commit 7cbe5b3de5
1098 changed files with 34 additions and 4441 deletions
@@ -0,0 +1,30 @@
const mock = require('../../utils/mock')
Page({
data: {
id: '',
employee: {}
},
onLoad(options) {
const id = options.id || mock.artists[0].id
const artist = mock.artists.find(item => String(item.id) === String(id)) || mock.artists[0]
this.setData({
id,
employee: {
...artist,
monthOrders: 32,
monthAmount: 5800,
avgAmount: 181
}
})
},
go(event) {
wx.navigateTo({ url: `${event.currentTarget.dataset.url}?id=${this.data.id}` })
},
back() {
wx.navigateBack()
}
})