|
|
|
|
@ -1,15 +1,18 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="conversation-wrapper">
|
|
|
|
|
<!-- 页面初始化的过程中,sessionList编译到小程序和h5出现sessionList为undefined的情况,即使给了默认值为空数组,故在此处进行判断 -->
|
|
|
|
|
<div class="conversation-list-wrapper">
|
|
|
|
|
<div class="conversation-list-wrapper" v-if="conversationList.length > 0">
|
|
|
|
|
<!-- 此处的key如果用session.id,会在ios上渲染存在问题,会出现会话列表显示undefined -->
|
|
|
|
|
<view class="g_bg_f5d g_h_48 g_fs_18 g_fw_600" v-if="conversationList.length > 0" style="padding: 12px 16px; border-bottom: 1rpx solid #d5d5d5; border-top: 1rpx solid #d5d5d5"> 最近的会话 </view>
|
|
|
|
|
<view class="g_bg_f5d g_h_48 g_fs_18 g_fw_600" v-if="conversationList.length > 0 && false" style="padding: 12px 16px; border-bottom: 1rpx solid #d5d5d5; border-top: 1rpx solid #d5d5d5"> 最近的会话 </view>
|
|
|
|
|
<div v-for="(conversation, index) in conversationList" :key="conversation.renderKey">
|
|
|
|
|
<ConversationItem :key="conversation.renderKey" :loading="loading" :showMoreActions="currentMoveSessionId === conversation.conversationId" :conversation="conversation" @delete="handleSessionItemDeleteClick" :heihei="'mmp'+index" @stickyToTop="handleSessionItemStickTopChange" @click="handleSessionItemClick" @leftSlide="handleSessionItemLeftSlide" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <u-skeleton :loading="loading" :animation="true" bgColor="#ededed"></u-skeleton> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div style="height: 48px; background-color: #ededed"></div>
|
|
|
|
|
<div style="height: 48px; background-color: #ededed" v-if="conversationList.length > 0></div>
|
|
|
|
|
<div v-if="conversationList.length == 0" style="padding-top: 130px;">
|
|
|
|
|
<u-empty>暂无会话</u-empty>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|