| | |
| | | view_data.isHidden = true |
| | | }else{ |
| | | view_data.isHidden = false |
| | | img_cover.sd_setImage(with: URL(string: model.imageUrl.jq_urlEncoded())) |
| | | |
| | | let turple = Date.jq_formateToTime_tuple(model.time) |
| | | let minute = (turple.hour * 60 + turple.minute) |
| | | let second = turple.second |
| | | if model.isShow == 0{ |
| | | img_cover.sd_setImage(with: URL(string: model.imageUrl.jq_urlEncoded())) |
| | | |
| | | label_title.text = "\(model.clientMeditationVO!.meditationTitle) | \(String(format: "%.2ld:%.2ld", minute,second))" |
| | | label_joinNum.text = "\(model.clientMeditationVO!.realLearnedNum + model.clientMeditationVO!.virtualLearnedNum)人已参加学习" |
| | | let turple = Date.jq_formateToTime_tuple(model.time) |
| | | let minute = (turple.hour * 60 + turple.minute) |
| | | let second = turple.second |
| | | |
| | | label_title.text = "\(model.clientMeditationVO!.meditationTitle) | \(String(format: "%.2ld:%.2ld", minute,second))" |
| | | label_joinNum.text = "\(model.clientMeditationVO!.realLearnedNum + model.clientMeditationVO!.virtualLearnedNum)人已参加学习" |
| | | } |
| | | |
| | | if model.isShow == 1{ |
| | | img_cover.sd_setImage(with: URL(string: model.meditationVideo?.imageUrl.jq_urlEncoded())) |
| | | let turple = Date.jq_formateToTime_tuple(model.meditationVideo?.videoSecond ?? 0) |
| | | let minute = (turple.hour * 60 + turple.minute) |
| | | let second = turple.second |
| | | label_title.text = "\(model.meditationVideo?.title ?? "") | \(String(format: "%.2ld:%.2ld", minute,second))" |
| | | label_joinNum.text = "" |
| | | } |
| | | } |
| | | } |
| | | |