|
@@ -59,10 +59,7 @@
|
|
|
<div class="live-container-left-chat">
|
|
|
<div class="chat-top">
|
|
|
<span>聊天</span>
|
|
|
- <!-- <label @click="chatBans">
|
|
|
- <input v-model="roomData.allow_chat" type="checkbox" class="allow-chat" />
|
|
|
- <span>禁言</span>
|
|
|
- </label> -->
|
|
|
+ <el-button size="small" @click="sendAllMsg">给所有小组发送群消息</el-button>
|
|
|
</div>
|
|
|
<div class="chat-window">
|
|
|
<ul ref="chat" class="chat-window-ul">
|
|
@@ -141,7 +138,8 @@ import {
|
|
|
JoinGroup_Teacher,
|
|
|
ExitCurGroup_Teacher,
|
|
|
GetMyGroupInfo_Teacher,
|
|
|
- GetGroupStatus
|
|
|
+ GetGroupStatus,
|
|
|
+ SendGroupMessage
|
|
|
} from '@/api/live';
|
|
|
import * as common from './group';
|
|
|
|
|
@@ -289,6 +287,18 @@ export default {
|
|
|
this.msg = '';
|
|
|
},
|
|
|
|
|
|
+ // 给所有小组发送消息
|
|
|
+ sendAllMsg() {
|
|
|
+ this.$prompt(' ', '给所有小组发送群消息', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ }).then(({ value }) => {
|
|
|
+ SendGroupMessage({ task_id: this.task_id, group_message_text: value }).then(() => {
|
|
|
+ this.$message.success('发送成功');
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
chatBans() {
|
|
|
common.roomUpdate({
|
|
|
allow_chat: !this.roomData.allow_chat,
|
|
@@ -431,24 +441,29 @@ $live-bc: #3d3938;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
background-color: #4d4d4d;
|
|
|
- overflow: hidden;
|
|
|
- padding: 10px 24px;
|
|
|
+ overflow: auto;
|
|
|
+ padding: 10px 0 10px 24px;
|
|
|
|
|
|
&-list {
|
|
|
background-color: #646464;
|
|
|
position: relative;
|
|
|
padding: 24px;
|
|
|
- width: 253px;
|
|
|
+ width: 255px;
|
|
|
height: 144px;
|
|
|
- margin-right: 8px;
|
|
|
+ margin: 0 8px 8px 0;
|
|
|
cursor: pointer;
|
|
|
|
|
|
&-avatar {
|
|
|
display: flex;
|
|
|
+ height: 92px;
|
|
|
flex-wrap: wrap;
|
|
|
- justify-content: space-around;
|
|
|
align-items: center;
|
|
|
- margin-top: 24px;
|
|
|
+ margin-top: 12px;
|
|
|
+ overflow: auto;
|
|
|
+
|
|
|
+ .el-avatar {
|
|
|
+ margin: 0 7px 6px 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.group-serial {
|
|
@@ -474,7 +489,7 @@ $live-bc: #3d3938;
|
|
|
height: 468px;
|
|
|
position: relative;
|
|
|
background-color: $live-bc;
|
|
|
- overflow: hidden;
|
|
|
+ overflow: auto;
|
|
|
|
|
|
.group-box {
|
|
|
width: 256px;
|
|
@@ -565,6 +580,7 @@ $live-bc: #3d3938;
|
|
|
|
|
|
.chat-top {
|
|
|
display: flex;
|
|
|
+ align-items: center;
|
|
|
justify-content: space-between;
|
|
|
padding: 15px 15px 10px;
|
|
|
border-bottom: 1px solid #e6e6e6;
|
|
@@ -607,6 +623,7 @@ $live-bc: #3d3938;
|
|
|
|
|
|
&-right {
|
|
|
padding: 8px;
|
|
|
+ height: 794px;
|
|
|
background-color: #2c2c2c;
|
|
|
border-end-end-radius: 8px;
|
|
|
|
|
@@ -647,6 +664,11 @@ $live-bc: #3d3938;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
+ ul {
|
|
|
+ height: calc(100% - 20px);
|
|
|
+ overflow-x: auto;
|
|
|
+ }
|
|
|
+
|
|
|
li {
|
|
|
display: flex;
|
|
|
margin-bottom: 16px;
|