Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
2e55c58568615e90a19a1ad00235e304fde09b06
1 parent
70e1e524
侧边栏 点击
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
static/js/home/home.js
static/js/home/home.js
View file @
2e55c58
...
...
@@ -68,18 +68,19 @@ mobileWrapHammer.on('tap', function(e) {
});
//点击一级导航,弹出二级导航
$sideNav
.
on
(
'touchend'
,
'li'
,
function
()
{
$sideNav
.
on
(
'touchend'
,
'li'
,
function
(
e
)
{
if
(
$
(
this
).
find
(
'.sub-nav'
).
size
()
>
0
)
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$
(
this
).
find
(
'.sub-nav'
).
addClass
(
'show'
);
}
return
false
;
e
.
stopPropagation
()
;
});
//返回一级导航,收起二级导航
$
(
'.sub-nav'
).
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchend'
,
function
(
e
)
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
e
.
stopPropagation
();
return
false
;
});
}).
on
(
'touchend'
,
function
()
{
...
...
Please
register
or
login
to post a comment