From 63f7ed967433acee3ae8764c7a077e15c29c41f2 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期三, 06 十一月 2024 21:17:19 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Course/TCell/CourseDetail_3_TCell.swift |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/XQMuse/Root/Course/TCell/CourseDetail_3_TCell.swift b/XQMuse/Root/Course/TCell/CourseDetail_3_TCell.swift
index cfcf5a8..bb43d94 100644
--- a/XQMuse/Root/Course/TCell/CourseDetail_3_TCell.swift
+++ b/XQMuse/Root/Course/TCell/CourseDetail_3_TCell.swift
@@ -50,8 +50,13 @@
 
 				func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
 								let model = items[indexPath.row]
-								let vc = CourseDetialVC(courseId: model.id)
-								JQ_currentViewController().jq_push(vc: vc)
+        if model.courseType == .online{
+            let vc = CourseDetialVC(courseId: model.id)
+            JQ_currentViewController().jq_push(vc: vc)
+        }else{
+            let vc = CourseDetialOfflineVC(courseId: model.id)
+            JQ_currentViewController().jq_push(vc: vc)
+        }
 				}
 }
 

--
Gitblit v1.7.1