|
@@ -45,7 +45,6 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
addSubview(shareButton)
|
|
|
addSubview(collectButton)
|
|
|
addSubview(praiseButton)
|
|
|
- addSubview(lineLabel)
|
|
|
collectButton.addSubview(collectAnimationView)
|
|
|
praiseButton.imageView?.addSubview(praiseAnimationView)
|
|
|
}
|
|
@@ -64,9 +63,9 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
make.height.equalTo(24)
|
|
|
}
|
|
|
shareButton.snp.makeConstraints { (make) in
|
|
|
- make.centerY.equalToSuperview()
|
|
|
+ make.centerY.equalToSuperview().offset(2)
|
|
|
make.right.equalTo(-17)
|
|
|
- make.size.equalTo(16)
|
|
|
+ make.size.equalTo(22)
|
|
|
}
|
|
|
collectButton.snp.makeConstraints { (make) in
|
|
|
make.centerY.equalToSuperview()
|
|
@@ -84,12 +83,6 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
praiseAnimationView.snp.makeConstraints { (make) in
|
|
|
make.edges.equalToSuperview()
|
|
|
}
|
|
|
- lineLabel.snp.makeConstraints { (make) in
|
|
|
- make.bottom.equalToSuperview()
|
|
|
- make.left.equalTo(14)
|
|
|
- make.right.equalTo(-14)
|
|
|
- make.height.equalTo(1)
|
|
|
- }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -103,8 +96,8 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
|
|
|
private lazy var skittlesButton: UIButton = {
|
|
|
let skittlesButton = UIButton(type: UIButton.ButtonType.custom)
|
|
|
- skittlesButton.setImage(kImage(name: "ico_bean_org"), for: .normal)
|
|
|
- skittlesButton.setTitle("666彩虹豆待收获", for: .normal)
|
|
|
+ skittlesButton.setImage(kImage(name: "ico_bean_org_40px"), for: .normal)
|
|
|
+ skittlesButton.setTitle("666U米待收获", for: .normal)
|
|
|
skittlesButton.setTitleColor(kFFA42FColor, for: .normal)
|
|
|
skittlesButton.titleLabel?.font = kRegularFont13
|
|
|
skittlesButton.isEnabled = false
|
|
@@ -231,16 +224,10 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
}).disposed(by: disposeBag)
|
|
|
return praiseButton
|
|
|
}()
|
|
|
-
|
|
|
- private lazy var lineLabel: UILabel = {
|
|
|
- let lineLabel = UILabel()
|
|
|
- lineLabel.backgroundColor = kf1f1f1Color
|
|
|
- return lineLabel
|
|
|
- }()
|
|
|
|
|
|
var communityRecommendDataModel: CommunityRecommendDataModel? {
|
|
|
didSet {
|
|
|
- skittlesButton.setTitle("\(communityRecommendDataModel?.willCollectBean ?? 0)彩虹豆待收获", for: UIControl.State.normal)
|
|
|
+ skittlesButton.setTitle("\(communityRecommendDataModel?.willCollectBean ?? 0)U米待收获", for: UIControl.State.normal)
|
|
|
skittlesButton.layoutButton(edgeInsetsStyle: ButtonEdgeInsetsStyle.left, imageTitleSpace: 5)
|
|
|
|
|
|
if communityRecommendDataModel?.isLike == 0 {
|
|
@@ -261,7 +248,7 @@ class CardContentActionTableViewCell: UITableViewCell {
|
|
|
|
|
|
var communityFollowDataModel: CommunityFollowDataModel? {
|
|
|
didSet {
|
|
|
- skittlesButton.setTitle("\(communityFollowDataModel?.relateData?.willCollectBean ?? 0)彩虹豆待收获", for: UIControl.State.normal)
|
|
|
+ skittlesButton.setTitle("\(communityFollowDataModel?.relateData?.willCollectBean ?? 0)U米待收获", for: UIControl.State.normal)
|
|
|
skittlesButton.layoutButton(edgeInsetsStyle: ButtonEdgeInsetsStyle.left, imageTitleSpace: 5)
|
|
|
|
|
|
if communityFollowDataModel?.relateData?.isLike == 0 {
|