杨锴
2024-11-07 62a24b3c7cf92919a93ee575e9460037e1a53816
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
            }