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
fdfb8021524de403c1ec7f9cbc5414270480cf61
1 parent
4b1afed1
侧边连优化
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
static/js/home/home.js
static/sass/home/_index.scss
template/m.yohobuy.com/actions/category/brand/index.phtml
static/js/home/home.js
View file @
fdfb802
...
...
@@ -26,7 +26,7 @@ var requestFrame,
$logotrans
=
$
(
'.home-header .logo'
),
isen
=
true
;
var
navHammer
,
mobileWrapHammer
;
var
navHammer
;
require
(
'./maybe-like'
);
...
...
@@ -53,23 +53,18 @@ navHammer.on('tap', function(event) {
function
hideSideBar
()
{
if
(
$mobileWrap
.
hasClass
(
'menu-open'
))
{
$mobileWrap
.
removeClass
(
'menu-open'
);
$
overlay
.
css
(
'opacity'
,
0
);
$
(
'.overlay'
).
hide
(
);
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$sideNav
.
removeClass
(
'on'
);
$
(
'body'
).
css
({
height
:
'auto'
,
overflow
:
'auto'
});
setTimeout
(
function
()
{
$
(
'.overlay'
).
hide
();
},
300
);
}
}
mobileWrapHammer
=
new
Hammer
(
$
(
'.mobile-wrap'
)[
0
]);
mobileWrapHammer
.
on
(
'tap'
,
function
(
e
)
{
$
(
'.overlay'
).
on
(
'touchend'
,
function
(
e
)
{
hideSideBar
();
e
.
srcEvent
.
stopPropagation
();
return
false
;
});
...
...
static/sass/home/_index.scss
View file @
fdfb802
...
...
@@ -26,7 +26,6 @@
right
:
0
;
bottom
:
0
;
background
:
#000
;
opacity
:
0
;
z-index
:
4
;
@include
transition
(
opacity
1s
);
}
...
...
template/m.yohobuy.com/actions/category/brand/index.phtml
View file @
fdfb802
...
...
@@ -4,7 +4,6 @@
<div
class=
"search-box clearfix"
>
<a
href=
"{{searchUrl}}"
>
<input
type=
"text"
class=
"search-input"
placeholder=
"查找品牌"
readonly=
"true"
>
<!--
<span>查找品牌</span>
-->
<i
class=
"search-icon iconfont"
>
60
f;</i>
</a>
</div>
...
...
Please
register
or
login
to post a comment