|
@@ -72,6 +72,8 @@ lazyLoad($('img.lazy')); |
|
@@ -72,6 +72,8 @@ lazyLoad($('img.lazy')); |
72
|
|
72
|
|
73
|
if ($('.banner-swiper .swiper-slide').length > 1) {
|
73
|
if ($('.banner-swiper .swiper-slide').length > 1) {
|
74
|
new Swiper('.swiper-container', {
|
74
|
new Swiper('.swiper-container', {
|
|
|
75
|
+ observer: true,
|
|
|
76
|
+ observeParents: true,
|
75
|
lazyLoading: true,
|
77
|
lazyLoading: true,
|
76
|
lazyLoadingInPrevNext: true,
|
78
|
lazyLoadingInPrevNext: true,
|
77
|
loop: true,
|
79
|
loop: true,
|
|
@@ -122,8 +124,6 @@ function search(opt) { |
|
@@ -122,8 +124,6 @@ function search(opt) { |
122
|
page,
|
124
|
page,
|
123
|
i;
|
125
|
i;
|
124
|
|
126
|
|
125
|
- delete defaultOpt.size;
|
|
|
126
|
-
|
|
|
127
|
if (searching) {
|
127
|
if (searching) {
|
128
|
return;
|
128
|
return;
|
129
|
}
|
129
|
}
|
|
@@ -185,9 +185,9 @@ function search(opt) { |
|
@@ -185,9 +185,9 @@ function search(opt) { |
185
|
default:
|
185
|
default:
|
186
|
break;
|
186
|
break;
|
187
|
}
|
187
|
}
|
188
|
- }
|
|
|
189
|
|
188
|
|
190
|
- $.extend(defaultOpt, ext); // 扩展筛选项
|
189
|
+ $.extend(defaultOpt, ext); // 扩展筛选项
|
|
|
190
|
+ }
|
191
|
}
|
191
|
}
|
192
|
|
192
|
|
193
|
// 导航类别
|
193
|
// 导航类别
|
|
@@ -398,7 +398,7 @@ $listNav.on('touchend touchcancel', function(e) { |
|
@@ -398,7 +398,7 @@ $listNav.on('touchend touchcancel', function(e) { |
398
|
e.stopPropagation();
|
398
|
e.stopPropagation();
|
399
|
});
|
399
|
});
|
400
|
|
400
|
|
401
|
-$swiperSize.on('touchend touchcancel', function(e) {
|
401
|
+$swiperSize.on('click', function(e) {
|
402
|
var $this = $(e.target).closest('li'),
|
402
|
var $this = $(e.target).closest('li'),
|
403
|
index = $this.parents('.swiper-size').index(),
|
403
|
index = $this.parents('.swiper-size').index(),
|
404
|
$parentType = $listNav.find('li').eq(index),
|
404
|
$parentType = $listNav.find('li').eq(index),
|