| | |
| | | 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() { |