...
|
...
|
@@ -746,7 +746,10 @@ if ($brandHeader.data('isbaseshop') === true) { |
|
|
Object.assign(defaultOpt, {shop_id: $brandHeader.data('id')});
|
|
|
}
|
|
|
|
|
|
(function() {
|
|
|
/**
|
|
|
* 获取筛选面板数据
|
|
|
*/
|
|
|
function getFilter() {
|
|
|
let pars = {};
|
|
|
|
|
|
if (age_level) {
|
...
|
...
|
@@ -862,10 +865,11 @@ if ($brandHeader.data('isbaseshop') === true) { |
|
|
$pre.siblings('.filter').removeClass('active');
|
|
|
}
|
|
|
});
|
|
|
loading.hideLoading();
|
|
|
filter.showFilter();
|
|
|
}
|
|
|
});
|
|
|
}());
|
|
|
|
|
|
}
|
|
|
|
|
|
lazyLoad($('.lazy'));
|
|
|
|
...
|
...
|
@@ -963,6 +967,9 @@ $dropList.on('touchend', 'li', function(e) { |
|
|
$dropList.addClass('hide');
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 顶部排序等点击事件处理
|
|
|
*/
|
|
|
$listNav.on('touchend touchcancel', function(e) {
|
|
|
let $this = $(e.target).closest('li'),
|
|
|
nav,
|
...
|
...
|
@@ -993,7 +1000,13 @@ $listNav.on('touchend touchcancel', function(e) { |
|
|
$pre.removeClass('active');
|
|
|
$this.addClass('active');
|
|
|
|
|
|
filter.showFilter();
|
|
|
if ($('.filter-body').length < 1) {
|
|
|
loading.init($('.yoho-page'));
|
|
|
loading.showLoading();
|
|
|
getFilter();
|
|
|
} else {
|
|
|
filter.showFilter();
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
|
...
|
...
|
@@ -1231,6 +1244,11 @@ $('.more-shop').on('click', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
// 筛选改为点击加载
|
|
|
// (function() {
|
|
|
// getFilter();
|
|
|
// }());
|
|
|
|
|
|
// 进入店铺埋点
|
|
|
$('.brand-way a').on('click', function() {
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
...
|
...
|
|