| | |
| | | self?.label_studyState.textColor = Def_ThemeColor |
| | | } |
| | | |
| | | SDWebImageDownloader.shared.downloadImage(with: URL(string: model.introductionDrawing)) { image, data, error, state in |
| | | self?.img_introduceCover.sd_setImage(with: URL(string: model.introductionDrawing)) {[weak self] image, error, type, url in |
| | | if let img = image{ |
| | | self?.img_introduceCover.image = img |
| | | let radio = img.size.width / img.size.height |
| | | self?.cons_imgHei.constant = JQ_ScreenW * radio |
| | | self?.cons_imgHei.constant = JQ_ScreenW / radio |
| | | } |
| | | } |
| | | } |
| | |
| | | self?.label_studyState.textColor = Def_ThemeColor |
| | | } |
| | | |
| | | SDWebImageDownloader.shared.downloadImage(with: URL(string: model.detailedDiagram)) { image, data, error, state in |
| | | self?.img_introduceCover.sd_setImage(with: URL(string: model.detailedDiagram), completed: {[weak self] image, error, type, url in |
| | | if let img = image{ |
| | | self?.img_introduceCover.image = img |
| | | let radio = img.size.width / img.size.height |
| | | self?.cons_imgHei.constant = JQ_ScreenW * radio |
| | | self?.cons_imgHei.constant = JQ_ScreenW / radio |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | } |