no message

cyl/master-0804
jscyl13849007907 4 months ago
parent 767a5aa1d1
commit ff8c5ed699

@ -1,17 +1,19 @@
<template>
<div class="conversation-wrapper">
<!-- 页面初始化的过程中sessionList编译到小程序和h5出现sessionList为undefined的情况即使给了默认值为空数组故在此处进行判断 -->
<div class="conversation-list-wrapper" v-if="conversationList.length > 0">
<div class="conversation-list-wrapper" v-if="conversationList && 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 && 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" v-if="conversationList.length > 0></div>
<div v-if="conversationList.length == 0" style="padding-top: 130px;">
<u-empty>暂无会话</u-empty>
<div style="height: 48px; background-color: #ededed" v-if="conversationList && conversationList.length > 0"></div>
<div v-if="conversationList.length == 0" style='padding-top: 130px;'>
<u-empty
text="暂无会话"
src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/noData.svg"
>
</u-empty>
</div>
</div>
</template>

Loading…
Cancel
Save