...
|
...
|
@@ -34,7 +34,8 @@ let $input = $('#search-input').find('input[name="query"]'), |
|
|
$clear = $('#search-input .clear-input'),
|
|
|
$buriedpoint = $('.buriedpoint'),
|
|
|
$search = $('#search'),
|
|
|
$dropList = $('.drop-list');
|
|
|
$dropList = $('.drop-list'),
|
|
|
$searchDivide = $('.search-divide');
|
|
|
|
|
|
let shopId, sort, brand, outlets, app_type, age_level, msort, misort, coin, app_version, students, couponId, searchFrom;
|
|
|
let size, color, style, standard, gender, price, p_d, oldquery, query, limited, specialoffer, specialsale_id, promotion;
|
...
|
...
|
@@ -422,7 +423,6 @@ function search(opt) { |
|
|
page = 1;
|
|
|
} else if (nav.end) {
|
|
|
// 不需要重新加载并且数据请求结束
|
|
|
$('.search-divide').remove();
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -548,7 +548,7 @@ function search(opt) { |
|
|
|
|
|
argument = setting;
|
|
|
|
|
|
$goodsContainer.append('<div class="search-divide">正在加载...</div>');
|
|
|
$searchDivide.removeClass('hide');
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
...
|
...
|
@@ -632,7 +632,7 @@ function search(opt) { |
|
|
if (nav.reload && !firstScreen) {
|
|
|
$container.html(data);
|
|
|
num = $container.find('.good-info').length;
|
|
|
$('.search-divide').remove();
|
|
|
|
|
|
lazyLoad($container.find('.lazy'));
|
|
|
|
|
|
RES_QTY = $container.find('.total').data('id');
|
...
|
...
|
@@ -662,12 +662,8 @@ function search(opt) { |
|
|
}, 200);
|
|
|
} else {
|
|
|
num = $container.find('.good-info').length;
|
|
|
$('.search-divide').remove();
|
|
|
|
|
|
$container.append(data);
|
|
|
$container.append('<div class="search-divide">正在加载...</div>');
|
|
|
if (num < 12) {
|
|
|
$('.search-divide').remove();
|
|
|
}
|
|
|
|
|
|
if ($container.find('.total')[1]) {
|
|
|
$container.find('.total').eq(1).remove();
|
...
|
...
|
@@ -704,6 +700,7 @@ function search(opt) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
$searchDivide.addClass('hide');
|
|
|
nav.reload = false;
|
|
|
nav.page = page;
|
|
|
|
...
|
...
|
@@ -750,7 +747,7 @@ function search(opt) { |
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
let $divide = $('.search-divide');
|
|
|
let $divide = $searchDivide;
|
|
|
|
|
|
$divide.html('加载失败,点击重试');
|
|
|
$divide.one('click', function() {
|
...
|
...
|
@@ -1249,9 +1246,4 @@ $('.brand-way a').on('click', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
let fuckNum = $('.good-info').length;
|
|
|
|
|
|
fuckNum < 12 && $('.search-divide').remove();
|
|
|
|
|
|
require('channel/maybe-like')({recpose: 100101, isExecute: true}); |
...
|
...
|
|