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
3dea9918
Commit
3dea9918
authored
Oct 09, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(free-container): 自由容器点击修复
parent
d5953fe9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
activity.ts
app/controller/activity.ts
+1
-1
index.ts
app/web/page/activity/view/activity/index.ts
+1
-1
index.vue
app/web/page/activity/view/activity/index.vue
+1
-1
transformStyle.mixin.ts
app/web/page/mixins/transformStyle.mixin.ts
+4
-2
No files found.
app/controller/activity.ts
View file @
3dea9918
app/web/page/activity/view/activity/index.ts
View file @
3dea9918
...
...
@@ -162,7 +162,7 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin, Disab
hideBottomBtns
(
state
)
{
this
.
showBackTop
=
state
;
}
//
计算商品导航组件位置
//
处理页面隐藏
pageVisibilityChange
()
{
if
(
EASY_ENV_IS_NODE
)
{
return
;
}
let
hidden
=
'
hidden
'
;
...
...
app/web/page/activity/view/activity/index.vue
View file @
3dea9918
...
...
@@ -2,7 +2,7 @@
<div
class=
"activity"
:style=
"transformStyle(pageData.commonStyle)"
>
<template
v-if=
"!noPageData"
>
<div
class=
"layout"
>
<div
:style=
"transformStyle(item.commonStyle, item.point)"
v-for=
"(item, index) in pageData.elements"
<div
:style=
"transformStyle(item.commonStyle, item.point
, item.name
)"
v-for=
"(item, index) in pageData.elements"
:key=
"item.point.i"
:id=
"`item_$
{item.id}`"
@click="dot(item.title)"
...
...
app/web/page/mixins/transformStyle.mixin.ts
View file @
3dea9918
...
...
@@ -6,7 +6,7 @@ import { Mutation } from 'vuex-class';
export
default
class
TransformStyleMixin
extends
Vue
{
@
Mutation
(
'
SET_ELEMENT_POINT
'
)
setElementPoint
;
transformStyle
(
styleObj
,
point
=
{})
{
transformStyle
(
styleObj
,
point
=
{}
,
name
)
{
const
style
=
{
backgroundRepeat
:
'
no-repeat
'
,
backgroundSize
:
'
cover
'
...
...
@@ -22,7 +22,9 @@ export default class TransformStyleMixin extends Vue {
style
.
backgroundImage
=
`url(
${
style
.
backgroundImage
}
)`
;
}
}
style
.
minHeight
=
point
?.
h
?
`
${(
point
.
h
/
37.5
).
toFixed
(
2
)}
rem`
:
null
;
if
(
name
===
'
freedom-container
'
)
{
style
.
height
=
point
?.
h
?
`
${(
point
.
h
/
37.5
).
toFixed
(
2
)}
rem`
:
null
;
}
// style.zIndex = 2;
return
style
;
}
...
...
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