Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hongweigao
8 years ago
Commit
7797833006f3536811a22ff0d5a21fa610e48429
1 parent
d611f889
修改top
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
apps/product/views/action/list/new-arrive.hbs
public/js/product/newArrive.page.js
apps/product/views/action/list/new-arrive.hbs
View file @
7797833
...
...
@@ -91,15 +91,17 @@
{{#
newProduct
}}
<div
id=
"new-product-floor"
class=
"newProduct-floor"
>
{{>
common
/
floor-header
}}
<div
class=
"all-catagory fixed-area clearfix"
>
<div
class=
"catagory-text"
>
推荐品类
</div>
<ul
class=
"catagory-navs clearfix"
>
{{#
ctyList
}}
<li
{{#if
active
}}
class=
"active"
{{/if}}
data-cateId=
"
{{
cateId
}}
"
>
<a
href=
"
{{
url
}}
"
>
{{
name
}}
</a>
</li>
{{/
ctyList
}}
</ul>
<div
style=
"height:28px;"
id=
"catagory-wrap"
>
<div
class=
"all-catagory fixed-area clearfix"
>
<div
class=
"catagory-text"
>
推荐品类
</div>
<ul
class=
"catagory-navs clearfix"
>
{{#
ctyList
}}
<li
{{#if
active
}}
class=
"active"
{{/if}}
data-cateId=
"
{{
cateId
}}
"
>
<a
href=
"
{{
url
}}
"
>
{{
name
}}
</a>
</li>
{{/
ctyList
}}
</ul>
</div>
</div>
<div
id=
"pjax-container"
class=
"new-arrive-list clearfix"
>
{{>
list
/
new-arrive-list
}}
...
...
public/js/product/newArrive.page.js
View file @
7797833
...
...
@@ -99,7 +99,7 @@ function getProData($good) {
}
function
fixAreaTop
(
scrollTop
)
{
var
fixedAreaTop
=
$
fixedArea
.
offset
()
?
$fixedArea
.
offset
().
top
+
28
:
0
;
var
fixedAreaTop
=
$
(
'#catagory-wrap'
).
offset
()
?
$
(
'#catagory-wrap'
)
.
offset
().
top
+
28
:
0
;
if
(
scrollTop
>
fixedAreaTop
)
{
$fixedArea
.
css
({
...
...
@@ -107,13 +107,11 @@ function fixAreaTop(scrollTop) {
top
:
0
});
$
(
'#pjax-container'
).
css
(
'margin-top'
,
'48px'
);
}
else
{
$fixedArea
.
css
({
position
:
'static'
,
top
:
0
});
$
(
'#pjax-container'
).
css
(
'margin-top'
,
'20px'
);
}
}
new
Swiper
(
'.rec-swiper'
,
{
...
...
Please
register
or
login
to post a comment