This commit is contained in:
2026-09-13 01:51:09 +08:00
parent b1a664a768
commit afd0973ce5
32 changed files with 935 additions and 171 deletions
@@ -39,15 +39,23 @@ Page({
failReason: '',
loading: true,
editMode: false,
notFound: false,
},
onLoad(query: Record<string, string>) {
const uuid = query.uuid || ''
this.setData({ uuid })
if (uuid) {
this.fetchDetail()
this.pollStatus()
if (!uuid) {
// uuid 缺失时不请求不轮询,否则会停在空白页且无法退出
this.setData({ loading: false, notFound: true })
return
}
this.fetchDetail()
this.pollStatus()
},
onBackWardrobe() {
wx.switchTab({ url: '/pages/wardrobe/wardrobe' })
},
fetchDetail(): Promise<void> {