Commit dc6ce740 by panjiangyi

客服模式

parent fcaf7742
<template>
<div class="chat-room-con h-100 pos-rel">
{{ chatId }}
<div class="chat-panel">
<div class="chat-area h-100">
<template v-if="notOnlyCheck">
......
<template>
<div class="chat-con">
<ChatTitle :close="hide" />
<div class="chat-con" :class="{ userMode }">
<ChatTitle :close="hide" class="chat-title" />
<div class="chat-area-con">
<div v-if="chatId != null" class="h-100 chat-area">
<chat-room />
</div>
<div class="chat-panel h-100">
<!-- <div class="buttons">
<el-button class="button" @click="terminate" round
>结束会话</el-button
>
<el-button class="button" @click="showAddMember" round
>添加成员</el-button
>
</div> -->
<div class="chat-panel h-100" v-if="!userMode">
<el-tabs class="chat-panel" v-model="currentTab">
<el-tab-pane label="数据" name="one"
>model的数据,可配置。</el-tab-pane
......@@ -31,9 +23,11 @@
<remarkList modelName="user" />
</el-tab-pane>
<el-tab-pane label="回复" name="five">
<MsgShortCut v-for="(item, i) in shortCutMsgs" :key="i" :msg="item"/>
<MsgShortCut
v-for="(item, i) in shortCutMsgs"
:key="i"
:msg="item"
/>
</el-tab-pane>
</el-tabs>
</div>
......@@ -88,14 +82,11 @@ export default class Chat extends Vue {
@chatStore.Action(ChatStore.ACTION_CHAT_ADD_MEMBERS)
private readonly _addMember!: ChatStore.ACTION_CHAT_ADD_MEMBERS;
private userMode = true;
private currentTab = "one";
private shortCutMsgs = [
"快捷回复1",
"快捷回复2",
"快捷回复3",
"快捷回复4",
]
private shortCutMsgs = ["快捷回复1", "快捷回复2", "快捷回复3", "快捷回复4"];
private get chatMembersId() {
return this.chatMembers.map((k) => +k.eid);
......@@ -122,16 +113,24 @@ export default class Chat extends Vue {
}
</script>
<style lang="less" scoped>
.chat-con {
height:70vh;
}
.chat-area-con {
height: calc(100% - 60px);
}
.chat-con {
height: 70vh;
--chat-panel-width: 350px;
font-size: 13px;
color: black;
&.userMode {
--chat-panel-width: 0px;
.chat-title {
/deep/ .title-buttons {
.button {
display:none
}
}
}
}
}
.chat-area,
.chat-panel {
......@@ -156,7 +155,7 @@ export default class Chat extends Vue {
}
.chat-panel {
/deep/ .el-tabs__item {
padding:0 18px;
padding: 0 18px;
}
}
</style>
......@@ -520,6 +520,7 @@ i.msg-avatar {
color: #888;
text-align: right;
margin-bottom: 3px;
min-height: 16px;
}
.msg-detail {
......
<template>
<div v-loading="chatIniting" class="message-list h-100">
<!-- chatId:{{ chatId }} -->
<el-scrollbar
ref="message-scrollbar"
class="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment