...
|
...
|
@@ -323,14 +323,14 @@ function search(opt) { |
|
|
|
|
|
|
|
|
// 筛选初始化
|
|
|
function filterInit() {
|
|
|
function filterInit(option) {
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/sale/filter',
|
|
|
data: $.extend(defaultOpt, {
|
|
|
saleType: '1'
|
|
|
}),
|
|
|
}, option),
|
|
|
success: function(data) {
|
|
|
|
|
|
if ($filterMask) {
|
...
|
...
|
@@ -358,8 +358,6 @@ function filterInit() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
filterInit();
|
|
|
|
|
|
lazyLoad($('.lazy'));
|
|
|
|
|
|
$listNav.bind('contextmenu', function() {
|
...
|
...
|
@@ -539,6 +537,11 @@ $(function() { |
|
|
$selectNav.addClass('active').siblings().removeClass('active');
|
|
|
$swiperSize.hide();
|
|
|
$swiperSize.filter(selector).show();
|
|
|
|
|
|
filterInit({
|
|
|
breakSort: $selectNav.data('id'),
|
|
|
breakSize: $selectNav.data('allsub')
|
|
|
});
|
|
|
search([{
|
|
|
type: 'breakSort',
|
|
|
id: $selectNav.data('id')
|
...
|
...
|
|