27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
<view
|
|||
|
|
class="ui-conv {{!conversation.canSendMessage ? 'ui-conv--disabled' : ''}}"
|
||
|
|
bindtap="onTap"
|
||
|
|
>
|
||
|
|
<ui-avatar
|
||
|
|
wx:if="{{showAvatar}}"
|
||
|
|
src="{{conversation.targetAvatarUrl}}"
|
||
|
|
size="lg"
|
||
|
|
default-text="{{conversation.targetDisplayName}}"
|
||
|
|
/>
|
||
|
|
<view class="ui-conv__body">
|
||
|
|
<view class="ui-conv__top">
|
||
|
|
<text class="ui-conv__name">{{conversation.targetDisplayName}}</text>
|
||
|
|
<text class="ui-conv__time">{{conversation.lastMessageAtText || ''}}</text>
|
||
|
|
</view>
|
||
|
|
<view class="ui-conv__bottom">
|
||
|
|
<text class="ui-conv__last">{{conversation.lastMessage || '开始你们的对话吧'}}</text>
|
||
|
|
<view wx:if="{{conversation.unreadCount > 0}}" class="ui-conv__badge">
|
||
|
|
{{conversation.unreadCount > 99 ? '99+' : conversation.unreadCount}}
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view wx:if="{{!conversation.canSendMessage}}" class="ui-conv__status-hint">
|
||
|
|
{{conversation.relationStatus === 'blocked' ? '会话已停用(已拉黑)' : '会话已停用'}}
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|