|
@@ -16,7 +16,6 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
// 封面
|
|
|
lazy var converView: UIImageView = {
|
|
|
let iv = UIImageView()
|
|
|
-// iv.backgroundColor = .black
|
|
|
iv.contentMode = .scaleAspectFill
|
|
|
iv.clipsToBounds = true
|
|
|
iv.addCorner(corner: 8)
|
|
@@ -165,7 +164,7 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
// make.width.equalTo(cScreenWidth - 80)
|
|
|
make.right.equalTo(reCreateBtn.snp_right)
|
|
|
make.height.equalTo(videoData?.titleH ?? 0)
|
|
|
- make.left.equalToSuperview().offset(10)
|
|
|
+ make.left.equalToSuperview().offset(12)
|
|
|
make.bottom.equalTo(musicContenView.snp_top).offset(-cDefaultMargin)
|
|
|
}
|
|
|
titleLabel.text = videoData?.title ?? ""
|
|
@@ -251,13 +250,13 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
if(videoData?.title?.count ?? 0 > 0){
|
|
|
typeImage.snp.remakeConstraints { make in
|
|
|
make.left.equalTo(musicContenView.snp_left)
|
|
|
- make.height.width.equalTo(22)
|
|
|
- make.bottom.equalTo(titleLabel.snp_top).offset(-cDefaultMargin)
|
|
|
+ make.height.width.equalTo(18)
|
|
|
+ make.bottom.equalTo(titleLabel.snp_top).offset(-8)
|
|
|
}
|
|
|
}else{
|
|
|
typeImage.snp.remakeConstraints { make in
|
|
|
make.left.equalTo(musicContenView.snp_left)
|
|
|
- make.height.width.equalTo(22)
|
|
|
+ make.height.width.equalTo(18)
|
|
|
make.bottom.equalTo(musicContenView.snp_top).offset(-cDefaultMargin)
|
|
|
}
|
|
|
}
|