From e15c976316feef72ff9bcabce38e0a078f9505db Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 12 九月 2024 18:18:03 +0800
Subject: [PATCH] fix API

---
 XQMuse/Root/Course/TCell/CourseDetail_2_Inner_TCell.swift |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/XQMuse/Root/Course/TCell/CourseDetail_2_Inner_TCell.swift b/XQMuse/Root/Course/TCell/CourseDetail_2_Inner_TCell.swift
index ad7cb97..cf16393 100644
--- a/XQMuse/Root/Course/TCell/CourseDetail_2_Inner_TCell.swift
+++ b/XQMuse/Root/Course/TCell/CourseDetail_2_Inner_TCell.swift
@@ -10,15 +10,28 @@
 
 class CourseDetail_2_Inner_TCell: UITableViewCell {
 
+				@IBOutlet weak var label_index: UILabel!
 				@IBOutlet weak var btn_study: UIButton!
+				@IBOutlet weak var label_title: UILabel!
+				@IBOutlet weak var label_time: UILabel!
+				@IBOutlet weak var label_people: UILabel!
+				
 				override func awakeFromNib() {
         super.awakeFromNib()
 								selectionStyle = .none
+								btn_study.isUserInteractionEnabled = false
     }
 
+				func setModel(_ item:CourseItemModel,index:IndexPath){
+								label_index.text = "\(index.row + 1)"
+								label_title.text = item.chapterTitle
+								label_time.text = Date.jq_formateToTime(item.duration)
+								label_people.text = "\(item.realLearnedNum + item.virtualLearnedNum)"
+				}
+
 				@IBAction func studyAction(_ sender: Any) {
-								let vc = CourseDetialVideoVC()
-								JQ_currentViewController().jq_push(vc: vc)
+//								let vc = CourseDetialVideoVC()
+//								JQ_currentViewController().jq_push(vc: vc)
 				}
 				
 }

--
Gitblit v1.7.1