| | |
| | | // |
| | | |
| | | import UIKit |
| | | import JQTools |
| | | |
| | | class MarketCCell: UICollectionViewCell { |
| | | |
| | | @IBOutlet weak var cover_imageView: UIImageView! |
| | | @IBOutlet weak var label_title: UILabel! |
| | | @IBOutlet weak var label_coin: UILabel! |
| | | |
| | | @IBOutlet weak var label_originPrice: UILabel! |
| | | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | | |
| | |
| | | cover_imageView.sd_setImage(with: URL(string: m.coverImg)) |
| | | label_title.text = m.name |
| | | label_coin.text = "\(m.integral)积分" |
| | | |
| | | label_originPrice.isHidden = m.price <= 0 |
| | | |
| | | if !label_originPrice.isHidden{ |
| | | label_originPrice.attributedText = AttributedStringbuilder.build().add(string: "¥\(m.price)", withFont: UIFont.init(name: "Impact", size: 14) ?? .systemFont(ofSize: 14, weight: .medium), withColor: UIColor(hexString: "#9A9A9A")!).delLine(color: UIColor(hexString: "#9A9A9A")!).mutableAttributedString |
| | | } |
| | | } |
| | | } |
| | | } |