无故事王国
2023-10-25 5c244d5766b17c33da14b134fb6d20556a4c2d1d
WanPai/Root/Course/VC/CourseOnlineListVC.swift
@@ -71,7 +71,7 @@
        flowlayout.minimumLineSpacing = 22
//        flowlayout.sectionHeadersPinToVisibleBounds = true
        flowlayout.headerReferenceSize = CGSize(width: JQ_ScreenW, height: 52)
      flowlayout.footerReferenceSize = CGSize(width: JQ_ScreenW, height: 1)
      flowlayout.footerReferenceSize = CGSize(width: JQ_ScreenW, height: 10)
        collectionView = BaseCollectionView(frame: .zero, collectionViewLayout: flowlayout)
        collectionView.register(UINib(nibName: "CourseOnlineCCell", bundle: nil), forCellWithReuseIdentifier: "_CourseOnlineCCell")
        collectionView.register(UINib(nibName: "CourseOnlineHeadView", bundle: nil), forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "_CourseOnlineHeadView")
@@ -136,7 +136,14 @@
      if kind == UICollectionView.elementKindSectionFooter{
         var footerView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "_footer", for: indexPath)
         footerView.backgroundColor = UIColor(hexStr: "#979797").withAlphaComponent(0.29)
         let lineView = UIView()
         lineView.backgroundColor = UIColor(hexStr: "#979797").withAlphaComponent(0.29)
         footerView.addSubview(lineView)
         lineView.snp.makeConstraints { make in
            make.left.right.bottom.equalToSuperview()
            make.height.equalTo(1)
         }
         return footerView
      }