|
@@ -3,20 +3,12 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="video">
|
|
<el-col :span="24" class="video">
|
|
- <!-- <video :src="file_path" controls="controls" style="height: 200px; width: 100%;">
|
|
|
|
|
|
+ <video :src="dockInfo.file_path" autoplay="" controls="controls" v-if="dockInfo.file_path != null || ''" class="videoinfo">
|
|
您的浏览器不支持 video 标签。
|
|
您的浏览器不支持 video 标签。
|
|
- </video> -->
|
|
|
|
- <el-col :span="24" class="leftvideo">
|
|
|
|
- <el-col :span="24" class="video">
|
|
|
|
- <video :src="dockInfo.file_path" autoplay="" controls="controls" v-if="dockInfo.file_path != null || ''">
|
|
|
|
- 您的浏览器不支持 video 标签。
|
|
|
|
- </video>
|
|
|
|
- <div class="videointro" v-else>
|
|
|
|
- <p>{{ dockInfo.videointro }}</p>
|
|
|
|
- <!-- <p>{{ dockInfo.videointroinfo }}</p> -->
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </video>
|
|
|
|
+ <div class="videointro" v-else>
|
|
|
|
+ <p>{{ dockInfo.videointro }}</p>
|
|
|
|
+ </div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="chat">
|
|
<el-col :span="24" class="chat">
|
|
<chat></chat>
|
|
<chat></chat>
|
|
@@ -77,8 +69,6 @@ export default {
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
- input: '',
|
|
|
|
- dockInfo: [],
|
|
|
|
activeName: 'first',
|
|
activeName: 'first',
|
|
//科技需求
|
|
//科技需求
|
|
twoList: [],
|
|
twoList: [],
|
|
@@ -87,35 +77,52 @@ export default {
|
|
//专家智库
|
|
//专家智库
|
|
expertList: [],
|
|
expertList: [],
|
|
expertimage: require('@/assets/222.png'),
|
|
expertimage: require('@/assets/222.png'),
|
|
|
|
+ // 展会详情
|
|
|
|
+ dockInfo: {},
|
|
|
|
+ times: 5,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.seachInfo();
|
|
|
|
|
|
+ async created() {
|
|
|
|
+ await this.seachdock();
|
|
|
|
+ await this.seachInfo();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...dock({ dockQuery: 'query', palcefetch: 'fetch' }),
|
|
|
|
|
|
+ ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
|
|
...exportuser({ expertQuery: 'query' }),
|
|
...exportuser({ expertQuery: 'query' }),
|
|
async seachInfo({ skip = 0, limit = 5, ...info } = {}) {
|
|
async seachInfo({ skip = 0, limit = 5, ...info } = {}) {
|
|
- let res = await this.palcefetch(this.id);
|
|
|
|
|
|
+ let res = await this.dockFetch(this.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
- this.$set(this, `dockInfo`, res.data);
|
|
|
|
|
|
+ let czxm = res.data.apply.map(item => item.goodsList);
|
|
|
|
+ czxm = _.flattenDeep(czxm);
|
|
|
|
+ var czxmNew = czxm.filter(item => item.dockStatus == '1');
|
|
|
|
+ //科技需求
|
|
|
|
+ var jishuData = czxmNew.filter(item => item.type === '0');
|
|
|
|
+ this.$set(this, `twoList`, jishuData);
|
|
|
|
+ //技术成果
|
|
|
|
+ var chanpinData = czxmNew.filter(item => item.type === '1');
|
|
|
|
+ if (chanpinData) this.$set(this, `demandList`, chanpinData);
|
|
|
|
+ // 专家智库
|
|
|
|
+ let exportdata = await this.expertQuery({ role: 6, limit: 6 });
|
|
|
|
+ if (this.$checkRes(exportdata)) this.$set(this, `expertList`, exportdata.data);
|
|
}
|
|
}
|
|
- let czxm = res.data.apply.map(item => item.goodsList);
|
|
|
|
- czxm = _.flattenDeep(czxm);
|
|
|
|
- var czxmNew = czxm.filter(item => item.dockStatus == '1');
|
|
|
|
- //科技需求
|
|
|
|
- var jishuData = czxmNew.filter(item => item.type === '0');
|
|
|
|
- this.$set(this, `twoList`, jishuData);
|
|
|
|
- //技术成果
|
|
|
|
- var chanpinData = czxmNew.filter(item => item.type === '1');
|
|
|
|
- if (chanpinData) this.$set(this, `demandList`, chanpinData);
|
|
|
|
- // 专家智库
|
|
|
|
- let exportdata = await this.expertQuery({ role: 6, limit: 6 });
|
|
|
|
- if (this.$checkRes(exportdata)) this.$set(this, `expertList`, exportdata.data);
|
|
|
|
- console.log(this.expertList);
|
|
|
|
},
|
|
},
|
|
- onSubmit() {
|
|
|
|
- console.log(this.input);
|
|
|
|
|
|
+ // 文字/视频倒计时
|
|
|
|
+ daojishi() {
|
|
|
|
+ this.timer = setInterval(() => {
|
|
|
|
+ this.times--;
|
|
|
|
+ if (this.times === 0) {
|
|
|
|
+ this.seachdock();
|
|
|
|
+ this.times = 5;
|
|
|
|
+ clearInterval(this.timer);
|
|
|
|
+ }
|
|
|
|
+ }, 1000);
|
|
|
|
+ },
|
|
|
|
+ async seachdock() {
|
|
|
|
+ let res = await this.dockFetch(this.id);
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ // 对接会详情
|
|
|
|
+ this.$set(this, `dockInfo`, res.data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -130,6 +137,16 @@ export default {
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|
|
},
|
|
},
|
|
|
|
+ watch: {
|
|
|
|
+ times: {
|
|
|
|
+ handler(val) {
|
|
|
|
+ if (val == 5) {
|
|
|
|
+ this.daojishi();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ immediate: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -140,38 +157,36 @@ export default {
|
|
background: #fff;
|
|
background: #fff;
|
|
padding: 10px;
|
|
padding: 10px;
|
|
margin: 0 0 10px 0;
|
|
margin: 0 0 10px 0;
|
|
- height: 225px;
|
|
|
|
- .leftvideo {
|
|
|
|
- video {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 225px;
|
|
|
|
- background: #000;
|
|
|
|
- padding: 0px 0 15px 0px;
|
|
|
|
|
|
+ height: 250px;
|
|
|
|
+ .videoinfo {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 215px;
|
|
|
|
+ background: #000;
|
|
|
|
+ padding: 0px 0 15px 0px;
|
|
|
|
+ }
|
|
|
|
+ .videointro {
|
|
|
|
+ background: url(/img/directBack.d8126f77.png);
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ color: #fff;
|
|
|
|
+ padding: 0 15px;
|
|
|
|
+ height: 230px;
|
|
|
|
+ p:first-child {
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ padding: 25% 0;
|
|
}
|
|
}
|
|
- .videointro {
|
|
|
|
- background: url('~@/assets/directBack.png');
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
- color: #fff;
|
|
|
|
- padding: 0 15px;
|
|
|
|
- height: 225px;
|
|
|
|
- p:first-child {
|
|
|
|
- text-align: center;
|
|
|
|
- font-size: 30px;
|
|
|
|
- padding: 25% 0;
|
|
|
|
- }
|
|
|
|
- p:last-child {
|
|
|
|
- padding: 0;
|
|
|
|
- padding-top: 30px;
|
|
|
|
- text-align: center;
|
|
|
|
- font-size: 18px;
|
|
|
|
- line-height: 35px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- -webkit-line-clamp: 7;
|
|
|
|
- word-break: break-all;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
- }
|
|
|
|
|
|
+ p:last-child {
|
|
|
|
+ padding: 0;
|
|
|
|
+ padding-top: 30px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ line-height: 35px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ -webkit-line-clamp: 7;
|
|
|
|
+ word-break: break-all;
|
|
|
|
+ display: -webkit-box;
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|