修复Salon对象存储头像展示

This commit is contained in:
2026-11-01 00:41:51 +08:00
parent e52e04685d
commit f30abbc26c
29 changed files with 229 additions and 28 deletions
+12
View File
@@ -291,6 +291,18 @@ Page({
}
},
onEmployeeAvatarError(event) {
const index = Number(event.currentTarget.dataset.index)
if (!Number.isInteger(index) || !this.data.employees[index]) return
this.setData({ [`employees[${index}].avatar`]: '' })
},
onReviewAvatarError(event) {
const index = Number(event.currentTarget.dataset.index)
if (!Number.isInteger(index) || !this.data.reviewApplications[index]) return
this.setData({ [`reviewApplications[${index}].applicantAvatar`]: '' })
},
openDetail(event) {
wx.navigateTo({ url: `/pages/employee-detail/index?id=${event.currentTarget.dataset.id}` })
},