<view><block wx:if="{{chatList.length}}"><view class="content "><block wx:for="{{chatList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goIM',['$0'],[[['chatList','',index]]]]]]]}}" class="radius padding-lr-sm bg" style="margin-top:4rpx;" bindtap="__e"><block wx:if="{{userId==item.userId}}"><view class="flex padding-tb "><view><u-image vue-id="{{'54746302-1-'+index}}" shape="circle" width="80rpx" height="80rpx" src="{{item.shopCover}}" bind:__l="__l"></u-image></view><view class="flex-sub margin-left-sm"><view class="flex justify-between"><view style="width:50%;">{{item.shopName}}</view><view class="text-grey">{{item.createTime}}</view></view><view class="flex justify-between"><view class="text-grey">{{item.messageType==1?item.content:'[图片]'}}</view><block wx:if="{{item.shopUnread}}"><view style="height:32rpx;width:32rpx;border-radius:100rpx;background-color:red;color:#FFF;text-align:center;">{{''+item.shopUnread}}</view></block></view></view></view></block><block wx:else><view class="flex padding-tb"><view><u-image vue-id="{{'54746302-2-'+index}}" shape="circle" width="80rpx" height="80rpx" src="{{item.shopCover}}" bind:__l="__l"></u-image></view><view class="flex-sub margin-left-sm"><view class="flex justify-between"><view style="width:50%;">{{item.shopName}}</view><view class="text-grey">{{item.createTime}}</view></view><view class="flex justify-between"><view class="text-grey">{{item.messageType==1?item.content:'[图片]'}}</view><block wx:if="{{item.shopUnread}}"><view style="height:32rpx;width:32rpx;border-radius:100rpx;background-color:red;color:#FFF;text-align:center;">{{''+item.shopUnread}}</view></block></view></view></view></block></view></block></view></block><block wx:if="{{!chatList.length&&!msgList.length}}"><empty vue-id="54746302-3" content="暂无消息" bind:__l="__l"></empty></block></view>