|
@@ -34,6 +34,7 @@ class ShareCommunityVideoView: BaseView {
|
|
|
|
|
|
override func setupViews() {
|
|
|
addSubview(titleLabel)
|
|
|
+ addSubview(beanLabel)
|
|
|
addSubview(collectionView)
|
|
|
|
|
|
}
|
|
@@ -45,8 +46,14 @@ class ShareCommunityVideoView: BaseView {
|
|
|
make.left.equalTo(20)
|
|
|
make.height.equalTo(20)
|
|
|
}
|
|
|
+ beanLabel.snp.makeConstraints { (make) in
|
|
|
+ make.top.equalTo(titleLabel.snp.bottom).offset(10)
|
|
|
+ make.centerX.equalToSuperview()
|
|
|
+ make.height.equalTo(24)
|
|
|
+ make.width.equalTo(163)
|
|
|
+ }
|
|
|
collectionView.snp.makeConstraints { (make) in
|
|
|
- make.top.equalTo(titleLabel.snp.bottom).offset(18)
|
|
|
+ make.top.equalTo(beanLabel.snp.bottom).offset(20)
|
|
|
make.height.equalTo(69)
|
|
|
make.left.right.equalToSuperview()
|
|
|
}
|
|
@@ -63,10 +70,11 @@ class ShareCommunityVideoView: BaseView {
|
|
|
|
|
|
lazy var beanLabel: UILabel = {
|
|
|
let beanLabel = UILabel()
|
|
|
- beanLabel.textColor = kffffffColor
|
|
|
+ beanLabel.textColor = UIColor(hexString: "FFA42F")
|
|
|
beanLabel.font = kMediumFont13
|
|
|
beanLabel.textAlignment = .center
|
|
|
beanLabel.text = "预计可获得0彩虹豆"
|
|
|
+ beanLabel.backgroundColor = UIColor(hexString: "FFF9F0")
|
|
|
return beanLabel
|
|
|
}()
|
|
|
|