| | |
| | | |
| | | weakSelf.label_coin.attributedText = AttributedStringbuilder.build().add(string: "玩湃币:", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F")).add(string: "\(model.wanpaiGold)币", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#F21313")).mutableAttributedString |
| | | |
| | | weakSelf.img_intro.sd_setImage(with: URL(string: model.introduceDrawing)) {[weak self] image, error, type, url in |
| | | weakSelf.img_intro.sd_setImage(with: URL(string: model.detailDrawing)) {[weak self] image, error, type, url in |
| | | if let img = image{ |
| | | self?.img_intro.image = img |
| | | let radio = img.size.width / img.size.height |
| | | self?.cons_imgIntroHei.constant = JQ_ScreenW / radio |
| | | } |
| | | } |
| | | |
| | | weakSelf.img_intro2.sd_setImage(with: URL(string: model.introduceDrawing)) {[weak self] image, error, type, url in |
| | | if let img = image{ |
| | | self?.img_intro2.image = img |
| | | let radio = img.size.width / img.size.height |
| | | self?.cons_imgIntro2Hei.constant = JQ_ScreenW / radio |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | |