Commit 5601f31b0b20d9f7efe172cb15dea1dc094abeeb

Authored by “张旭”
1 parent 84f5c170

横条内容icon图片改为可为空

metaCode/Classes/Main/HomePage/View/VerticalViews/DownSlide/CNDownSlideSingleCourseCell.swift
@@ -136,7 +136,7 @@ class CNDownSlideSingleCourseCell: UITableViewCell { @@ -136,7 +136,7 @@ class CNDownSlideSingleCourseCell: UITableViewCell {
136 136
137 //小icon 137 //小icon
138 let imageView = UIImageView(frame: CGRectMake(DownSlideRecommendLeftGap, titleLbl.bottom+DownSlideRecommendLeftGap+CGFloat(i)*(DownSlideAllCourseRowTopYGap+DownSlideAllCourseRowImageWH+DownSlideAllCourseRowBottomYGap), CGFloat(DownSlideAllCourseRowImageWH), CGFloat(DownSlideAllCourseRowImageWH))) 138 let imageView = UIImageView(frame: CGRectMake(DownSlideRecommendLeftGap, titleLbl.bottom+DownSlideRecommendLeftGap+CGFloat(i)*(DownSlideAllCourseRowTopYGap+DownSlideAllCourseRowImageWH+DownSlideAllCourseRowBottomYGap), CGFloat(DownSlideAllCourseRowImageWH), CGFloat(DownSlideAllCourseRowImageWH)))
139 - imageView.kf.setImage(with: URL(string:contentMdl.poster!)) 139 + imageView.kf.setImage(with: URL(string:contentMdl.poster ?? ""))
140 imageView.layer.cornerRadius = 12 140 imageView.layer.cornerRadius = 12
141 imageView.clipsToBounds = true 141 imageView.clipsToBounds = true
142 imageView.contentMode = .scaleAspectFill 142 imageView.contentMode = .scaleAspectFill