|
@@ -85,7 +85,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
typealias ShareClosure = () -> Void
|
|
|
var shareClosure : ShareClosure?
|
|
|
|
|
|
- typealias ButtonClickClosure = (_ clickType: videoBtnClickType, _ uid: Int) -> Void
|
|
|
+ typealias ButtonClickClosure = (_ clickType: videoBtnClickType, _ uid: Int, _ postId: Int) -> Void
|
|
|
var buttonClickClosure : ButtonClickClosure?
|
|
|
|
|
|
class func cellWith(collectionView:UICollectionView,indexPath:IndexPath) -> CommunityVideoCoverCollectionCell {
|
|
@@ -439,7 +439,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
commentBtn.titleLabel?.font = kRegularFont14
|
|
|
commentBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return commentBtn
|
|
@@ -464,7 +464,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
}
|
|
|
// 点击回调
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typeCollect, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typeCollect, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return collectBtn
|
|
@@ -489,7 +489,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
}
|
|
|
// 点击回调
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typeLike, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typeLike, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return likeBtn
|
|
@@ -515,7 +515,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
let textBtn = UIButton(type: UIButton.ButtonType.custom)
|
|
|
textBtn.rx.tap.subscribe(onNext: { [weak self] (data) in
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typeComment, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return textBtn
|
|
@@ -569,7 +569,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
avatarButton.rx.tap.subscribe(onNext: {
|
|
|
[weak self] (data) in
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typePerson, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typePerson, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return avatarButton
|
|
@@ -590,7 +590,7 @@ class CommunityVideoCoverCollectionCell: UICollectionViewCell {
|
|
|
followButton.setTitleColor(kffffffColor, for: .normal)
|
|
|
followButton.rx.tap.subscribe(onNext: {[weak self] (data) in
|
|
|
if let buttonClickClosure = self?.buttonClickClosure {
|
|
|
- buttonClickClosure(videoBtnClickType.typeFollow, self?.videoItemMdl?.uid ?? 0)
|
|
|
+ buttonClickClosure(videoBtnClickType.typeFollow, self?.videoItemMdl?.uid ?? 0, self?.videoItemMdl?.id ?? 0)
|
|
|
}
|
|
|
}).disposed(by: disposeBag)
|
|
|
return followButton
|