Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Plain Diff
Browse Files
Authored by
Rock Zhang
10 years ago
Commit
f5087797de96448662ecca5ea7c5a112d5911a5f
2 parents
6dd98822
ea0827a4
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
21 deletions
.gitignore
composer.json
framework
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/sass/home/_banner-top.scss
static/sass/home/_hot-brands.scss
.gitignore
View file @
f508779
...
...
@@ -7,3 +7,5 @@ compile/
assets/
script/nginx/logs
npm-debug.log
composer.lock
vendor/
...
...
composer.json
View file @
f508779
...
...
@@ -11,7 +11,7 @@
{
"name"
:
"fei.hong"
,
"email"
:
"fei.hong@yoho.cn"
,
"homepage"
:
"www.yoho.cn"
"homepage"
:
"
http://
www.yoho.cn"
}
],
"require"
:
{
...
...
framework
@
75bbc3b0
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
static/js/product/newsale/discount.js
View file @
f508779
...
...
@@ -56,10 +56,12 @@ var $listNav = $('#list-nav'),
$pre
,
//纪录进入筛选前的active项
searching
;
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
pagination
:
'.swiper-pagination'
});
if
(
$
(
'.swiper-container .swiper-slide'
).
length
>
1
)
{
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
pagination
:
'.swiper-pagination'
});
}
/**
* 筛选注册的回调,筛选子项点击后逻辑
...
...
@@ -214,7 +216,7 @@ filter.registerCbFn(search);
//3.筛选无active时点击展开筛选面板
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
$listNav
.
delegate
(
'li'
,
't
ap
'
,
function
()
{
$listNav
.
delegate
(
'li'
,
't
ouchstart
'
,
function
()
{
var
$this
=
$
(
this
),
nav
,
navType
,
...
...
@@ -308,8 +310,8 @@ $(window).scroll(function() {
//当scroll到1/4$goodsContainer高度后继续请求下一页数据
if
(
$
(
window
).
scrollTop
()
+
winH
>
$
(
document
).
height
()
-
0.25
*
$goodsContainer
.
height
())
{
if
(
$pre
!=
undefined
)
{
if
(
$pre
!=
=
undefined
)
{
search
();
}
}
});
});
\ No newline at end of file
...
...
static/js/product/newsale/newarrival.js
View file @
f508779
...
...
@@ -59,10 +59,12 @@ var $listNav = $('#list-nav'),
$pgc
.
addClass
(
'hide'
);
$dgc
.
addClass
(
'hide'
);
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
pagination
:
'.swiper-pagination'
});
if
(
$
(
'.swiper-container .swiper-slide'
).
length
>
1
)
{
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
pagination
:
'.swiper-pagination'
});
}
/**
* 筛选注册的回调,筛选子项点击后逻辑
...
...
static/sass/home/_banner-top.scss
View file @
f508779
...
...
@@ -17,7 +17,7 @@
margin
:
0
(
9rem
/
$pxConvertRem
);
border-radius
:
50%
;
}
span
.swiper-
active-switch
{
span
.swiper-
pagination-bullet-active
{
opacity
:
1
;
}
}
...
...
static/sass/home/_hot-brands.scss
View file @
f508779
...
...
@@ -17,14 +17,15 @@
overflow
:
hidden
;
.brand-logo
{
width
:
100%
;
display
:
table-cell
;
width
:
3
.95rem
;
height
:
128rem
/
$pxConvertRem
;
line-height
:
128rem
/
$pxConvertRem
;
text-align
:
center
;
font-size
:
0
;
vertical-align
:
middle
;
img
{
vertical-align
:
middle
;
max-width
:
100%
;
max-height
:
100%
;
}
...
...
@@ -68,13 +69,13 @@
.brands-swiper
{
background
:
#fff
;
width
:
100%
;
height
:
1
4
0rem
/
$pxConvertRem
;
height
:
1
8
0rem
/
$pxConvertRem
;
margin-bottom
:
28rem
/
$pxConvertRem
;
overflow
:
hidden
;
.brands-list
{
position
:
relative
;
height
:
1
4
0rem
/
$pxConvertRem
;
height
:
1
8
0rem
/
$pxConvertRem
;
li
{
float
:
left
;
...
...
@@ -85,11 +86,12 @@
a
{
position
:
relative
;
display
:
block
;
display
:
table-cell
;
width
:
100%
;
height
:
1
00%
;
height
:
1
40rem
/
$pxConvertRem
;
line-height
:
140rem
/
$pxConvertRem
;
font-size
:
0
;
vertical-align
:
middle
;
}
img
{
...
...
@@ -102,7 +104,8 @@
position
:
absolute
;
left
:
8rem
/
$pxConvertRem
;
right
:
8rem
/
$pxConvertRem
;
bottom
:
8rem
/
$pxConvertRem
;
bottom
:
-32rem
/
$pxConvertRem
;
width
:
100%
;
height
:
28rem
/
$pxConvertRem
;
line-height
:
28rem
/
$pxConvertRem
;
text-align
:
center
;
...
...
Please
register
or
login
to post a comment