下拉刷新bug修改
This commit is contained in:
@@ -1777,6 +1777,9 @@ function addItems(number, lastIndex) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var html = '';
|
var html = '';
|
||||||
|
if(lastIndex == 0){
|
||||||
|
yesterDayDeployFlag = true;
|
||||||
|
}
|
||||||
for(var i in dataObj){
|
for(var i in dataObj){
|
||||||
if(i>=lastIndex){
|
if(i>=lastIndex){
|
||||||
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
|
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
|
||||||
@@ -2086,6 +2089,8 @@ $(document).on('refresh', '.pull-to-refresh-content',function(e) {
|
|||||||
page = 1;
|
page = 1;
|
||||||
dataObj = [];
|
dataObj = [];
|
||||||
$("#newsList").html("");
|
$("#newsList").html("");
|
||||||
|
$(".infinite-scroll-preloader").show();
|
||||||
|
$.attachInfiniteScroll($('.infinite-scroll'));
|
||||||
initNews(page);
|
initNews(page);
|
||||||
}
|
}
|
||||||
// 加载完毕需要重置
|
// 加载完毕需要重置
|
||||||
|
|||||||
Reference in New Issue
Block a user