<block wx:if="{{IS_TOURIST==1||isTrader2==1}}"><navigator class="main_btn_m get_phone to_login" style="margin-top:100rpx;" url="../login/index">{{''+(isTrader2==1?'去登陆商户':'未登录')+''}}</navigator></block><block wx:else><scroll-view class="conversations" scroll-y="true"><view class="tab_status_box" style="margin-top:10rpx;"><view class="tab_status_box_focus">消息列表</view><view class="tab_status_box_no_focus" style="position:relative;"><navigator url="./notice">平台消息</navigator><block wx:if="{{user_info.ss_notice_unreaded>0}}"><view class="num">{{user_info.ss_notice_unreaded}}</view></block></view></view><view style="background-color:#f7f7f7;height:10rpx;margin-top:0rpx;"></view><block wx:if="{{conversations.length!=0}}"><view><block wx:for="{{$root.l0}}" wx:for-item="conversation" wx:for-index="key" wx:key="key"><view data-event-opts="{{[['tap',[['navigateToChat',['$0'],[[['conversations','',key]]]]]]]}}" class="scroll-item" bindtap="__e"><view class="item-head"><image class="head-icon" style="border-radius:100%;overflow:hidden;" src="{{conversation.$orig.data.avatar||'../../static/user.png'}}"></image><block wx:if="{{conversation.$orig.unread}}"><view class="item-head_unread">{{conversation.$orig.unread}}</view></block></view><view class="scroll-item_info"><view class="item-info-top"><text class="item-info-top_name nowrap" style="max-width:380rpx;">{{conversation.$orig.data.name||'用户名称'}}</text><view style="display:flex;align-items:center;"><block wx:if="{{conversation.g0==0}}"><view style="background-color:#00c3b8;color:#FFFFFF;margin-right:10rpx;font-size:24rpx;height:32rpx;line-height:32rpx;width:106rpx;text-align:center;">官方客服</view></block><view class="item-info-top_time nowrap">{{conversation.m0+''}}</view></view></view><view class="item-info-bottom"><view class="item-info-bottom-item"><block wx:if="{{conversation.$orig.lastMessage.type=='text'}}"><view class="item-info-top_content">{{''+conversation.$orig.lastMessage.payload.text+''}}</view></block><block wx:else><block wx:if="{{conversation.$orig.lastMessage.type=='video'}}"><view class="item-info-top_content">[视频消息]</view></block><block wx:else><block wx:if="{{conversation.$orig.lastMessage.type=='audio'}}"><view class="item-info-top_content">[语音消息]</view></block><block wx:else><block wx:if="{{conversation.$orig.lastMessage.type=='image'}}"><view class="item-info-top_content">[图片消息]</view></block><block wx:else><block wx:if="{{conversation.$orig.lastMessage.type=='file'}}"><view class="item-info-top_content">[文件消息]</view></block><block wx:else><block wx:if="{{conversation.$orig.lastMessage.type=='order'}}"><view class="item-info-top_content">[自定义消息:订单]</view></block><block wx:else><view class="item-info-top_content">[[未识别内容]]</view></block></block></block></block></block></block><view data-event-opts="{{[['tap',[['removeConversation',['$0'],[[['conversations','',key]]]]]]]}}" class="item-info-bottom_action" catchtap="__e"></view></view></view></view></view></block></view></block><block wx:else><view class="no-conversation">当前没有会话</view></block><block wx:if="{{action.show}}"><view class="action-container"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="layer" bindtap="__e"></view><view class="action-box"><view data-event-opts="{{[['tap',[['topConversation',['$event']]]]]}}" class="action-item" bindtap="__e">{{action.conversation.top?'取消置顶':'置顶聊天'}}</view><view data-event-opts="{{[['tap',[['removeConversation',['$event']]]]]}}" class="action-item" bindtap="__e">删除聊天</view></view></view></block></scroll-view></block>