无故事王国
2023-10-26 152da0e2d8cd3bd522fb04d1114f0930c33c9fdf
WanPai/Root/Course/TCell/CourseExerciseTCell.swift
@@ -13,18 +13,18 @@
    var exerciseVideoModel:ExerciseVideoModel!{
        didSet{
            img_cover.sd_setImage(with: URL(string: exerciseVideoModel.coverImage))
            label_title.text = exerciseVideoModel.packageName
            label_course.text = "布置课程:\(exerciseVideoModel.videoName)"
            label_title.text = exerciseVideoModel.videoName
            label_course.text = "布置运动营:\(exerciseVideoModel.packageName)"
            label_info.text = exerciseVideoModel.synopsis
            label_obtainCoin.text = "\(exerciseVideoModel.integral)积分"
            if exerciseVideoModel.studyStatus == 1{
                label_status.text = "未学习"
                label_status.textColor = Def_ThemeColor
                view_status.backgroundColor = UIColor(hexStr: "#FD9331").withAlphaComponent(0.29)
            if exerciseVideoModel.studyStatus == 2{
            label_status.text = "已学习"
            label_status.textColor = .white
            view_status.backgroundColor = UIColor(hexStr: "#ACACAC")
            }else{
                label_status.text = "已学习"
                label_status.textColor = .white
                view_status.backgroundColor = UIColor(hexStr: "#ACACAC")
            label_status.text = "未学习"
            label_status.textColor = Def_ThemeColor
            view_status.backgroundColor = UIColor(hexStr: "#FD9331").withAlphaComponent(0.29)
            }
        }
    }
@@ -40,11 +40,14 @@
    override func awakeFromNib() {
        super.awakeFromNib()
        selectionStyle = .none
      backgroundColor = .clear
      contentView.backgroundColor = .clear
    }
    @IBAction func detailAction(_ sender: UIButton) {
        let vc = CourseVideoDetailVC(model: exerciseVideoModel)
        vc.title = "课后练习"
        JQ_currentViewController().jq_push(vc: vc)
    }
//    @IBAction func detailAction(_ sender: UIButton) {
//        let vc = CourseVideoDetailVC(model: exerciseVideoModel)
//        vc.title = "课后练习"
//        JQ_currentViewController().jq_push(vc: vc)
//    }
}