|
@@ -318,14 +318,14 @@ function search(opt) { |
|
@@ -318,14 +318,14 @@ function search(opt) { |
318
|
|
318
|
|
319
|
|
319
|
|
320
|
// 筛选初始化
|
320
|
// 筛选初始化
|
321
|
-function filterInit() {
|
321
|
+function filterInit(option) {
|
322
|
|
322
|
|
323
|
$.ajax({
|
323
|
$.ajax({
|
324
|
type: 'GET',
|
324
|
type: 'GET',
|
325
|
url: '/product/sale/filter',
|
325
|
url: '/product/sale/filter',
|
326
|
data: $.extend(defaultOpt, {
|
326
|
data: $.extend(defaultOpt, {
|
327
|
saleType: '1'
|
327
|
saleType: '1'
|
328
|
- }),
|
328
|
+ }, option),
|
329
|
success: function(data) {
|
329
|
success: function(data) {
|
330
|
|
330
|
|
331
|
if ($filterMask) {
|
331
|
if ($filterMask) {
|
|
@@ -353,8 +353,6 @@ function filterInit() { |
|
@@ -353,8 +353,6 @@ function filterInit() { |
353
|
});
|
353
|
});
|
354
|
}
|
354
|
}
|
355
|
|
355
|
|
356
|
-filterInit();
|
|
|
357
|
-
|
|
|
358
|
lazyLoad($('.lazy'));
|
356
|
lazyLoad($('.lazy'));
|
359
|
|
357
|
|
360
|
$listNav.bind('contextmenu', function() {
|
358
|
$listNav.bind('contextmenu', function() {
|
|
@@ -534,6 +532,11 @@ $(function() { |
|
@@ -534,6 +532,11 @@ $(function() { |
534
|
$selectNav.addClass('active').siblings().removeClass('active');
|
532
|
$selectNav.addClass('active').siblings().removeClass('active');
|
535
|
$swiperSize.hide();
|
533
|
$swiperSize.hide();
|
536
|
$swiperSize.filter(selector).show();
|
534
|
$swiperSize.filter(selector).show();
|
|
|
535
|
+
|
|
|
536
|
+ filterInit({
|
|
|
537
|
+ breakSort: $selectNav.data('id'),
|
|
|
538
|
+ breakSize: $selectNav.data('allsub')
|
|
|
539
|
+ });
|
537
|
search([{
|
540
|
search([{
|
538
|
type: 'breakSort',
|
541
|
type: 'breakSort',
|
539
|
id: $selectNav.data('id')
|
542
|
id: $selectNav.data('id')
|