|
@@ -11,19 +11,16 @@
|
|
|
<span>[{{ getDate(item.meta) }}]</span>
|
|
|
<span>展会负责人</span>
|
|
|
<span>
|
|
|
- <el-link v-if="item.file_url" :href="item.file_url" target="_blank" :underline="false" class="videoPlay">视频播放</el-link>
|
|
|
+ <el-link v-if="item.file_url.length > 0" :href="getFile(item.file_url)" target="_blank" :underline="false" class="videoPlay"
|
|
|
+ >视频播放</el-link
|
|
|
+ >
|
|
|
</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="content">
|
|
|
{{ item.content }}
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="image">
|
|
|
- <!-- <el-image :src="tag.img_url" v-for="(tag, tagindex) in item.url" :key="tagindex"></el-image> -->
|
|
|
- <el-image :src="item.img_url">
|
|
|
- <div slot="error" class="image-slot">
|
|
|
- <i class="el-icon-picture-outline"></i>
|
|
|
- </div>
|
|
|
- </el-image>
|
|
|
+ <el-image :src="tag.url" v-for="(tag, tagindex) in item.img_url" :key="tagindex"></el-image>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -137,6 +134,10 @@ export default {
|
|
|
container.scrollTop = container.scrollHeight;
|
|
|
});
|
|
|
},
|
|
|
+ // 获取视频路径
|
|
|
+ getFile(data) {
|
|
|
+ if (data.length > 0) return data[0].url;
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|