|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<el-container class="r-chat-box"> |
|
|
<el-container class="chat-box"> |
|
|
<el-header height="60px"> |
|
|
<el-header height="60px"> |
|
|
<span>{{title}}</span> |
|
|
<span>{{title}}</span> |
|
|
<span title="群聊信息" v-show="this.chat.type=='GROUP'" class="btn-side el-icon-more" @click="showSide=!showSide"></span> |
|
|
<span title="群聊信息" v-show="this.chat.type=='GROUP'" class="btn-side el-icon-more" @click="showSide=!showSide"></span> |
|
|
@ -336,7 +336,7 @@ |
|
|
watch: { |
|
|
watch: { |
|
|
chat: { |
|
|
chat: { |
|
|
handler(newChat, oldChat) { |
|
|
handler(newChat, oldChat) { |
|
|
if(newChat.type != oldChat.type || newChat.targetId != oldChat.targetId){ |
|
|
if(newChat.targetId > 0 && (newChat.type != oldChat.type || newChat.targetId != oldChat.targetId)){ |
|
|
if (this.chat.type == "GROUP") { |
|
|
if (this.chat.type == "GROUP") { |
|
|
this.loadGroup(this.chat.targetId); |
|
|
this.loadGroup(this.chat.targetId); |
|
|
} else { |
|
|
} else { |
|
|
@ -348,14 +348,14 @@ |
|
|
this.$refs.sendBox.focus(); |
|
|
this.$refs.sendBox.focus(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
deep: true // 深度监听 |
|
|
deep: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|
.r-chat-box { |
|
|
.chat-box { |
|
|
background: white; |
|
|
background: white; |
|
|
border: #dddddd solid 1px; |
|
|
border: #dddddd solid 1px; |
|
|
|
|
|
|
|
|
@ -440,7 +440,6 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chat-group-side-box { |
|
|
.chat-group-side-box { |
|
|
border: #dddddd solid 1px; |
|
|
border: #dddddd solid 1px; |
|
|
animation: rtl-drawer-in .3s 1ms; |
|
|
animation: rtl-drawer-in .3s 1ms; |
|
|
|