| | |
| | | image_cover.sd_setImage(with: URL(string: model.coverUrl.jq_urlEncoded())) |
| | | label_price.text = String(format: "奖品价值:¥%.2lf", model.worth) |
| | | label_energy.text = "所需能量值:\(model.energyValue)" |
| | | label_state.text = model.status == .yes ? "已领取":"待领取" |
| | | view_state.backgroundColor = model.status == .yes ? UIColor(hexString: "#B1CA99")! : UIColor(hexString: "#D0D0D0")! |
| | | label_state.text = model.status == .no ? "已领取":"待领取" |
| | | view_state.backgroundColor = model.status == .no ? UIColor(hexString: "#B1CA99")! : UIColor(hexString: "#D0D0D0")! |
| | | |
| | | view_code.isHidden = model.code.isEmpty || model.status == .yes |
| | | view_code.isHidden = model.code.isEmpty || model.status == .no |
| | | label_code.text = "领取验证码:\(model.code)" |
| | | } |
| | | |