Browse Source

首页底部栏展示修改 视频新闻将视频放到顶部

master
aBin 3 years ago
parent
commit
7ee7e586ba
  1. 12
      src/components/Footer/Footer.vue
  2. 8
      src/components/RichText/RichText.vue

12
src/components/Footer/Footer.vue

@ -60,18 +60,18 @@ import { getLink } from 'config/api';
export default {
data() {
return {
isTrue: true,
isTrue: false,
str: '',
otherLink: {},
};
},
watch: {
'$route.path'(value) {
if (value === '/') {
this.isTrue = true;
} else {
this.isTrue = false;
}
// if (value === '/') {
// this.isTrue = true;
// } else {
// this.isTrue = false;
// }
},
},
created() {

8
src/components/RichText/RichText.vue

@ -8,6 +8,9 @@
<div v-if="richObj.publishTime">发表日期: {{ $moment(richObj.publishTime).format('YYYY-MM-DD') }}</div>
</div>
</template>
<div style="text-align:center;" class="mt-4" v-if="richObj && richObj.titleUrl && code === '0207'">
<video style="width: 100%;height: 400px" controls :src="richObj.titleUrl" />
</div>
<div class="mt-4 content-size" v-if="richObj.content" v-dompurify-html="richObj.content"></div>
<a-empty v-else />
<template v-if="richObj && richObj.title">
@ -24,7 +27,7 @@ export default {
},
},
data() {
return {};
return { code: '' };
},
watch: {
richObj(val) {
@ -34,6 +37,9 @@ export default {
}
},
},
mounted() {
this.code = this.$route.query.code;
},
created() {
if (this.richObj.jumpUrl) {
window.open(this.richObj.jumpUrl);

Loading…
Cancel
Save