|
|
@@ -268,7 +268,7 @@
|
|
|
<view v-if="item.userId && userId != item.userId" style="width: 83%;margin-right: 15%;">
|
|
|
<view class="chat-listitem" style="float: left;margin-left: 10rpx;">
|
|
|
<view>
|
|
|
- <image @tap="goGuanZhu(item)" :src="item.avatar ? item.avatar : '/static/logo.png'"
|
|
|
+ <image @tap="goGuanZhu(item)" :lazy-load="true" mode="aspectFill" :src="item.avatar ? item.avatar : '/static/logo.png'"
|
|
|
class="chat-listitem-image"></image>
|
|
|
</view>
|
|
|
<view v-if="item.content && item.messageType === 1" @longpress="copyAndJubao(item)"
|
|
|
@@ -423,11 +423,11 @@
|
|
|
</view>
|
|
|
|
|
|
<image @tap="viewImg(item.content)" v-if="item.content && item.messageType === 2"
|
|
|
- :src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;"></image>
|
|
|
+ :src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
|
|
|
<image class="chat-listitem-text"
|
|
|
v-if="item.content && item.messageType === 4"
|
|
|
:src="ossUrl +item.content"
|
|
|
- style="height: 80rpx;width: 80rpx;margin-left: 20rpx;"></image>
|
|
|
+ style="height: 80rpx;width: 80rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
|
|
|
|
|
|
<view v-if="item.content && item.messageType === 3" class="chat-listitem-text bubble voice textColorLeft"
|
|
|
:class="playMsgid == index?'play':''"
|
|
|
@@ -561,11 +561,11 @@
|
|
|
class="chat-listitem-text" style="margin-right: 20rpx;">{{item.content}}</view> -->
|
|
|
<image @longpress="caozuoActive(item)" @tap="viewImg(item.content)"
|
|
|
v-if="item.content && item.messageType === 2" :src="item.content"
|
|
|
- style="height: 200rpx;width: 200rpx;margin-right: 20rpx;"></image>
|
|
|
+ style="height: 200rpx;width: 200rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
|
|
|
<image class="chat-listitem-text textColor"
|
|
|
v-if="item.content && item.messageType === 4"
|
|
|
:src="ossUrl +item.content"
|
|
|
- style="height: 80rpx;width: 80rpx;margin-right: 20rpx;">
|
|
|
+ style="height: 80rpx;width: 80rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill">
|
|
|
</image>
|
|
|
|
|
|
<view v-if="item.content && item.messageType === 3"
|
|
|
@@ -580,7 +580,7 @@
|
|
|
|
|
|
</view>
|
|
|
<view>
|
|
|
- <image :src="imageUrl" class="chat-listitem-image"></image>
|
|
|
+ <image :lazy-load="true" mode="aspectFill" :src="imageUrl" class="chat-listitem-image"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -2794,6 +2794,7 @@
|
|
|
that.ListItem.push(datas);
|
|
|
setTimeout(() => {
|
|
|
that.getTimeOrListItem1();
|
|
|
+ that.hideDrawer();
|
|
|
}, 50);
|
|
|
},
|
|
|
fail(err) {
|