| | |
| | | didSet{ |
| | | stackView_vipPrice.isHidden = courseItemModel.originalPrice == nil |
| | | label_originPrice.isHidden = courseItemModel.originalPrice == nil |
| | | label_vipPrice.text = "会员价:\(courseItemModel.vipPrice.currency())" |
| | | |
| | | img_cover.sd_setImage(with: URL(string: courseItemModel.coverDrawing)) |
| | | img_cover.sd_setImage(with: URL(string: courseItemModel.coverDrawing),placeholderImage: UIImage(named: "placeholder_1")) |
| | | label_title.text = String(format: "%@(%@)", courseItemModel.name,courseItemModel.storeName) |
| | | label_teachTime.text = String(format: "上课时间:%@", courseItemModel.classStartTime) |
| | | label_enrollNumber.text = String(format: "已报名:%ld人", courseItemModel.applicantsNumber) |
| | |
| | | } |
| | | |
| | | |
| | | label_originPrice.attributedText = AttributedStringbuilder.build().add(string: courseItemModel.originalPrice?.currency() ?? "", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#C6C6C6")).underLine(color: UIColor(hexStr: "#C6C6C6")).mutableAttributedString |
| | | label_originPrice.attributedText = AttributedStringbuilder.build().add(string: courseItemModel.originalPrice?.currency() ?? "", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#C6C6C6")).delLine(color: UIColor(hexStr: "#C6C6C6")).mutableAttributedString |
| | | |
| | | } |
| | | } |