Commit 6f43f277 authored by Xuguangxing's avatar Xuguangxing

feat: 暂时去除自由容器的视频支持

parent 7d63b3fd
...@@ -10,7 +10,7 @@ import saTrackMixins from '@qg/citrus-ui/src/helper/mixins/saTrack.mixins'; ...@@ -10,7 +10,7 @@ import saTrackMixins from '@qg/citrus-ui/src/helper/mixins/saTrack.mixins';
export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixin, saTrackMixins) { export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixin, saTrackMixins) {
@Getter('pageData') pageData; @Getter('pageData') pageData;
@State(state => state.activity.curChildIndex) curChildIndex; @State(state => state.activity.curChildIndex) curChildIndex;
showVideo = false; // showVideo = false;
@Mutation('UPDATE_PAGE_INFO') updatePageInfo; @Mutation('UPDATE_PAGE_INFO') updatePageInfo;
@Prop({type: Object, default: () => ({ child: [] })}) childItem; @Prop({type: Object, default: () => ({ child: [] })}) childItem;
@Prop({type: Object, default: () => ({})}) saInfo; @Prop({type: Object, default: () => ({})}) saInfo;
...@@ -38,7 +38,7 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi ...@@ -38,7 +38,7 @@ export default class FreedomContainer extends Mixins(TransformStyleMixin, SaMixi
} }
mounted() { mounted() {
this.showVideo = true; // this.showVideo = true;
// 根据背景图设置元素高度 // 根据背景图设置元素高度
// const index = this.pageData?.elements?.findIndex(v => v.point?.responsive); // const index = this.pageData?.elements?.findIndex(v => v.point?.responsive);
// const { props: { backgroundImage }, point } = this.pageData?.elements[index] || { props: {}}; // const { props: { backgroundImage }, point } = this.pageData?.elements[index] || { props: {}};
......
<template> <template>
<div class="freedom" v-track.banClick="{link}" @click="clickEvent"> <div class="freedom" v-track.banClick="{link}" @click="clickEvent">
<div class="freedom-body"> <div class="freedom-body">
<video width="100%" ref="videoBackground" height="auto" style="z-index: -10; osition: absolute; top: 0; left: 0" v-if="showVideo && childItem.props.freedomVideo" :src="childItem.props.freedomVideo" playsinline autoplay loop muted /> <!-- <video width="100%" ref="videoBackground" height="auto" style="z-index: -10; osition: absolute; top: 0; left: 0" v-if="showVideo && childItem.props.freedomVideo" :src="childItem.props.freedomVideo" playsinline autoplay loop muted /> -->
<component :class="['freedom-body-item', { 'Fb-item_selected': curChildIndex === index }]" v-for="(item, index) in childItem.child" :style="transformStyle(item.commonStyle, 'container')" :is="item.name" :key="index" :sa-info="getSaInfo(item)" v-bind="item.props"></component> <component :class="['freedom-body-item', { 'Fb-item_selected': curChildIndex === index }]" v-for="(item, index) in childItem.child" :style="transformStyle(item.commonStyle, 'container')" :is="item.name" :key="index" :sa-info="getSaInfo(item)" v-bind="item.props"></component>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment