|
@@ -32,7 +32,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
typealias ShareClosure = (_ videoItemMdl: CommunityVideoItemModel) -> Void
|
|
typealias ShareClosure = (_ videoItemMdl: CommunityVideoItemModel) -> Void
|
|
var shareClosure : ShareClosure?
|
|
var shareClosure : ShareClosure?
|
|
|
|
|
|
- typealias ButtonClickClosure = (_ clickType: videoBtnClickType, _ uid: Int, _ postId: Int) -> Void
|
|
|
|
|
|
+ typealias ButtonClickClosure = (_ clickType: videoBtnClickType, _ uid: Int, _ postId: Int,_ isShow:Bool) -> Void
|
|
var buttonClickClosure : ButtonClickClosure?
|
|
var buttonClickClosure : ButtonClickClosure?
|
|
|
|
|
|
typealias FollowClosure = (_ videoItemMdl: CommunityVideoItemModel, _ button: UIButton) -> Void
|
|
typealias FollowClosure = (_ videoItemMdl: CommunityVideoItemModel, _ button: UIButton) -> Void
|
|
@@ -164,7 +164,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
})
|
|
})
|
|
// 点击回调
|
|
// 点击回调
|
|
if let buttonClickClosure = self.buttonClickClosure {
|
|
if let buttonClickClosure = self.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typeLike, self.videoItemMdl?.uid ?? 0, self.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typeLike, self.videoItemMdl?.uid ?? 0, self.videoItemMdl?.id ?? 0, true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -545,7 +545,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
kAppDelegate.setLogin()
|
|
kAppDelegate.setLogin()
|
|
}else {
|
|
}else {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0, false)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -600,7 +600,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
|
|
|
// 点击回调
|
|
// 点击回调
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typeCollect, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typeCollect, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0, true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -635,7 +635,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
}
|
|
}
|
|
// 点击回调
|
|
// 点击回调
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typeLike, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typeLike, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0,true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -666,7 +666,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
kAppDelegate.setLogin()
|
|
kAppDelegate.setLogin()
|
|
}else {
|
|
}else {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0,true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}).disposed(by: disposeBag)
|
|
}).disposed(by: disposeBag)
|
|
@@ -778,7 +778,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
kAppDelegate.setLogin()
|
|
kAppDelegate.setLogin()
|
|
}else {
|
|
}else {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
- buttonClickClosure(videoBtnClickType.typePerson, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
|
|
|
+ buttonClickClosure(videoBtnClickType.typePerson, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0, true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}).disposed(by: disposeBag)
|
|
}).disposed(by: disposeBag)
|