|
@@ -13,6 +13,9 @@ class CommunityFollowStatusTableViewCell: UITableViewCell {
|
|
|
|
|
|
let disposeBag = DisposeBag()
|
|
|
|
|
|
+ typealias FollowClosure = () -> Void
|
|
|
+ var followClosure : FollowClosure?
|
|
|
+
|
|
|
class func cellWith(tableView:UITableView,indexPath:IndexPath) -> CommunityFollowStatusTableViewCell {
|
|
|
let ID = "CommunityFollowStatusTableViewCell"
|
|
|
tableView.register(CommunityFollowStatusTableViewCell.self, forCellReuseIdentifier: ID)
|
|
@@ -178,6 +181,7 @@ class CommunityFollowStatusTableViewCell: UITableViewCell {
|
|
|
oneCardView.cornerRadius = 4
|
|
|
oneCardView.masksToBounds = true
|
|
|
oneCardView.isHidden = true
|
|
|
+ oneCardView.addTapGesture(1, target: self, action: #selector(contentDetail))
|
|
|
return oneCardView
|
|
|
}()
|
|
|
|
|
@@ -223,6 +227,8 @@ class CommunityFollowStatusTableViewCell: UITableViewCell {
|
|
|
twoCardView.isHidden = true
|
|
|
twoCardView.cornerRadius = 4
|
|
|
twoCardView.masksToBounds = true
|
|
|
+ twoCardView.addTapGesture(1, target: self, action: #selector(contentDetail))
|
|
|
+
|
|
|
return twoCardView
|
|
|
}()
|
|
|
|
|
@@ -254,6 +260,7 @@ class CommunityFollowStatusTableViewCell: UITableViewCell {
|
|
|
threeCardView.isHidden = true
|
|
|
threeCardView.cornerRadius = 4
|
|
|
threeCardView.masksToBounds = true
|
|
|
+ threeCardView.addTapGesture(1, target: self, action: #selector(contentDetail))
|
|
|
return threeCardView
|
|
|
}()
|
|
|
|
|
@@ -407,4 +414,10 @@ class CommunityFollowStatusTableViewCell: UITableViewCell {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /// 内容详情页面
|
|
|
+ @objc func contentDetail() {
|
|
|
+ NotificationCenter.default.post(name: NSNotification.Name(rawValue: "CommunityContentDetailClosure"), object: nil)
|
|
|
+ }
|
|
|
+
|
|
|
}
|