Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
6f43f277
Commit
6f43f277
authored
Jul 25, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 暂时去除自由容器的视频支持
parent
7d63b3fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.ts
app/web/page/activity/component/FreedomContainer/index.ts
+2
-2
index.vue
app/web/page/activity/component/FreedomContainer/index.vue
+1
-1
No files found.
app/web/page/activity/component/FreedomContainer/index.ts
View file @
6f43f277
...
@@ -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: {}};
...
...
app/web/page/activity/component/FreedomContainer/index.vue
View file @
6f43f277
<
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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment