Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -136,8 +136,9 @@ import AVFoundation | ... | @@ -136,8 +136,9 @@ import AVFoundation |
136 | couponSetData = coupon?.couponset_data | 136 | couponSetData = coupon?.couponset_data |
137 | } | 137 | } |
138 | 138 | ||
139 | - if (isMarket == true) { | 139 | + if (isMarket == true || isSMCoupon == true) { |
140 | - couponImage.load(link: coupon?.image ?? "", placeholder: UIImage(), cache: URLCache()) | 140 | +// couponImage.load(link: coupon?.image ?? "", placeholder: UIImage(), cache: URLCache()) |
141 | + couponImage.load(link: couponSetData?.img?[0] ?? "", placeholder: UIImage(), cache: URLCache()) | ||
141 | } else { | 142 | } else { |
142 | couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) | 143 | couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) |
143 | } | 144 | } |
... | @@ -210,7 +211,7 @@ import AVFoundation | ... | @@ -210,7 +211,7 @@ import AVFoundation |
210 | discriptionLabel.text = htmlDiscription.htmlToString | 211 | discriptionLabel.text = htmlDiscription.htmlToString |
211 | 212 | ||
212 | } else if (isSMCoupon == true) { | 213 | } else if (isSMCoupon == true) { |
213 | - couponImage.contentMode = .scaleAspectFill | 214 | + couponImage.contentMode = .scaleAspectFit |
214 | nameLabel.text = couponSetData?.name ?? "" | 215 | nameLabel.text = couponSetData?.name ?? "" |
215 | let htmlDiscription = couponSetData?.description ?? "" | 216 | let htmlDiscription = couponSetData?.description ?? "" |
216 | discriptionLabel.text = htmlDiscription.htmlToString | 217 | discriptionLabel.text = htmlDiscription.htmlToString | ... | ... |
-
Please register or login to post a comment