|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
<view class="record-title">最新记录</view>
|
|
4
|
4
|
<view v-for="(item, index) in records" :key="index" class="record-item">
|
|
5
|
5
|
<view class="user-info">
|
|
6
|
|
- <image class="user-avatar" :src="item.avatar" @error="handleError" v-if="item.avatar&&!isError"></image>
|
|
|
6
|
+ <image class="user-avatar" :src="item.avatar" @error="handleError" v-if="item.avatar&&!isError" :webp="true"></image>
|
|
7
|
7
|
<image class="user-avatar" src="/static/images/new_ui/wutu.png" v-else></image>
|
|
8
|
8
|
<view class="user-details">
|
|
9
|
9
|
<view class="user-name">{{ item.nickname }}</view>
|
|
|
@@ -41,6 +41,7 @@ export default {
|
|
41
|
41
|
},
|
|
42
|
42
|
methods: {
|
|
43
|
43
|
handleError(e) {
|
|
|
44
|
+ console.log("头像图片加载",e);
|
|
44
|
45
|
this.isError = true;
|
|
45
|
46
|
}
|
|
46
|
47
|
}
|