| | |
| | | |
| | | class Home_Style_1_TCell: UITableViewCell { |
| | | |
| | | var model:MeditationModel?{ |
| | | didSet{ |
| | | if let m = model{ |
| | | img_cover.sd_setImage(with: URL(string: m.backgroundUrl)) |
| | | label_title.text = "\(m.meditationTitle) | 00:00" |
| | | label_joinNum.text = "\(m.realLearnedNum)人已参加学习" |
| | | } |
| | | } |
| | | } |
| | | @IBOutlet weak var img_cover: UIImageView! |
| | | @IBOutlet weak var label_title: UILabel! |
| | | @IBOutlet weak var label_joinNum: UILabel! |
| | | @IBOutlet weak var img_play: UIImageView! |
| | | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | | selectionStyle = .none |