From 152da0e2d8cd3bd522fb04d1114f0930c33c9fdf Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期四, 26 十月 2023 17:19:30 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Course/TCell/CourseExerciseTCell.swift |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/WanPai/Root/Course/TCell/CourseExerciseTCell.swift b/WanPai/Root/Course/TCell/CourseExerciseTCell.swift
index 8927276..e9fe7be 100644
--- a/WanPai/Root/Course/TCell/CourseExerciseTCell.swift
+++ b/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)
+//    }
 }

--
Gitblit v1.7.1