修复Salon对象存储头像展示
This commit is contained in:
@@ -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}` })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user