...
|
...
|
@@ -755,26 +755,27 @@ if ($brandHeader.data('isbaseshop') === true) { |
|
|
}
|
|
|
|
|
|
$.extend(defaultOpt, pars);
|
|
|
setTimeout(function() {
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: location.protocol + '//m.yohobuy.com/product/search/filter',
|
|
|
data: defaultOpt,
|
|
|
success: function(data) {
|
|
|
$goodsContainer.append(data);
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: location.protocol + '//m.yohobuy.com/product/search/filter',
|
|
|
data: defaultOpt,
|
|
|
success: function(data) {
|
|
|
$goodsContainer.append(data);
|
|
|
|
|
|
// 初始化filter&注册filter回调
|
|
|
filter.initFilter({
|
|
|
fCbFn: search,
|
|
|
hCbFn: function() {
|
|
|
// 初始化filter&注册filter回调
|
|
|
filter.initFilter({
|
|
|
fCbFn: search,
|
|
|
hCbFn: function() {
|
|
|
|
|
|
// 切换active状态到$pre上
|
|
|
$pre.addClass('active');
|
|
|
$pre.siblings('.filter').removeClass('active');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
// 切换active状态到$pre上
|
|
|
$pre.addClass('active');
|
|
|
$pre.siblings('.filter').removeClass('active');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}, 500);
|
|
|
}());
|
|
|
|
|
|
|
...
|
...
|
@@ -1075,7 +1076,9 @@ if ($brandHeader.length > 0) { |
|
|
}
|
|
|
|
|
|
// 初始请求最新第一页数据
|
|
|
search();
|
|
|
setTimeout(function() {
|
|
|
search();
|
|
|
}, 500);
|
|
|
|
|
|
$listNav.on('touchstart', 'li', function() {
|
|
|
$listNav.find('li').removeClass('bytouch');
|
...
|
...
|
|