|
@@ -182,30 +182,36 @@ extension CardContentPicVideoTableViewCell: UICollectionViewDelegateFlowLayout,U
|
|
|
if communityRecommendDataModel?.img == "" || communityRecommendDataModel?.img == nil {
|
|
|
|
|
|
}else {
|
|
|
- cell.imgStr = communityRecommendDataModel?.img
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityRecommendDataModel?.img ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
|
|
|
}
|
|
|
}else {
|
|
|
- cell.imgStr = communityRecommendDataModel?.imgs?[indexPath.row]
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityRecommendDataModel?.imgs?[indexPath.row] ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
}
|
|
|
}else {
|
|
|
- cell.imgStr = communityRecommendDataModel?.img
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityRecommendDataModel?.img ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
}
|
|
|
cell.communityRecommendDataModel = communityRecommendDataModel
|
|
|
} else if type == .follow {
|
|
|
if (PostType(rawValue: (communityFollowDataModel?.relateData?.type)!) ?? .video) != .video {
|
|
|
if communityFollowDataModel?.relateData?.imgs?.isEmpty ?? true {
|
|
|
if communityFollowDataModel?.relateData?.img == "" || communityFollowDataModel?.relateData?.img == nil {
|
|
|
-
|
|
|
}else {
|
|
|
- cell.imgStr = communityFollowDataModel?.relateData?.img
|
|
|
-
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityFollowDataModel?.relateData?.img ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
}
|
|
|
}else {
|
|
|
- cell.imgStr = communityFollowDataModel?.relateData?.imgs?[indexPath.row]
|
|
|
+
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityFollowDataModel?.relateData?.imgs?[indexPath.row] ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
+
|
|
|
}
|
|
|
}else {
|
|
|
- cell.imgStr = communityFollowDataModel?.relateData?.img
|
|
|
+ let imgStr = getImageUrlStr(imgStr: communityFollowDataModel?.relateData?.img ?? "", width: cell.width, height: cell.height)
|
|
|
+ cell.imgStr = imgStr
|
|
|
}
|
|
|
cell.communityFollowDataModel = communityFollowDataModel
|
|
|
}
|