|
@@ -17,7 +17,7 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
iv.clipsToBounds = true
|
|
|
iv.backgroundColor = .black
|
|
|
iv.contentMode = .scaleAspectFit
|
|
|
-
|
|
|
+ iv.addCorner(corner: 8)
|
|
|
return iv
|
|
|
}()
|
|
|
|
|
@@ -31,7 +31,6 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
|
|
|
lazy var backShadowView: UIView = {
|
|
|
let backShowView = UIView.init()
|
|
|
- backShowView.backgroundColor = .orange
|
|
|
backShowView.layer.masksToBounds = false
|
|
|
backShowView.layer.shadowColor = UIColor.black.cgColor
|
|
|
backShowView.layer.shadowOpacity = 0.3;//设置阴影的透明度
|
|
@@ -43,6 +42,7 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
//下面 marks view
|
|
|
lazy var bottmMaskView: UIImageView = {
|
|
|
let bottmMaskView = UIImageView.init(image: UIImage.init(named: "home_marks"))
|
|
|
+ bottmMaskView.addCorner(corner: 8)
|
|
|
return bottmMaskView
|
|
|
}()
|
|
|
//暂停view
|
|
@@ -57,7 +57,7 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
lazy var musicNameLab: LMJHorizontalScrollText = {
|
|
|
let name:String = "文件名称"
|
|
|
let nameWidth: CGFloat = sizeWithText(text: "\(name)", font: UIFont.systemFont(ofSize: 13), size: CGSize(width: cScreenWidth - ((cDefaultMargin * 6 + 16 * 2) * 2) - (25 + cDefaultMargin * 3), height: cDefaultMargin * 3)).width
|
|
|
- let musicNameLab = LMJHorizontalScrollText(frame: CGRect(x: 0, y: 0, width: nameWidth < 147 ? 147 : nameWidth, height: cDefaultMargin * 3))
|
|
|
+ let musicNameLab = LMJHorizontalScrollText(frame: CGRect(x: 0, y: 0, width: nameWidth < 127 ? 127 : nameWidth, height: cDefaultMargin * 3))
|
|
|
musicNameLab.textColor = UIColor.white
|
|
|
musicNameLab.textFont = UIFont.systemFont(ofSize: 13)
|
|
|
|
|
@@ -160,8 +160,9 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
}
|
|
|
|
|
|
progressView.snp.remakeConstraints { make in
|
|
|
- make.width.equalToSuperview()
|
|
|
+ make.width.equalToSuperview().offset(-6)
|
|
|
make.height.equalTo(2)
|
|
|
+ make.left.equalToSuperview().offset(3)
|
|
|
make.bottom.equalToSuperview().offset(0)
|
|
|
}
|
|
|
}
|