下拉刷新bug修改

This commit is contained in:
2018-04-28 11:56:25 +08:00
parent adbe13e5d5
commit b2194dd16f
+5
View File
@@ -1777,6 +1777,9 @@ function addItems(number, lastIndex) {
return;
}
var html = '';
if(lastIndex == 0){
yesterDayDeployFlag = true;
}
for(var i in dataObj){
if(i>=lastIndex){
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
@@ -2086,6 +2089,8 @@ $(document).on('refresh', '.pull-to-refresh-content',function(e) {
page = 1;
dataObj = [];
$("#newsList").html("");
$(".infinite-scroll-preloader").show();
$.attachInfiniteScroll($('.infinite-scroll'));
initNews(page);
}
// 加载完毕需要重置