WanPai/Root/Course/VC/CourseVC.swift
@@ -23,11 +23,11 @@ override func viewDidLoad() { super.viewDidLoad() SDWebImageDownloader.shared.downloadImage(with: URL(string: startClouseHomeModel?.imgs)) { [weak self] image, data, error, status in img_bg.sd_setImage(with: URL(string: startClouseHomeModel?.imgs)) {[weak self] image, error, type, url in if let image{ self?.img_bg.image = image let radio = image.size.width / image.size.height self?.cons_imgHeight.constant = JQ_ScreenW * radio self?.cons_imgHeight.constant = JQ_ScreenW / radio } } }