From 62a24b3c7cf92919a93ee575e9460037e1a53816 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 07 十一月 2024 19:10:20 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Me/VC/WatchHistoryDetailVC.swift |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/XQMuse/Root/Me/VC/WatchHistoryDetailVC.swift b/XQMuse/Root/Me/VC/WatchHistoryDetailVC.swift
index dff0996..2a7a411 100644
--- a/XQMuse/Root/Me/VC/WatchHistoryDetailVC.swift
+++ b/XQMuse/Root/Me/VC/WatchHistoryDetailVC.swift
@@ -50,7 +50,7 @@
 								collectionView.dataSource = self
 								collectionView.showsVerticalScrollIndicator = false
 								collectionView.backgroundColor = .clear
-								collectionView.register(UINib(nibName: "HomeRelaxBannerCCell", bundle: nil), forCellWithReuseIdentifier: "_HomeRelaxBannerCCell")
+								collectionView.register(UINib(nibName: "HomeRelaxBanner_2_1_CCell", bundle: nil), forCellWithReuseIdentifier: "_HomeRelaxBanner_2_1_CCell")
 								collectionView.contentInset = UIEdgeInsets(top: 0, left: 29.5 , bottom: 0, right: 29.5)
 
 								view.addSubview(collectionView)
@@ -70,9 +70,16 @@
 				}
 
 				func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
-								let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_HomeRelaxBannerCCell", for: indexPath) as! HomeRelaxBannerCCell
+								let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_HomeRelaxBanner_2_1_CCell", for: indexPath) as! HomeRelaxBanner_2_1_CCell
 								let m = viewModel.dataSource.value[indexPath.row]
 								cell.setCourseModel(m)
+
+        if viewModel.type.value == .payment{
+            cell.image_free.isHidden = true
+            cell.img_vip.isHidden = true
+            cell.view_price.isHidden = true
+        }
+
 								return cell
 				}
 

--
Gitblit v1.7.1