综合演练聊天代码调整
This commit is contained in:
parent
a302ab24c1
commit
062cdc69dd
@ -4,12 +4,14 @@
|
|||||||
<div v-for="(chatContent,index) in chatContentList" :key="index" class="chatContentInClass">
|
<div v-for="(chatContent,index) in chatContentList" :key="index" class="chatContentInClass">
|
||||||
<div :class="chatContent.self?'rightUser':'leftUser'">
|
<div :class="chatContent.self?'rightUser':'leftUser'">
|
||||||
<div class="userHeader">
|
<div class="userHeader">
|
||||||
<div v-if="chatContent.all&& !chatContent.self" class="userName">{{ covertName(chatContent.member) }}</div>
|
<!-- chatContent.all&& -->
|
||||||
|
<div v-if="!chatContent.self" class="userName">{{ covertName(chatContent.member) }}</div>
|
||||||
<div :class="chatContent.self?'userChatTime textRight':'userChatTime'">{{ formatTime(chatContent.chatTime) }}</div>
|
<div :class="chatContent.self?'userChatTime textRight':'userChatTime'">{{ formatTime(chatContent.chatTime) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="userBubble" @click="playAudio(baseUrl+chatContent.src)">
|
<div class="userBubble" @click="playAudio(baseUrl+chatContent.src)">
|
||||||
<div class="userMessage">
|
<div class="userMessage">
|
||||||
<span v-if="chatContent.all&&!chatContent.member.robot">@{{ covertName(chatContent.targetName) }}</span>
|
<!-- chatContent.all&& -->
|
||||||
|
<span v-if="!chatContent.member.robot">@{{ covertName(chatContent.targetName) }}</span>
|
||||||
<span class="el-icon-video-play playicon" />
|
<span class="el-icon-video-play playicon" />
|
||||||
<span class="messageText">{{ chatContent.message }}</span>
|
<span class="messageText">{{ chatContent.message }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -58,6 +60,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.scrollTop();
|
this.scrollTop();
|
||||||
} else {
|
} else {
|
||||||
|
debugger;
|
||||||
if (!simulationText.all) {
|
if (!simulationText.all) {
|
||||||
this.$emit('changeCoversition', simulationText);
|
this.$emit('changeCoversition', simulationText);
|
||||||
// this.$emit('addCoversition', {data:simulationText, headerTitle:''});
|
// this.$emit('addCoversition', {data:simulationText, headerTitle:''});
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
:key="member.id"
|
:key="member.id"
|
||||||
class="each-chat-member"
|
class="each-chat-member"
|
||||||
:style="member.userId === userId ?'color:red':''"
|
:style="member.userId === userId ?'color:red':''"
|
||||||
|
:title="member.memberName"
|
||||||
>{{ member.memberName }}</div>
|
>{{ member.memberName }}</div>
|
||||||
<!-- :class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'" -->
|
<!-- :class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'" -->
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user