Authored by ccbikai

merge code

... ... @@ -7,3 +7,5 @@ compile/
assets/
script/nginx/logs
npm-debug.log
composer.lock
vendor/
... ...
... ... @@ -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
... ...
... ... @@ -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'
});
}
/**
* 筛选注册的回调,筛选子项点击后逻辑
... ... @@ -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
... ...
... ... @@ -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'
});
}
/**
* 筛选注册的回调,筛选子项点击后逻辑
... ...
... ... @@ -17,7 +17,7 @@
margin: 0 (9rem / $pxConvertRem);
border-radius: 50%;
}
span.swiper-active-switch {
span.swiper-pagination-bullet-active {
opacity: 1;
}
}
... ...
... ... @@ -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: 140rem / $pxConvertRem;
height: 180rem / $pxConvertRem;
margin-bottom: 28rem / $pxConvertRem;
overflow: hidden;
.brands-list {
position: relative;
height: 140rem / $pxConvertRem;
height: 180rem / $pxConvertRem;
li {
float: left;
... ... @@ -85,11 +86,12 @@
a {
position: relative;
display: block;
display: table-cell;
width: 100%;
height: 100%;
height: 140rem / $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;
... ...