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
ebcc36e9
Commit
ebcc36e9
authored
Jun 23, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 定位问题修复
parent
bfa656ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
index.vue
app/web/page/activity/component/PageBottomTip/index.vue
+8
-1
index.ts
app/web/page/activity/view/activity/index.ts
+7
-12
No files found.
app/web/page/activity/component/PageBottomTip/index.vue
View file @
ebcc36e9
<
template
>
<div
class=
"Pb-container"
>
<div
class=
"Pb-container"
:style=
"bgColor"
>
<span
class=
"Pb-text"
:style=
"style"
>
{{
txt
}}
</span>
</div>
</
template
>
...
...
@@ -16,6 +16,12 @@ export default {
return
{
color
:
this
.
pageData
.
props
.
pageBottomColor
};
},
// TODO 这样不太好
bgColor
()
{
return
{
'
backgroundColor
'
:
this
.
pageData
.
commonStyle
.
backgroundColor
};
}
}
}
...
...
@@ -24,6 +30,7 @@ export default {
.Pb {
&-container {
height: 60px;
width: 100%;
text-align: center;
display: flex;
align-items: center;
...
...
app/web/page/activity/view/activity/index.ts
View file @
ebcc36e9
...
...
@@ -24,26 +24,23 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
h
:
60
,
i
:
'
page-bottom-top
'
};
layout
:
object
=
[];
isLayoutComReady
=
false
;
showBackTop
=
false
;
targetEle
:
HTMLElement
|
null
=
null
;
loading
:
boolean
=
true
;
modfiTabsStyleDebounce
=
debounce
(
this
.
modfiTabsStyle
,
300
);
get
layout
()
{
return
this
.
pageData
&&
this
.
pageData
.
elements
.
map
(
v
=>
v
.
point
)
||
[];
}
get
backTopList
()
{
return
this
.
pageData
&&
this
.
pageData
.
props
.
showShopCart
?
[
{
icon
:
'
shopping-cart-o
'
,
url
:
'
xyqb://shoppingCartTab
'
}
]
:
[];
return
this
.
pageData
&&
this
.
pageData
.
props
.
showShopCart
?
this
.
pageData
.
props
.
backTopAttachInfo
:
[];
}
@
Watch
(
'
pageData
'
)
@
Watch
(
'
layout
'
)
onLayoutChange
(
val
)
{
const
layout
=
this
.
pageData
&&
this
.
pageData
.
elements
.
map
(
v
=>
v
.
point
)
||
[];
const
lastGridItemPoint
=
layout
[
layout
.
length
-
1
];
const
lastGridItemPoint
=
val
[
val
.
length
-
1
];
if
(
lastGridItemPoint
.
w
)
{
this
.
bottomInfo
=
{
x
:
0
,
...
...
@@ -55,8 +52,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
if
(
lastGridItemPoint
.
w
>
this
.
bottomInfo
.
w
)
{
this
.
bottomInfo
.
w
=
lastGridItemPoint
.
w
;
}
this
.
bottomInfo
.
y
=
this
.
bottomInfo
.
y
+
lastGridItemPoint
.
y
+
lastGridItemPoint
.
h
;
}
layout
.
push
(
this
.
bottomInfo
);
this
.
layout
=
layout
;
}
@
Watch
(
'
pageName
'
,
{
immediate
:
true
})
...
...
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