|
@@ -0,0 +1,210 @@
|
|
|
+<template>
|
|
|
+ <div id="liveIndex">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="style">
|
|
|
+ <el-col :span="24" class="top">
|
|
|
+ <el-col :span="20" class="left">
|
|
|
+ <el-image :src="logo"></el-image>
|
|
|
+ <span>腾讯实时音视频互动教室</span>
|
|
|
+ <span>教室ID:10001</span>
|
|
|
+ <span>用户:17319450324</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" class="right">
|
|
|
+ <el-button type="text"><i class="el-icon-close"></i>退出教师</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="down">
|
|
|
+ <el-col :span="18" class="left">
|
|
|
+ 左侧
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" class="right">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ 学生进入10001教室即可听课
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="info">
|
|
|
+ <el-tabs v-model="activeName">
|
|
|
+ <el-tab-pane label="信息列表" name="first">
|
|
|
+ <el-col :span="24" class="firstInfo">
|
|
|
+ <el-col :span="24" class="firstInfoList">
|
|
|
+ <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
+ <p>
|
|
|
+ <span>[{{ item.date }}]</span>
|
|
|
+ <span>{{ item.name }}:</span>
|
|
|
+ <span>{{ item.content }}</span>
|
|
|
+ </p>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="firstInfoInout">
|
|
|
+ <el-input placeholder="请输入内容" v-model="input" class="input-with-select">
|
|
|
+ <el-button slot="append">发送</el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="成员列表" name="second">
|
|
|
+ <el-col :span="24" class="secondInfoList">
|
|
|
+ <el-table :data="personalList" border style="width: 100%" :highlight-current-row="false">
|
|
|
+ <el-table-column type="index" width="50" label="序号" align="center"> </el-table-column>
|
|
|
+ <el-table-column label="姓名" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image :src="scope.row.pic" style="width:20px;height:20px;top: 5px;margin: 0 10px 0 0;"></el-image>
|
|
|
+ <span>{{ scope.row.name }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+export default {
|
|
|
+ name: 'liveIndex',
|
|
|
+ props: {},
|
|
|
+ components: {},
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ logo: require('@a/logo.png'),
|
|
|
+ activeName: 'first',
|
|
|
+ // 聊天列表
|
|
|
+ list: [
|
|
|
+ {
|
|
|
+ date: '202-01-01',
|
|
|
+ name: '顾宏伟',
|
|
|
+ content: '信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容信息内容',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ // 发言
|
|
|
+ input: '',
|
|
|
+ // 成员列表
|
|
|
+ personalList: [
|
|
|
+ {
|
|
|
+ pic: require('@a/logo.png'),
|
|
|
+ name: '顾红伟',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ pageTitle() {
|
|
|
+ return `${this.$route.meta.title}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ metaInfo() {
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.style {
|
|
|
+ background-color: #222124;
|
|
|
+ height: 100vh;
|
|
|
+ overflow: hidden;
|
|
|
+ .top {
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ background-color: #34363b;
|
|
|
+ margin: 0 0 15px 0;
|
|
|
+ .left {
|
|
|
+ .el-image {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ top: 10px;
|
|
|
+ left: 10px;
|
|
|
+ margin: 0 10px 0 0;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ color: #ccc;
|
|
|
+ padding: 0 15px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ text-align: right;
|
|
|
+ padding: 0 15px 0px 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .down {
|
|
|
+ height: 100vh;
|
|
|
+ .left {
|
|
|
+ width: 78%;
|
|
|
+ height: 100vh;
|
|
|
+ margin: 0 15px 0 0;
|
|
|
+ background-color: #2c2e32;
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ height: 100vh;
|
|
|
+ background-color: #2c2e32;
|
|
|
+ .title {
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ color: #ccc;
|
|
|
+ text-align: center;
|
|
|
+ border-bottom: 1px solid #cccccc5f;
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ .firstInfo {
|
|
|
+ padding: 0 10px;
|
|
|
+ .firstInfoList {
|
|
|
+ height: 740px;
|
|
|
+ overflow-y: auto;
|
|
|
+ color: #ccc;
|
|
|
+ .list {
|
|
|
+ margin: 0 0 5px 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .firstInfoInput {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .secondInfoList {
|
|
|
+ padding: 0 10px;
|
|
|
+ height: 775px;
|
|
|
+ overflow-y: auto;
|
|
|
+ .personalList {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+/deep/.el-tabs__item {
|
|
|
+ color: #ccc;
|
|
|
+}
|
|
|
+/deep/ .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
|
|
|
+ padding-left: 20px;
|
|
|
+}
|
|
|
+/deep/.el-tabs--top .el-tabs__item.is-top:last-child {
|
|
|
+ padding-right: 20px;
|
|
|
+}
|
|
|
+/deep/.el-table td {
|
|
|
+ padding: 5px 0;
|
|
|
+ color: #ccc;
|
|
|
+}
|
|
|
+/deep/.el-table th {
|
|
|
+ padding: 5px 0;
|
|
|
+ background: #000;
|
|
|
+}
|
|
|
+/deep/.el-table tr {
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+/deep/.el-table {
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+.el-table {
|
|
|
+ /deep/tbody tr:hover > td {
|
|
|
+ background-color: #409eff;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|