jeremy 5 gadi atpakaļ
vecāks
revīzija
e12beeab85

+ 1 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityRecommendDetail/Controller/CommunityRecommendController.swift

@@ -220,6 +220,7 @@ class CommunityRecommendController: BaseViewController {
             [weak self] (clickType) in
             switch clickType {
             case BottomClickType.typeComment:
+                self?.communityPostCommentModel = nil
                 self?.showKeyBoardCommentView(placeholder: "添加评论...")
             case BottomClickType.typeLike:
                 VirusViewModel.shared.virueRecordAddApiPraise(communityPostDetailModel: self?.communityPostDetailModel,commentView: self?.commentView)

+ 1 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityAllCommentView.swift

@@ -98,6 +98,7 @@ class CommunityAllCommentView: FWPopupView {
         })
         commentInputView.commentInputViewClosure = {
             [weak self]  in
+            self?.communityPostCommentModel = nil
             self?.showKeyBoardCommentView(placeholder:"添加评论...")
         }
     }

+ 6 - 6
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoSubCommentController/CommunityVideoSubCommentController.swift

@@ -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)