|
@@ -21,17 +21,25 @@
|
|
|
<!-- 左侧 -->
|
|
|
<div class="group-container-left">
|
|
|
<div class="group-discussion">
|
|
|
- <div v-show="localStream" id="group-local" class="group-box"></div>
|
|
|
+ <!-- 本地流 -->
|
|
|
+ <div v-show="localStream" class="group-wrapper">
|
|
|
+ <div id="group-local" class="group-box"></div>
|
|
|
+ <div class="live-wrapper-stream">
|
|
|
+ {{ studentSelf.student_name }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div v-show="!localStream" class="group-box student-info">
|
|
|
- <el-avatar icon="el-icon-user" :src="studentSelf.student_image_url" :size="100" />
|
|
|
+ <el-avatar icon="el-icon-user" :src="studentSelf.student_image_url" :size="80" />
|
|
|
<span class="student_name">{{ studentSelf.student_name }}</span>
|
|
|
</div>
|
|
|
- <div
|
|
|
- v-for="(item, i) in streamList"
|
|
|
- :id="`group-${i}`"
|
|
|
- :key="item.id()"
|
|
|
- class="group-box"
|
|
|
- ></div>
|
|
|
+ <!-- 有流列表 -->
|
|
|
+ <div v-for="(item, i) in streamList" :key="item.id()" class="group-wrapper">
|
|
|
+ <div :id="`group-${i}`" class="group-box"></div>
|
|
|
+ <div class="live-wrapper-stream">
|
|
|
+ {{ searchStudentName(item.id()) }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 无流列表 -->
|
|
|
<div v-for="item in noStreamList" :key="item.student_id" class="group-box student-info">
|
|
|
<el-avatar icon="el-icon-user" :src="item.student_image_url" :size="80" />
|
|
|
<span class="student_name">{{ item.student_name }}</span>
|
|
@@ -314,6 +322,15 @@ export default {
|
|
|
}, 5000);
|
|
|
},
|
|
|
|
|
|
+ searchStudentName(id) {
|
|
|
+ let uid = id.split('-')[0];
|
|
|
+ if (uid) {
|
|
|
+ let student = this.student_list.find(item => item.room_user_id === uid);
|
|
|
+ return student ? student.student_name : '';
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
+
|
|
|
getMyGroupInfo_Student() {
|
|
|
GetMyGroupInfo_Student({
|
|
|
task_id: this.task_id
|
|
@@ -424,6 +441,24 @@ $live-bc: #3d3938;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .group-wrapper {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .live-wrapper-stream {
|
|
|
+ position: absolute;
|
|
|
+ top: 120px;
|
|
|
+ height: 32px;
|
|
|
+ width: calc(100% - 16px);
|
|
|
+ background-color: #000;
|
|
|
+ opacity: 0.7;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ margin: 0 8px;
|
|
|
+ transition: all 300ms ease-in 0s;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.button-group {
|