|
@@ -14,12 +14,15 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
//封面
|
|
|
lazy var converView: UIImageView = {
|
|
|
let iv = UIImageView()
|
|
|
- iv.frame = CGRect.init(x: 0, y: 0, width: self.bounds.size.width, height: self.bounds.size.height)
|
|
|
+// iv.image = UIImage.init(named: "1024x1024px")
|
|
|
+ iv.frame = CGRect.init(x: 0, y: 0, width: self.bounds.size.width, height: self.bounds.size.height-4)
|
|
|
+// iv.frame = CGRect.init(x: 4, y: 4, width: 100, height: 100)
|
|
|
+ iv.backgroundColor = .white
|
|
|
iv.contentMode = .scaleAspectFill
|
|
|
iv.layer.masksToBounds = false
|
|
|
iv.layer.shadowColor = UIColor.black.cgColor
|
|
|
- iv.layer.shadowOpacity = 0.8;//设置阴影的透明度
|
|
|
- iv.layer.shadowOffset = CGSize.init(width: 5, height: 15)//设置阴影的偏移量
|
|
|
+ iv.layer.shadowOpacity = 0.3;//设置阴影的透明度
|
|
|
+ iv.layer.shadowOffset = CGSize.init(width: 0, height: 4)//设置阴影的偏移量
|
|
|
|
|
|
return iv
|
|
|
}()
|
|
@@ -150,7 +153,7 @@ class MVBannerCell: UICollectionViewCell {
|
|
|
self.progressView.snp.remakeConstraints { make in
|
|
|
make.width.equalTo(self.bounds.size.width)
|
|
|
make.height.equalTo(2)
|
|
|
- make.bottom.equalToSuperview()
|
|
|
+ make.bottom.equalToSuperview().offset(-1)
|
|
|
}
|
|
|
}
|
|
|
|