首页今日推荐
This commit is contained in:
@@ -1556,13 +1556,10 @@ function initNews(page){
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
}
|
||||
|
||||
if(page==1 && response.data.data.list.length == 0){
|
||||
if(page==1){
|
||||
todayDeployFlag = true;
|
||||
$("#todayNews").hide();
|
||||
}else{
|
||||
$("#todayNews").show();
|
||||
}
|
||||
|
||||
for(var i in response.data.data.list){
|
||||
dataObj.push(response.data.data.list[i])
|
||||
if(dataObj[i].todayDeploy && todayDeployFlag){
|
||||
|
||||
Reference in New Issue
Block a user