Authored by 王水玲

sale bug 修改

... ... @@ -41,7 +41,7 @@ const typeCont = {
price: ['s_p_desc', 's_p_asc'],
discount: ['p_d_desc', 'p_d_asc'],
sale: ['s_n_desc', 's_n_asc'],
newest: ['s_t_desc', 's_t_asc'],
newest: ['s_t_desc,s_s_desc', 's_t_asc,s_s_asc'],
stock: ['s_s_desc', 's_s_asc']
};
... ... @@ -109,7 +109,7 @@ const discount = (params) => {
return api.get('', sign.apiSign(Object.assign({
method: 'app.activity.get',
sort: 2,
plateform: 3
plateform: 2
}, params)));
};
... ...
... ... @@ -72,6 +72,8 @@ lazyLoad($('img.lazy'));
if ($('.banner-swiper .swiper-slide').length > 1) {
new Swiper('.swiper-container', {
observer: true,
observeParents: true,
lazyLoading: true,
lazyLoadingInPrevNext: true,
loop: true,
... ... @@ -122,8 +124,6 @@ function search(opt) {
page,
i;
delete defaultOpt.size;
if (searching) {
return;
}
... ... @@ -185,9 +185,9 @@ function search(opt) {
default:
break;
}
}
$.extend(defaultOpt, ext); // 扩展筛选项
$.extend(defaultOpt, ext); // 扩展筛选项
}
}
// 导航类别
... ... @@ -398,7 +398,7 @@ $listNav.on('touchend touchcancel', function(e) {
e.stopPropagation();
});
$swiperSize.on('touchend touchcancel', function(e) {
$swiperSize.on('click', function(e) {
var $this = $(e.target).closest('li'),
index = $this.parents('.swiper-size').index(),
$parentType = $listNav.find('li').eq(index),
... ...
... ... @@ -46,7 +46,7 @@ var $listNav = $('#list-nav'),
end: false
},
discount: {
order: 0,
order: 1,
reload: true,
page: 0,
end: false
... ...
... ... @@ -12,10 +12,15 @@
}
}
#size-swiper-0,
#size-swiper-1,
#size-swiper-2,
#size-swiper-3 {
.banner-swiper {
height: 200px;
ul {
height: 200px;
}
}
.swiper-size {
display: none;
box-sizing: border-box;
padding: 0 22px;
... ...
... ... @@ -45,4 +45,12 @@
.good-detail-text .price {
white-space: nowrap;
}
.banner-swiper {
height: 200px;
ul {
height: 200px;
}
}
}
... ...