Commit 2a905b5c authored by pete谢兆麟's avatar pete谢兆麟

解决没有更多的显示问题

parent 653d54d6
......@@ -50,6 +50,10 @@ extension YHFourKingViewController {
self.homeViewModel.getList(true, classifyID) {[weak self] success, error in
guard let self = self else { return }
self.dataSouce = self.homeViewModel.arrHomeNewsData ?? []
if self.homeViewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
}
}
}
......@@ -84,6 +88,7 @@ extension YHFourKingViewController {
self.dataSouce = self.homeViewModel.arrHomeNewsData ?? []
if self.homeViewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
}
}
......
......@@ -95,6 +95,7 @@ private extension YHHomePageViewController {
self.homeCollectView.es.stopLoadingMore()
if self.viewModel.hasMoreForHomeNews == false {
self.homeCollectView.es.noticeNoMoreData()
self.homeCollectView.footer?.alpha = 1
}
})
}
......@@ -111,6 +112,7 @@ private extension YHHomePageViewController {
self.homeCollectView.es.stopPullToRefresh()
if self.viewModel.hasMoreForHomeNews == false {
self.homeCollectView.es.noticeNoMoreData()
self.homeCollectView.footer?.alpha = 1
}
CATransaction.setDisableActions(true)
......
......@@ -59,6 +59,7 @@ extension YHMyLikeViewController {
self.dataSouce = self.viewModel.arrHomeNewsData ?? []
if self.viewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
}
} else {
......@@ -74,6 +75,7 @@ extension YHMyLikeViewController {
self.dataSouce = self.viewModel.arrHomeNewsData ?? []
if self.viewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
})
}
......@@ -97,6 +99,7 @@ extension YHMyLikeViewController {
self.tableFootView.myCollectView.es.stopLoadingMore()
if self.viewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
})
}
......@@ -110,6 +113,7 @@ extension YHMyLikeViewController {
self.tableFootView.myCollectView.es.stopLoadingMore()
if self.viewModel.hasMoreForHomeNews == false {
self.tableFootView.myCollectView.es.noticeNoMoreData()
self.tableFootView.myCollectView.footer?.alpha = 1
}
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment