修复Salon对象存储头像展示
This commit is contained in:
@@ -331,6 +331,10 @@ Page({
|
||||
this.loadCalendar()
|
||||
},
|
||||
|
||||
onProfileAvatarError() {
|
||||
this.setData({ 'profileForm.avatar': '' })
|
||||
},
|
||||
|
||||
selectWeekDate(event) {
|
||||
const appointmentDate = dateUtil.formatDate(event.currentTarget.dataset.date)
|
||||
const target = toLocalDate(appointmentDate)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<view class="profile-prompt">
|
||||
<text class="profile-prompt-title">完善你的工作名片</text><text class="profile-prompt-desc">头像和昵称会用于门店协作展示,可暂时跳过。</text>
|
||||
<button class="wechat-avatar" open-type="chooseAvatar" bindchooseavatar="chooseWechatAvatar" disabled="{{profileSaving}}">
|
||||
<image class="wechat-avatar-image {{profileForm.avatar ? 'is-real' : 'is-default'}}" src="{{profileForm.avatar || '/assets/images/default-user-avatar.png'}}" mode="aspectFill"></image>
|
||||
<image class="wechat-avatar-image {{profileForm.avatar ? 'is-real' : 'is-default'}}" src="{{profileForm.avatar || '/assets/images/default-user-avatar.png'}}" mode="aspectFill" binderror="onProfileAvatarError"></image>
|
||||
<view class="wechat-avatar-hint">{{profileSaving ? '上传中' : '点击更换'}}</view>
|
||||
</button>
|
||||
<input class="wechat-nickname" type="nickname" value="{{profileForm.nickname}}" bindinput="onNicknameInput" placeholder="填写微信昵称" />
|
||||
|
||||
Reference in New Issue
Block a user