Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
梁志锋
9 years ago
Commit
e27bf1372a9760365951fbe2994534dce13e84a2
1 parent
39911ba2
侧边栏 逛返回按钮点透问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
static/js/home/home.js
static/js/home/home.js
View file @
e27bf13
...
...
@@ -19,7 +19,6 @@ var $ = require('jquery'),
var
start
=
0
,
swiperClass
,
$logotrans
=
$
(
'.home-header .logo'
),
$choseArea
=
$
(
'.side-nav .first'
),
openSideNav
=
false
,
isen
=
true
;
...
...
@@ -38,7 +37,7 @@ $('.nav-btn').on('touchstart', function(event) {
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
innerScroll
.
disableScroll
(
$
choseArea
);
innerScroll
.
disableScroll
(
$
sideNav
);
return
false
;
});
...
...
@@ -54,7 +53,7 @@ function hideSideBar() {
}
$
(
'.overlay'
).
on
(
'touchstart'
,
function
(
e
)
{
innerScroll
.
enableScroll
(
$
choseArea
);
innerScroll
.
enableScroll
(
$
sideNav
);
hideSideBar
();
return
false
;
});
...
...
@@ -64,6 +63,7 @@ $sideNav.on('touchend', 'li', function(e) {
if
(
$
(
this
).
find
(
'.sub-nav'
).
size
()
>
0
)
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$
(
this
).
find
(
'.sub-nav'
).
addClass
(
'show'
);
$
(
this
).
find
(
'.highlight'
).
removeClass
(
'highlight'
);
}
if
(
e
.
target
.
pathname
===
location
.
pathname
)
{
...
...
@@ -206,4 +206,4 @@ exports.set = function(c) {
});
};
require
(
'./maybe-like'
)();
require
(
'./maybe-like'
)();
\ No newline at end of file
...
...
Please
register
or
login
to post a comment