Manos Chorianopoulos

fix couponImage at CouponBarcodeViewController

......@@ -136,8 +136,9 @@ import AVFoundation
couponSetData = coupon?.couponset_data
}
if (isMarket == true) {
couponImage.load(link: coupon?.image ?? "", placeholder: UIImage(), cache: URLCache())
if (isMarket == true || isSMCoupon == true) {
// couponImage.load(link: coupon?.image ?? "", placeholder: UIImage(), cache: URLCache())
couponImage.load(link: couponSetData?.img?[0] ?? "", placeholder: UIImage(), cache: URLCache())
} else {
couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
}
......@@ -210,7 +211,7 @@ import AVFoundation
discriptionLabel.text = htmlDiscription.htmlToString
} else if (isSMCoupon == true) {
couponImage.contentMode = .scaleAspectFill
couponImage.contentMode = .scaleAspectFit
nameLabel.text = couponSetData?.name ?? ""
let htmlDiscription = couponSetData?.description ?? ""
discriptionLabel.text = htmlDiscription.htmlToString
......