|
@@ -0,0 +1,164 @@
|
|
|
+<template>
|
|
|
+ <div id="index">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24" class="main">
|
|
|
+ <el-col :span="24" class="one">
|
|
|
+ <el-col :span="12" class="left">
|
|
|
+ <span>{{ type == '0' ? '嘉宾访谈' : '项目路演' }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" class="right">
|
|
|
+ <el-button type="primary" size="mini" @click="back">返回活动首页</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="two">
|
|
|
+ <el-col :span="24" class="title">
|
|
|
+ {{ detailInfo.title }}
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="other">
|
|
|
+ <span>发布时间:{{ detailInfo.publish_time || '暂无' }}</span>
|
|
|
+ <span>信息来源:{{ detailInfo.origin || '暂无' }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="image" v-if="detailInfo.picture">
|
|
|
+ <el-image :src="detailInfo.picture"></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="video" v-if="detailInfo.filepath">
|
|
|
+ <video :src="detailInfo.filepath" controls="controls">
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
+ </video>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="content">
|
|
|
+ <p v-html="detailInfo.content"></p>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: interview } = createNamespacedHelpers('interview');
|
|
|
+const { mapActions: roadShow } = createNamespacedHelpers('roadShow');
|
|
|
+export default {
|
|
|
+ name: 'index',
|
|
|
+ props: {},
|
|
|
+ components: {},
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ detailInfo: {},
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ if (this.id) this.search();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...interview({ interviewFetch: 'fetch' }),
|
|
|
+ ...roadShow({ roadShowFetch: 'fetch' }),
|
|
|
+ async search() {
|
|
|
+ if (this.type == '0') {
|
|
|
+ let res = await this.interviewFetch(this.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `detailInfo`, res.data);
|
|
|
+ }
|
|
|
+ } else if (this.type == '1') {
|
|
|
+ let res = await this.roadShowFetch(this.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `detailInfo`, res.data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ back() {
|
|
|
+ this.$router.push({ path: '/achieveLive/detail', query: { dock_id: this.dock_id } });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ dock_id() {
|
|
|
+ return this.$route.query.dock_id;
|
|
|
+ },
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
+ type() {
|
|
|
+ return this.$route.query.type;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ metaInfo() {
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ test: {
|
|
|
+ deep: true,
|
|
|
+ immediate: true,
|
|
|
+ handler(val) {},
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.main {
|
|
|
+ min-height: 505px;
|
|
|
+ box-shadow: 0 0 5px #ccc;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 20px;
|
|
|
+ .one {
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-bottom: 2px solid #666;
|
|
|
+ .left {
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ background: #ff0000;
|
|
|
+ color: #fff;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0px 10px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .two {
|
|
|
+ .title {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 30px;
|
|
|
+ font-weight: bold;
|
|
|
+ padding: 15px 0;
|
|
|
+ }
|
|
|
+ .other {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #666;
|
|
|
+ padding: 0 0 15px 0;
|
|
|
+ span {
|
|
|
+ padding: 0 0 0 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .image {
|
|
|
+ text-align: center;
|
|
|
+ height: 300px;
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 0 0 15px 0;
|
|
|
+ .el-image {
|
|
|
+ width: 50%;
|
|
|
+ height: 300px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .video {
|
|
|
+ text-align: center;
|
|
|
+ margin: 0 0 15px 0;
|
|
|
+ height: 300px;
|
|
|
+ overflow: hidden;
|
|
|
+ video {
|
|
|
+ width: 50%;
|
|
|
+ height: 300px;
|
|
|
+ background-color: #000000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|