fix
无故事王国
2024-03-04 54c6ef0be42d9f2e49a344fd69f231cb6df43797
WanPai/Root/Search/VC/WorldCupVC.swift
@@ -13,6 +13,19 @@
class WorldCupVC: BaseVC {
            private var partModels = [ActivityDetailPartModel](){
                        didSet{
                                    currentPartModel = partModels.first
                        }
            }
            private var currentPartModel:ActivityDetailPartModel?{
                        didSet{
                                    headerVC.currentPartModel = currentPartModel
                                    pageVC.reloadData()
                        }
            }
            lazy var headerVC:WorldCupHeaderVC = {
                        let vc = WorldCupHeaderVC()
                        return vc
@@ -33,7 +46,6 @@
                        vc.style = .subRefresh
                        return vc
            }()
            lazy var pageVC:FFPageViewController = {
                        let pageViewController = FFPageViewController()
@@ -65,6 +77,13 @@
                        }
                        menuVC.pageMenu.delegate = self
                        Services.getParticipant().subscribe(onNext: {[weak self ]data in
                                    if let items = data.data{
                                                guard let weakSelf = self else { return }
                                                weakSelf.partModels = items
                                    }
                        }).disposed(by: disposeBag)
    }
            override func setUI() {
@@ -79,7 +98,9 @@
            
            func pageViewController(_ pageViewConteoller: FFPageViewController, controllerForPage page: Int) -> UIViewController {
                        if page <= 1{
                                    return WorldCupContentVC()
                                    let contentVC = WorldCupContentVC(state:page + 1)
                                    contentVC.currentPartModel = currentPartModel
                                    return contentVC
                        }else if page == 2{
                                    return WorldCupRecordVC()
                        }else{