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/VC/CourseVCOfficalCommentVC.swift | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift b/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift index b17c83b..1d57422 100644 --- a/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift +++ b/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift @@ -78,17 +78,14 @@ func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { let model = viewModel.dataSource.value!.list[indexPath.row] - let vc = CourseDetialVC(courseId: model.id) - JQ_currentViewController().jq_push(vc: vc) -// let isVip = UserViewModel.getAvatarInfo().isVip == .yes -// if model.isBuy == .yes || model.chargeType == .free || (model.chargeType == .vipFree && isVip){ -// -// return -// }else{ -// 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) + } } @@ -157,6 +154,9 @@ } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize { + if section == 0{ + return .zero + } return CGSize(width: JQ_ScreenW, height: 80.5) } } -- Gitblit v1.7.1