fix: add default avatar placeholder and correct debug API URL
- orderdetail: add fallback avatar image and onAvatarError handler - Android: point debug build to cloud server (101.43.95.130) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -440,5 +440,8 @@ Page({
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
},
|
||||
onAvatarError() {
|
||||
// 头像加载失败回退到默认占位图
|
||||
},
|
||||
})
|
||||
@@ -19,7 +19,7 @@
|
||||
<view wx:if="{{item.status==8}}" class="status_msg">{{"已结算"}}</view>
|
||||
</view>
|
||||
<view class="details_box">
|
||||
<image src="{{item.userbAvatar}}" style="width:230rpx;height:230rpx;"></image>
|
||||
<image src="{{item.userbAvatar || '/pages/image/userimg.png'}}" binderror="onAvatarError" style="width:230rpx;height:230rpx;"></image>
|
||||
<view style="margin-left: 31rpx;">
|
||||
<view class="title">专业陪护服务({{item.userbName}})</view>
|
||||
<!-- <view class="detail_number">数量x{{detail.num}}</view> -->
|
||||
@@ -63,7 +63,7 @@
|
||||
<view class="contact">
|
||||
<view class="contact_title">联系信息</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<image src="{{item.userbAvatar}}" style="width:94rpx;height:94rpx;border-radius:50% ;margin-right:23rpx;">
|
||||
<image src="{{item.userbAvatar || '/pages/image/userimg.png'}}" binderror="onAvatarError" style="width:94rpx;height:94rpx;border-radius:50%;margin-right:23rpx;">
|
||||
</image>
|
||||
<view>
|
||||
<view style="color: #333;font-size: 28rpx;font-family: PingFang SC;font-weight: bold;">{{item.userbName}}</view>
|
||||
|
||||
Reference in New Issue
Block a user