Authored by 郭成尧

loading-handle

... ... @@ -212,19 +212,21 @@ function loadMore($container, opt, url) {
success: function(data) {
let $newItems;
$loading.addClass('hide');
if (data === ' ') {
opt.end = true;
searching = false;
//
$loading.addClass('hide');
$noMore.removeClass('hide');
return;
}
let $data = $(data);
if ($data.length < 4) {
$noMore.removeClass('hide');
}
productlistWith($data);
$container.append($data);
... ... @@ -247,8 +249,6 @@ function loadMore($container, opt, url) {
if (opt.page === 1) {
loading.hideLoadingMask();
$loading.removeClass('hide');// 显示空屏加载时hide的隐藏
getDynamicData.getDynamicData();
window.rePosFooter();// 插入内容后重新计算底部位置
}
... ...
... ... @@ -99,4 +99,8 @@
text-align: center;
margin-bottom: 40px;
}
.load-more-info {
margin-bottom: 90px;
}
}
... ...