Authored by zhangxiaoru

正在加载

... ... @@ -129,7 +129,7 @@
{{> product/recommend-goods}}
{{/@root.firstPageGoods.list}}
</div>
<div class="search-divide">正在加载...</div>
<div class="search-divide hide">正在加载...</div>
<div class="new-goods container clearfix"></div>
<div class="sale-goods container clearfix"></div>
<div class="price-goods container clearfix hide"></div>
... ...
... ... @@ -108,8 +108,6 @@ C_ID = window._ChannelVary[window.cookie('_Channel')];
if (!firstScreen) {
$goodsContainer.html(noResultHbs());
window.rePosFooter();
} else if ($defaultgc.children().length < 12) { // 首屏数据小于12个
$('.search-divide').remove();
}
ellipsis.init();
... ... @@ -550,6 +548,8 @@ function search(opt) {
argument = setting;
$goodsContainer.append('<div class="search-divide">正在加载...</div>');
$.ajax({
type: 'GET',
url: location.protocol + '//m.yohobuy.com/product/search/search',
... ... @@ -633,11 +633,7 @@ function search(opt) {
$container.html(data);
num = $container.find('.good-info').length;
$('.search-divide').remove();
$container.append('<div class="search-divide">正在加载...</div>');
lazyLoad($container.find('.lazy'));
if (num < 12) {
$('.search-divide').remove();
}
RES_QTY = $container.find('.total').data('id');
... ...