Robert
4 天以前 dddaf0fa8bb2e9b77f1d5db6c11980c9e1d60acf
fix bug
4个文件已修改
17 ■■■■■ 已修改文件
WanPai/Common/CCell/WorldCupListRankViewCell.xib 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WanPai/Common/View/WorldCupListRankView.swift 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WanPai/Root/Other/View/CommonYearsPickerView.swift 补丁 | 查看 | 原始文档 | blame | 历史
WanPai/Root/Search/VC/WorldCupRankVC.swift 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WanPai/Common/CCell/WorldCupListRankViewCell.xib
@@ -11,10 +11,10 @@
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="WorldCupListRankViewCell" customModule="WanPai" customModuleProvider="target">
        <tableViewCell contentMode="scaleToFill" restorationIdentifier="WorldCupListRankViewCellId" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="WorldCupListRankViewCell" customModule="WanPai" customModuleProvider="target">
            <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" restorationIdentifier="WorldCupListRankViewCellId" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
                <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
                <autoresizingMask key="autoresizingMask"/>
                <subviews>
WanPai/Common/View/WorldCupListRankView.swift
@@ -11,14 +11,16 @@
class WorldCupListRankView: UIView,JQNibView, UITableViewDelegate, UITableViewDataSource {
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return dataSoure?.count ?? 0
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tabview.dequeueReusableCell(withIdentifier: "WorldCupListRankViewCellId", for: indexPath) as! WorldCupListRankViewCell
        cell.chooseBtn.isSelected = indexPath.row == selectIndex
        cell.chooseBtn.isSelected = indexPath.row == selectIndex ? true : false
        cell.index = indexPath.row
        cell.selectionStyle = .none
        cell.tag = indexPath.row
        cell.titleLab.text = dataSoure?[indexPath.row].name ?? ""
               // RxSwift绑定
        cell.chooseBtn.rx.tap
                   .map { cell.tag } // 从cell的tag获取行索引
@@ -42,7 +44,7 @@
    
    var dataSoure: Array<GetWorldCupListFromRank>?
    
    var disposeBag:DisposeBag!
    var disposeBag = DisposeBag()
    
    var selectIndex = 0
    
@@ -53,7 +55,9 @@
        tabview.delegate = self
        tabview.dataSource = self
        tabview.separatorStyle = .none
        tabview.register(WorldCupListRankViewCell.self, forCellReuseIdentifier: "WorldCupListRankViewCellId")
        tabview.rowHeight = 44
//        tabview.register(WorldCupListRankViewCell.self, forCellReuseIdentifier: "WorldCupListRankViewCellId")
        tabview.register(UINib(nibName: "WorldCupListRankViewCell", bundle: nil), forCellReuseIdentifier: "WorldCupListRankViewCellId")
        sureAction.layer.masksToBounds = true
        sureAction.layer.cornerRadius = 5
       
WanPai/Root/Other/View/CommonYearsPickerView.swift
WanPai/Root/Search/VC/WorldCupRankVC.swift
@@ -152,7 +152,6 @@
                    self?.viewModel.beginRefresh()
                }
            }
        }).disposed(by: disposeBag)
    }
                @objc func filterAction(){