无故事王国
2023-09-26 c86ac49db2969495ec21fae2a27956cad9499752
WanPai/Root/Course/VC/CourseVC.swift
@@ -22,14 +22,14 @@
    var startClouseHomeModel:StartClouseHomeModel?
    override func viewDidLoad() {
        super.viewDidLoad()
        SDWebImageDownloader.shared.downloadImage(with: URL(string: startClouseHomeModel?.imgs)) { [weak self] image, data, error, status in
            if let image{
                self?.img_bg.image = image
                let radio = image.size.width / image.size.height
                self?.cons_imgHeight.constant = JQ_ScreenW * radio
            }
        }
      super.viewDidLoad()
      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
         }
      }
    }
    override func setUI() {