杨锴
2024-11-11 9e77b0f9014653255eb51e81b8a8ba719443839d
XQMuse/Root/Home/TCell/Home_Style_1_TCell.swift
@@ -10,7 +10,7 @@
class Home_Style_1_TCell: UITableViewCell {
            var model:MeditationModel?{
            var model:ToDayMeditationModel?{
                        didSet{
                                    if let m = model{
@@ -19,14 +19,14 @@
                    view_data.isHidden = true
                }else{
                    view_data.isHidden = false
                    img_cover.sd_setImage(with: URL(string: m.coverUrl.jq_urlEncoded()))
                    img_cover.sd_setImage(with: URL(string: m.imageUrl.jq_urlEncoded()))
                    let turple = Date.jq_formateToTime_tuple(m.time)
                   let minute = (turple.hour * 60 + turple.minute)
                    let second = turple.second
                    label_title.text = "\(m.meditationTitle) | \(String(format: "%.2ld:%.2ld", minute,second))"
                    label_joinNum.text = "\(m.realLearnedNum + m.virtualLearnedNum)人已参加学习"
                    label_title.text = "\(m.clientMeditationVO!.meditationTitle) | \(String(format: "%.2ld:%.2ld", minute,second))"
                    label_joinNum.text = "\(m.clientMeditationVO!.realLearnedNum + m.clientMeditationVO!.virtualLearnedNum)人已参加学习"
                }
                                    }
                        }
@@ -41,5 +41,9 @@
        super.awakeFromNib()
                        selectionStyle = .none
    }
    func setplaying(){
        img_play.image = AudioPlayer.getSharedInstance().bgmPlayer?.timeControlStatus == .playing ? UIImage(named: "btn_pause"):UIImage(named: "icon_play")
    }
}