|
@@ -323,14 +323,14 @@ function search(opt) { |
|
@@ -323,14 +323,14 @@ function search(opt) { |
323
|
|
323
|
|
324
|
|
324
|
|
325
|
// 筛选初始化
|
325
|
// 筛选初始化
|
326
|
-function filterInit() {
|
326
|
+function filterInit(option) {
|
327
|
|
327
|
|
328
|
$.ajax({
|
328
|
$.ajax({
|
329
|
type: 'GET',
|
329
|
type: 'GET',
|
330
|
url: '/product/sale/filter',
|
330
|
url: '/product/sale/filter',
|
331
|
data: $.extend(defaultOpt, {
|
331
|
data: $.extend(defaultOpt, {
|
332
|
saleType: '1'
|
332
|
saleType: '1'
|
333
|
- }),
|
333
|
+ }, option),
|
334
|
success: function(data) {
|
334
|
success: function(data) {
|
335
|
|
335
|
|
336
|
if ($filterMask) {
|
336
|
if ($filterMask) {
|
|
@@ -358,8 +358,6 @@ function filterInit() { |
|
@@ -358,8 +358,6 @@ function filterInit() { |
358
|
});
|
358
|
});
|
359
|
}
|
359
|
}
|
360
|
|
360
|
|
361
|
-filterInit();
|
|
|
362
|
-
|
|
|
363
|
lazyLoad($('.lazy'));
|
361
|
lazyLoad($('.lazy'));
|
364
|
|
362
|
|
365
|
$listNav.bind('contextmenu', function() {
|
363
|
$listNav.bind('contextmenu', function() {
|
|
@@ -539,6 +537,11 @@ $(function() { |
|
@@ -539,6 +537,11 @@ $(function() { |
539
|
$selectNav.addClass('active').siblings().removeClass('active');
|
537
|
$selectNav.addClass('active').siblings().removeClass('active');
|
540
|
$swiperSize.hide();
|
538
|
$swiperSize.hide();
|
541
|
$swiperSize.filter(selector).show();
|
539
|
$swiperSize.filter(selector).show();
|
|
|
540
|
+
|
|
|
541
|
+ filterInit({
|
|
|
542
|
+ breakSort: $selectNav.data('id'),
|
|
|
543
|
+ breakSize: $selectNav.data('allsub')
|
|
|
544
|
+ });
|
542
|
search([{
|
545
|
search([{
|
543
|
type: 'breakSort',
|
546
|
type: 'breakSort',
|
544
|
id: $selectNav.data('id')
|
547
|
id: $selectNav.data('id')
|