|
@@ -2,39 +2,37 @@
|
|
<div id="detail">
|
|
<div id="detail">
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
- <el-col :span="24" class="top">
|
|
|
|
- <div class="w_1200">
|
|
|
|
- <topInfo :info="liveInfo"></topInfo>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-col :span="24" class="one">
|
|
|
|
+ <top :info="info"></top>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="info">
|
|
|
|
|
|
+ <el-col :span="24" class="two">
|
|
<div class="w_1200">
|
|
<div class="w_1200">
|
|
- <el-col :span="24" class="one">
|
|
|
|
|
|
+ <el-col :span="24" class="two_1">
|
|
<el-col :span="12" class="left">
|
|
<el-col :span="12" class="left">
|
|
- <videoData :info="liveInfo"></videoData>
|
|
|
|
|
|
+ <video-data :info="info"></video-data>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="right">
|
|
<el-col :span="12" class="right">
|
|
- <imgtxtData></imgtxtData>
|
|
|
|
|
|
+ <imgtext-data></imgtext-data>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="two">
|
|
|
|
- <productData></productData>
|
|
|
|
|
|
+ <el-col :span="24" class="two_2">
|
|
|
|
+ <product-data></product-data>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="thr">
|
|
|
|
- <expertData></expertData>
|
|
|
|
|
|
+ <el-col :span="24" class="two_3">
|
|
|
|
+ 专家
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="four">
|
|
|
|
|
|
+ <!-- <el-col :span="24" class="two_4">
|
|
<el-image :src="fourImg"> </el-image>
|
|
<el-image :src="fourImg"> </el-image>
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="five">
|
|
|
|
|
|
+ </el-col> -->
|
|
|
|
+ <el-col :span="24" class="two_5">
|
|
<el-col :span="8" class="left">
|
|
<el-col :span="8" class="left">
|
|
- <guestData></guestData>
|
|
|
|
|
|
+ 嘉宾
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="8" class="cen">
|
|
|
|
- <projectData></projectData>
|
|
|
|
|
|
+ <el-col :span="8" class="center">
|
|
|
|
+ 项目
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" class="right">
|
|
<el-col :span="8" class="right">
|
|
- <chatData></chatData>
|
|
|
|
|
|
+ 公共
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
@@ -49,40 +47,37 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import foot from '@common/src/components/common/foot.vue';
|
|
import foot from '@common/src/components/common/foot.vue';
|
|
-import topInfo from './detail/topInfo.vue';
|
|
|
|
|
|
+import top from './detail/top.vue';
|
|
import videoData from './detail/videoData.vue';
|
|
import videoData from './detail/videoData.vue';
|
|
-import imgtxtData from './detail/imgtxtData.vue';
|
|
|
|
|
|
+import imgtextData from './detail/imgtextData.vue';
|
|
import productData from './detail/productData.vue';
|
|
import productData from './detail/productData.vue';
|
|
-import expertData from './detail/expertData.vue';
|
|
|
|
-import guestData from './detail/guestData.vue';
|
|
|
|
-import projectData from './detail/projectData.vue';
|
|
|
|
-import chatData from './detail/chatData.vue';
|
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
export default {
|
|
export default {
|
|
- metaInfo() {
|
|
|
|
- return { title: this.$route.meta.title };
|
|
|
|
- },
|
|
|
|
name: 'detail',
|
|
name: 'detail',
|
|
props: {},
|
|
props: {},
|
|
- components: { foot, topInfo, videoData, imgtxtData, productData, expertData, guestData, projectData, chatData },
|
|
|
|
|
|
+ components: {
|
|
|
|
+ foot,
|
|
|
|
+ top,
|
|
|
|
+ videoData,
|
|
|
|
+ imgtextData,
|
|
|
|
+ productData,
|
|
|
|
+ },
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
- // 展会详情
|
|
|
|
- liveInfo: {},
|
|
|
|
- // 第四部分
|
|
|
|
fourImg: require('@common/src/assets/live/top_bg.png'),
|
|
fourImg: require('@common/src/assets/live/top_bg.png'),
|
|
|
|
+ info: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- async created() {
|
|
|
|
- await this.searchInfo();
|
|
|
|
|
|
+ created() {
|
|
|
|
+ if (this.id) this.search();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...dock(['fetch']),
|
|
...dock(['fetch']),
|
|
- async searchInfo() {
|
|
|
|
|
|
+ async search() {
|
|
let res = await this.fetch(this.id);
|
|
let res = await this.fetch(this.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
- this.$set(this, `liveInfo`, res.data);
|
|
|
|
|
|
+ this.$set(this, `info`, res.data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -92,22 +87,23 @@ export default {
|
|
return this.$route.query.id;
|
|
return this.$route.query.id;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- watch: {},
|
|
|
|
|
|
+ metaInfo() {
|
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
|
+ },
|
|
|
|
+ watch: {
|
|
|
|
+ test: {
|
|
|
|
+ deep: true,
|
|
|
|
+ immediate: true,
|
|
|
|
+ handler(val) {},
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.main {
|
|
.main {
|
|
- .top {
|
|
|
|
- background: url('~@common/src/assets/live/dock_top.png');
|
|
|
|
- height: 480px;
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
- }
|
|
|
|
- .info {
|
|
|
|
- min-height: 500px;
|
|
|
|
- background: #fcfcfd;
|
|
|
|
- .one {
|
|
|
|
|
|
+ .two {
|
|
|
|
+ .two_1 {
|
|
height: 480px;
|
|
height: 480px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
margin: 0 0 15px 0;
|
|
margin: 0 0 15px 0;
|
|
@@ -115,7 +111,9 @@ export default {
|
|
width: 49%;
|
|
width: 49%;
|
|
height: 480px;
|
|
height: 480px;
|
|
margin: 0 15px 0 0;
|
|
margin: 0 15px 0 0;
|
|
- border: 4px solid #000;
|
|
|
|
|
|
+ // border: 4px solid #000;
|
|
|
|
+ box-shadow: 0 0 5px #ccc;
|
|
|
|
+ border-radius: 5px;
|
|
}
|
|
}
|
|
.right {
|
|
.right {
|
|
width: 49.5%;
|
|
width: 49.5%;
|
|
@@ -124,21 +122,21 @@ export default {
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .two {
|
|
|
|
|
|
+ .two_2 {
|
|
height: 620px;
|
|
height: 620px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
box-shadow: 0 0 5px #ccc;
|
|
box-shadow: 0 0 5px #ccc;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
margin: 0 0 15px 0;
|
|
margin: 0 0 15px 0;
|
|
}
|
|
}
|
|
- .thr {
|
|
|
|
|
|
+ .two_3 {
|
|
height: 560px;
|
|
height: 560px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
box-shadow: 0 0 5px #ccc;
|
|
box-shadow: 0 0 5px #ccc;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
margin: 0 0 15px 0;
|
|
margin: 0 0 15px 0;
|
|
}
|
|
}
|
|
- .four {
|
|
|
|
|
|
+ .two_4 {
|
|
height: 120px;
|
|
height: 120px;
|
|
box-shadow: 0 0 5px #ccc;
|
|
box-shadow: 0 0 5px #ccc;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
@@ -149,7 +147,7 @@ export default {
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .five {
|
|
|
|
|
|
+ .two_5 {
|
|
height: 510px;
|
|
height: 510px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
margin: 0 0 15px 0;
|
|
margin: 0 0 15px 0;
|
|
@@ -161,7 +159,7 @@ export default {
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
margin: 0 10px 0 0;
|
|
margin: 0 10px 0 0;
|
|
}
|
|
}
|
|
- .cen {
|
|
|
|
|
|
+ .center {
|
|
width: 33%;
|
|
width: 33%;
|
|
height: 510px;
|
|
height: 510px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|