Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
2016-07-21 11:17:49 +0800
Commit
a9a9205e7ec61a5115f178603f635c645b7ead87
1 parent
68eb1ba9
品类 offset top
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
public/js/channel/cate.page.js
public/scss/brand/_cate.css
public/js/channel/cate.page.js
View file @
a9a9205
...
...
@@ -64,6 +64,10 @@ $cateContainer.on('touchend', function(e) {
$subLevel
.
not
(
'.hide'
).
addClass
(
'hide'
);
$subLevel
.
eq
(
index
).
removeClass
(
'hide'
);
$subLevel
.
css
({
top
:
$cur
.
offset
().
top
-
60
});
}
});
...
...
public/scss/brand/_cate.css
View file @
a9a9205
...
...
@@ -127,6 +127,7 @@
.sub-level
{
width
:
100%
;
background-color
:
#f6f6f6
;
position
:
relative
;
&.hide
{
display
:
none
;
...
...
Please
register
or
login
to post a comment