Compare commits

..

No commits in common. "ad2b7d42e389d7cd379ca753903067c951306ecc" and "0e640c7ad646e02d572da88ef8fc16dfa6c09e53" have entirely different histories.

4 changed files with 7 additions and 18 deletions

View File

@ -12,9 +12,9 @@ const props = defineProps<{
const isShowRecord = ref(false)
const title = computed(() => {
return [...new Set(props.extra.records.map((v) => v.nickname))].join('')
return [...new Set(props.extra.records.map((v) => v.nickname))].join('')
})
console.log(props.extra.records)
const onClick = () => {
// isShowRecord.value = true
uni.navigateTo({
@ -24,7 +24,7 @@ const onClick = () => {
</script>
<template>
<section class="im-message-forward pointer" :class="{ left: data.float === 'left' }" @click="onClick">
<div class="title">{{ title }}<span v-if="props.extra.records.length > 2"></span>的会话记录</div>
<div class="title">{{ title }} 的会话记录</div>
<div class="list" v-for="(record, index) in extra.records" :key="index">
<p>
<span>{{ record.nickname }}: </span>

View File

@ -34,7 +34,7 @@ defineProps({
<span v-if="login_uid == user_id"> 你撤回了一条消息 | {{ formatTime(datetime) }}
<slot></slot> <!-- 添加插槽用于放置重新编辑按钮 -->
</span>
<span v-else-if="talk_type == 1">"{{ nickname }}" 撤回了一条消息 | {{ formatTime(datetime) }} </span>
<span v-else-if="talk_type == 1"> 对方撤回了一条消息 | {{ formatTime(datetime) }} </span>
<span v-else>
"{{ nickname }}" 撤回了一条消息 |
{{ formatTime(datetime) }}

View File

@ -24,13 +24,8 @@ const onLoadData = () => {
}).then((res) => {
if (res.code == 200) {
items.value = res.data.items || []
//
const uniqueNames = [...new Set(items.value.map(v => v.nickname))];
if (uniqueNames.length <= 2) {
title.value = uniqueNames.join('和');
} else {
title.value = uniqueNames.slice(0, 2).join('和') + '等';
}
title.value = [...new Set(items.value.map((v) => v.nickname))].join('、')
}
})
}

View File

@ -7,10 +7,8 @@
>
<div class="avatarImg">
<tm-badge
:count="props.data.is_disturb === 1 ? props.data.unread_num : ''"
:dot="props.data.is_disturb === 0 && props.data.unread_num"
:count="props.data.unread_num"
:maxCount="99"
class="badge"
color="#D03050"
>
<avatarModule
@ -156,10 +154,6 @@ const handleDelete = () => {
// border: 1px solid #fff;
// transform: translate3d(1px, 0px, 0px) !important;
}
::v-deep .badge .round-6{
min-width: 22rpx;
min-height: 22rpx;
}
.chatItem {
width: 100%;
height: 154rpx;