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
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
dfea6e058f972eafef01b36cf833e7f0bc8582dd
2 parents
472739e8
df73195a
Merge branch 'bugfix' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
56 additions
and
16 deletions
static/js/home/home.js
static/sass/guang/_plus-star.scss
static/sass/home/_index.scss
static/sass/home/_side-nav.scss
static/sass/layout/_footer_tab.scss
template/m.yohobuy.com/actions/index/boys/index.phtml
template/m.yohobuy.com/actions/index/girls/index.phtml
template/m.yohobuy.com/actions/index/kids/index.phtml
template/m.yohobuy.com/actions/index/lifestyle/index.phtml
static/js/home/home.js
View file @
dfea6e0
...
...
@@ -31,7 +31,7 @@ lazyLoad($('img.lazy'));
$
(
'.nav-btn'
).
on
(
'tap'
,
function
(
event
)
{
if
(
!
$
(
this
).
hasClass
(
'menu-open'
))
{
$
(
'.mobile-wrap'
).
addClass
(
'menu-open'
);
$
(
'.overlay'
).
addClass
(
'show'
);
$
(
'.overlay'
).
show
().
css
(
'opacity'
,
0.3
);
$
(
'.side-nav'
).
addClass
(
'on'
);
//设置boy高宽,页面不能上下滑动
...
...
@@ -48,13 +48,16 @@ $('.nav-btn').on('tap', function (event) {
$
(
'.mobile-wrap'
).
on
(
'tap'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'menu-open'
))
{
$
(
'.mobile-wrap'
).
removeClass
(
'menu-open'
);
$
(
'.overlay'
).
removeClass
(
'show'
);
$
(
'.overlay'
).
css
(
'opacity'
,
0
);
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$
(
'.side-nav'
).
removeClass
(
'on'
);
$
(
'body'
).
css
({
height
:
'auto'
,
overflow
:
'auto'
});
setTimeout
(
function
()
{
$
(
'.overlay'
).
hide
();
},
300
);
}
});
...
...
static/sass/guang/_plus-star.scss
View file @
dfea6e0
...
...
@@ -31,7 +31,7 @@
}
.plus-star-row
{
margin-bottom
:
1
0rem
/
$pxConvertRem
;
margin-bottom
:
3
0rem
/
$pxConvertRem
;
&
:last-child
{
margin-bottom
:
0
;
...
...
static/sass/home/_index.scss
View file @
dfea6e0
...
...
@@ -10,12 +10,11 @@
position
:
relative
;
z-index
:
2
;
background
:
#f0f0f0
;
@include
transition
(
transform
.3s
);
@include
transition
(
transform
.3s
ease-out
);
}
.mobile-wrap.menu-open
{
@include
transform
(
translateX
(
540rem
/
$pxConvertRem
));
@include
transition
(
transform
.3s
);
}
...
...
@@ -27,10 +26,12 @@
right
:
0
;
bottom
:
0
;
background
:
#000
;
opacity
:
0
.3
;
opacity
:
0
;
z-index
:
99
;
@include
transition
(
opacity
1s
);
}
.overlay.show
{
display
:
block
;
opacity
:
0
.3
;
}
...
...
static/sass/home/_side-nav.scss
View file @
dfea6e0
.side-nav
{
display
:
none
;
//
display: none;
background
:
#fff
;
position
:
fixed
;
top
:
0
;
...
...
@@ -8,6 +8,8 @@
left
:
0
;
z-index
:
1
;
overflow
:
hidden
;
@include
transform
(
translateX
(
-540rem
/
$pxConvertRem
));
@include
transition
(
all
.3s
ease-out
);
ul
{
background
:
#f0f0f0
;
...
...
@@ -103,20 +105,22 @@
}
.side-nav.on
{
display
:
block
;
// display: block;
@include
transform
(
translateX
(
0rem
/
$pxConvertRem
));
}
.sub-nav
{
// display: none;
position
:
fixed
;
top
:
0
;
right
:
100rem
/
$pxConvertRem
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
background
:
#fff
!
important
;
z-index
:
2
;
@include
transform
(
translateX
(
100%
));
// z-index: 2;
@include
transform
(
translateX
(
540rem
/
$pxConvertRem
));
@include
transition
(
transform
0
.3s
);
li
{
...
...
static/sass/layout/_footer_tab.scss
View file @
dfea6e0
...
...
@@ -15,7 +15,7 @@
text-align
:
center
;
color
:
#b0b0b0
;
&
.current
{
color
:
#
5e4b3c
;
color
:
#
414141
;
}
}
.tab-icon
{
...
...
@@ -27,4 +27,36 @@
font-size
:
20rem
/
$pxConvertRem
;
line-height
:
1
;
}
}
.boys-wrap
{
.footer-tab
{
.tab-item.current
{
color
:
#414141
;
}
}
}
.girls-wrap
{
.footer-tab
{
.tab-item.current
{
color
:
#FF88AE
;
}
}
}
.kids-wrap
{
.footer-tab
{
.tab-item.current
{
color
:
#7ad9f9
;
}
}
}
.lifestyle-wrap
{
.footer-tab
{
.tab-item.current
{
color
:
#4f4138
;
}
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/boys/index.phtml
View file @
dfea6e0
...
...
@@ -13,7 +13,7 @@
{
{/
twoColumnGoods
}
}
<div
class=
"overlay"
></div>
{
{>
layout/footer_tab
}
}
</div>
{
{>
home/side_nav
}
}
{
{>
layout/footer_tab
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/girls/index.phtml
View file @
dfea6e0
...
...
@@ -8,7 +8,7 @@
{
{>
home/content
}
}
<div
class=
"overlay"
></div>
{
{>
layout/footer_tab
}
}
</div>
{
{>
home/side_nav
}
}
{
{>
layout/footer_tab
}
}
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/actions/index/kids/index.phtml
View file @
dfea6e0
...
...
@@ -19,7 +19,7 @@
{
{/
bannerBottom
}
}
<div
class=
"overlay"
></div>
{
{>
layout/footer_tab
}
}
</div>
{
{>
home/side_nav
}
}
{
{>
layout/footer_tab
}
}
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/actions/index/lifestyle/index.phtml
View file @
dfea6e0
...
...
@@ -17,7 +17,7 @@
{
{>
home/banner_bottom
}
}
{
{/
bannerBottom
}
}
<div
class=
"overlay"
></div>
{
{>
layout/footer_tab
}
}
</div>
{
{>
home/side_nav
}
}
{
{>
layout/footer_tab
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment