|
@@ -36,7 +36,7 @@ class CommunityVideoSubCommentController: BaseViewController {
|
|
|
}
|
|
|
|
|
|
override func setupViews() {
|
|
|
- navigationBar.title = "3条评论"
|
|
|
+ navigationBar.title = "0条评论"
|
|
|
view.backgroundColor = kf7f8faColor
|
|
|
|
|
|
view.addSubview(tableView)
|
|
@@ -108,16 +108,16 @@ extension CommunityVideoSubCommentController {
|
|
|
func communityPostReplyApi(page:Int) {
|
|
|
SwiftMoyaNetWorkServiceCommunity.shared().communityPostReplyApi(postId: communityPostCommentModel?.id ?? 0, page: page,completion: {
|
|
|
[weak self] (communityPostReplysModel) -> (Void) in
|
|
|
- let communityPostReplysModel = communityPostReplysModel as? CommunityPostReplysModel
|
|
|
+ self?.communityPostReplysModel = communityPostReplysModel as? CommunityPostReplysModel
|
|
|
|
|
|
- if communityPostReplysModel?.pagination?.currentPage == 1{
|
|
|
+ if self?.communityPostReplysModel?.pagination?.currentPage == 1{
|
|
|
self?.communityPostReplyModels.removeAll()
|
|
|
self?.tableView.resetNoMoreData()
|
|
|
}
|
|
|
- self?.communityPostReplyModels = (self?.communityPostReplyModels)! + (communityPostReplysModel?.data!)!
|
|
|
- self?.navigationBar.title = "\(communityPostReplysModel?.pagination?.total ?? 0)条评论"
|
|
|
+ self?.communityPostReplyModels = (self?.communityPostReplyModels)! + (self?.communityPostReplysModel?.data!)!
|
|
|
+ self?.navigationBar.title = "\(self?.communityPostReplysModel?.pagination?.total ?? 0)条评论"
|
|
|
self?.tableView.reloadData()
|
|
|
- MJRefreshManager.mjRefreshManagerPaginationNoHiddenFooter(tableView: self?.tableView, pagination: communityPostReplysModel?.pagination)
|
|
|
+ MJRefreshManager.mjRefreshManagerPaginationNoHiddenFooter(tableView: self?.tableView, pagination: self?.communityPostReplysModel?.pagination)
|
|
|
}) {
|
|
|
[weak self] loadingStatus in
|
|
|
MJRefreshManager.mjRefreshManagerLoadingStatus(tableView: self?.tableView,loadingStatus: loadingStatus)
|