...
|
...
|
@@ -292,6 +292,13 @@ function search(opt) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
$('.good-detail-text .name').each(function() {
|
|
|
var $this = $(this),
|
|
|
$title = $this.find('a');
|
|
|
|
|
|
$title[0].mlellipsis(2);
|
|
|
});
|
|
|
|
|
|
nav.reload = false;
|
|
|
nav.page = page;
|
|
|
|
...
|
...
|
@@ -299,13 +306,6 @@ function search(opt) { |
|
|
loading.hideLoadingMask();
|
|
|
|
|
|
window.rePosFooter();
|
|
|
|
|
|
$('.good-detail-text .name').each(function() {
|
|
|
var $this = $(this),
|
|
|
$title = $this.find('a');
|
|
|
|
|
|
$title[0].mlellipsis(2);
|
|
|
});
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
...
|
...
|
@@ -318,14 +318,14 @@ function search(opt) { |
|
|
|
|
|
|
|
|
// 筛选初始化
|
|
|
function filterInit() {
|
|
|
function filterInit(option) {
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/sale/filter',
|
|
|
data: $.extend(defaultOpt, {
|
|
|
saleType: '1'
|
|
|
}),
|
|
|
}, option),
|
|
|
success: function(data) {
|
|
|
|
|
|
if ($filterMask) {
|
...
|
...
|
@@ -353,8 +353,6 @@ function filterInit() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
filterInit();
|
|
|
|
|
|
lazyLoad($('.lazy'));
|
|
|
|
|
|
$listNav.bind('contextmenu', function() {
|
...
|
...
|
@@ -534,6 +532,11 @@ $(function() { |
|
|
$selectNav.addClass('active').siblings().removeClass('active');
|
|
|
$swiperSize.hide();
|
|
|
$swiperSize.filter(selector).show();
|
|
|
|
|
|
filterInit({
|
|
|
breakSort: $selectNav.data('id'),
|
|
|
breakSize: $selectNav.data('allsub')
|
|
|
});
|
|
|
search([{
|
|
|
type: 'breakSort',
|
|
|
id: $selectNav.data('id')
|
...
|
...
|
|