| 1 |
- <view><block wx:if="{{$root.g0}}"><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="{{'c5e0e1f4-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.userUnread}}"><view style="height:32rpx;width:32rpx;border-radius:100rpx;background-color:red;color:#FFF;text-align:center;">{{''+item.userUnread+''}}</view></block></view></view></view></block><block wx:else><view class="flex padding-tb"><view><u-image vue-id="{{'c5e0e1f4-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.userUnread}}"><view style="height:32rpx;width:32rpx;border-radius:100rpx;background-color:red;color:#FFF;text-align:center;">{{''+item.userUnread+''}}</view></block></view></view></view></block></view></block></view></block><block wx:if="{{$root.g1}}"><empty vue-id="c5e0e1f4-3" content="暂无消息" bind:__l="__l"></empty></block></view>
|