|
@@ -45,25 +45,31 @@
|
|
|
<div class="w_0100">
|
|
|
<div class="w_1200">
|
|
|
<el-col :span="24" class="hallDetail">
|
|
|
- <el-col :span="12" class="left">
|
|
|
+ <el-col :span="18" class="left">
|
|
|
<el-col :span="24" class="top">
|
|
|
图文直播
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- 直播画面
|
|
|
+ <template v-for="(i, index) in mainTalk">
|
|
|
+ <span :key="`${index + new Date().getTime()}`">[{{ i.send_time }}]</span>
|
|
|
+ <span v-html="i.content" :key="`${index + new Date().getTime()}`"></span>
|
|
|
+ </template>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" class="right">
|
|
|
+ <el-col :span="6" class="right">
|
|
|
<el-col :span="24" class="top">
|
|
|
聊天记录
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- 聊天记录列表
|
|
|
+ <template v-for="(i, index) in otherTalk">
|
|
|
+ <span :key="`${index + new Date().getTime()}`">[{{ i.send_time }}]</span>
|
|
|
+ <span v-html="i.content" :key="`${index + new Date().getTime()}`"></span>
|
|
|
+ </template>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="hallDetailInput">
|
|
|
- <el-input placeholder="请输入内容"></el-input>
|
|
|
- <el-button type="primary">发送</el-button>
|
|
|
+ <el-col :span="24" class="hallDetailInput" style="text-align:center">
|
|
|
+ <wang-editor v-model="content" style="height:130px;padding-bottom:120px"></wang-editor>
|
|
|
+ <el-button type="primary" @click="sendMessage">发送</el-button>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</div>
|
|
@@ -96,14 +102,35 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import wangEditor from '@/components/wang-editor.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
name: 'hallDetail',
|
|
|
props: {},
|
|
|
- components: {},
|
|
|
- data: () => ({}),
|
|
|
- created() {},
|
|
|
- methods: {},
|
|
|
+ components: { wangEditor },
|
|
|
+ data: () => ({
|
|
|
+ content: '',
|
|
|
+ mainTalk: [
|
|
|
+ {
|
|
|
+ sender_name: 'test main',
|
|
|
+ content: '<p>test test</p>',
|
|
|
+ send_time: '10:29:20',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ otherTalk: [
|
|
|
+ {
|
|
|
+ sender_name: 'test others',
|
|
|
+ content: '<p>test others</p>',
|
|
|
+ send_time: '11:05:10',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ }),
|
|
|
+ created() {
|
|
|
+ this.search();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ sendMessage() {},
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
pageTitle() {
|
|
@@ -119,12 +146,12 @@ export default {
|
|
|
<style lang="less">
|
|
|
@import '~@/style/style.css';
|
|
|
.hallDetail {
|
|
|
- height: 710px;
|
|
|
+ height: 800px;
|
|
|
border: 1px solid red;
|
|
|
margin: 0 0 20px 0;
|
|
|
}
|
|
|
.hallDetail .left {
|
|
|
- height: 600px;
|
|
|
+ height: 450px;
|
|
|
border: 1px solid #cccccc;
|
|
|
}
|
|
|
.hallDetail .left .top {
|
|
@@ -136,7 +163,7 @@ export default {
|
|
|
}
|
|
|
.hallDetail .right {
|
|
|
border: 1px solid #ccc;
|
|
|
- height: 600px;
|
|
|
+ height: 450px;
|
|
|
}
|
|
|
.hallDetail .right .top {
|
|
|
height: 40px;
|
|
@@ -146,7 +173,7 @@ export default {
|
|
|
border-bottom: 1px dashed #ccc;
|
|
|
}
|
|
|
.hallDetailInput {
|
|
|
- padding: 31px 0 0 215px;
|
|
|
+ padding: 30px 100px 0px 100px;
|
|
|
}
|
|
|
.hallDetailInput .el-input {
|
|
|
width: 70%;
|