Browse Source

no message

南鑫林 5 years ago
parent
commit
1430604008

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

@@ -18,9 +18,6 @@ class CommunityAllCommentView: FWPopupView {
     typealias DismissTransBlock = () -> Void
     var disTransBlock : DismissTransBlock?
     
-    typealias ConfirmPayBlock = (_ pType: PayType) -> Void
-    var confirmPayBlock : ConfirmPayBlock?
-    
     var postId: Int? {
         didSet {
             setupData()

+ 1 - 7
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/ViewController/CommunityVideoListController.swift

@@ -234,13 +234,7 @@ extension CommunityVideoListController {
     }
     
     func showCommentView(postId: Int, videoItemMdl: CommunityVideoItemModel) {
-        
-       commentAlertSheetView =  AlertSheetView.commentAlertSheetView(postId: postId, videoItemMdl: videoItemMdl, cancelClosure: {
-            [weak self] in
-            
-        }) {
-            [weak self] (payType) in
-        }
+       commentAlertSheetView =  AlertSheetView.commentAlertSheetView(postId: postId, videoItemMdl: videoItemMdl)
     }
     
     /// 分享

+ 1 - 6
RainbowPlanet/RainbowPlanet/Tools/AlertSheetView/AlertSheetView.swift

@@ -114,7 +114,7 @@ class AlertSheetView: NSObject {
     }
     
     /// 自定义评论View
-    class func commentAlertSheetView(postId:Int, videoItemMdl: CommunityVideoItemModel, cancelClosure:@escaping () -> Void, sureClosure:@escaping (_ pType: PayType) -> Void) -> CommunityAllCommentView {
+    class func commentAlertSheetView(postId:Int, videoItemMdl: CommunityVideoItemModel) -> CommunityAllCommentView {
         let commentView = CommunityAllCommentView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: kSafeTabBarHeight + 500))
         commentView.postId = postId
         commentView.videoItemModel = videoItemMdl
@@ -129,11 +129,6 @@ class AlertSheetView: NSObject {
         commentView.vProperty = vProperty
         commentView.show()
         commentView.disTransBlock = {
-            cancelClosure()
-            commentView.hide()
-        }
-        commentView.confirmPayBlock = { payType in
-            sureClosure(payType)
             commentView.hide()
         }
         return commentView