杨锴
2024-12-27 fe02f75ab7a593f33d60c15308ddf7a974962db4
XQMuse/Root/Home/TCell/Home_Style_3_TCell.swift
@@ -27,7 +27,6 @@
                        collectionView.bounces = false
                        collectionView.showsHorizontalScrollIndicator = false
                        collectionView.register(UINib(nibName: "HomeRelaxBannerCCell", bundle: nil), forCellWithReuseIdentifier: "_HomeRelaxBannerCCell")
//                        collectionView.scrollToItem(at: IndexPath(row: 2, section: 0), at: .centeredHorizontally, animated: true)
                        collectionView.contentInset = UIEdgeInsets(top: 0, left: 100 , bottom: 0, right: 100)
    }
@@ -36,6 +35,10 @@
        self.showType = showType
                        self.meditationModels = items
                        collectionView.reloadData()
        if items.count >= 3 {
            collectionView.scrollToItem(at: IndexPath(row: 1, section: 0), at: .centeredHorizontally, animated: true)
        }
            }
}