|
|
|
|
@ -5,15 +5,7 @@
|
|
|
|
|
<div class="conversation-list-wrapper " v-if="conversationList && conversationList.length > 0">
|
|
|
|
|
<!-- 此处的key如果用session.id,会在ios上渲染存在问题,会出现会话列表显示undefined -->
|
|
|
|
|
<div v-for="(conversation, index) in conversationList" class="" style="min-height:72px" :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"
|
|
|
|
|
/>
|
|
|
|
|
<ConversationItem :key="conversation.renderKey" :loading="loading" :showMoreActions="currentMoveSessionId === conversation.conversationId" :conversation="conversation" @delete="handleSessionItemDeleteClick" :heihei="'mmp' + index" @stickyToTop="handleSessionItemStickTopChange" @click="handleSessionItemClick" @leftSlide="handleSessionItemLeftSlide" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div style="height: 48px; background-color: #ededed" v-if="conversationList && conversationList.length > 0"></div> -->
|
|
|
|
|
@ -71,15 +63,8 @@ const handleSessionItemClick = async (conversation: V2NIMConversation) => {
|
|
|
|
|
flag = true;
|
|
|
|
|
|
|
|
|
|
await uni.$UIKitStore.uiStore.selectConversation(conversation.conversationId);
|
|
|
|
|
const itemUserInfo = await uni.$UIKitStore.userStore.getUserActive(conversation.conversationId.split('|')[2])
|
|
|
|
|
let _title = '';
|
|
|
|
|
if(itemUserInfo.serverExtension){
|
|
|
|
|
_title = itemUserInfo.name + '@' + JSON.parse(itemUserInfo.serverExtension).fullName;
|
|
|
|
|
}else{
|
|
|
|
|
_title = itemUserInfo.name;
|
|
|
|
|
}
|
|
|
|
|
customNavigateTo({
|
|
|
|
|
url: "/pages/Chat/index?ctitle=" + _title,
|
|
|
|
|
url: "/pages/Chat/index",
|
|
|
|
|
});
|
|
|
|
|
} catch {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|