无故事王国
2023-09-25 69d86fd3224046b2e2b57a71fcfcd8706d179e21
WanPai/Root/Home/VC/HomeVC.swift
@@ -44,7 +44,7 @@
        super.viewDidLoad()
        viewModel.configure(collectionView,needMore: false)
      startLocation()
//      startLocation()
        viewModel.dataSource.subscribe(onNext: {[weak self] data in
            guard let weakSelf = self else { return }
@@ -65,6 +65,13 @@
                    }
                }
            }
         Services.homeInfo2(storeId: weakSelf.viewModel.storeId.value).subscribe(onNext: {data in
         }) { error in
         }.disposed(by: weakSelf.disposeBag)
            group.notify(queue: .main){
                //重置Layout,不然不更新
@@ -262,8 +269,6 @@
extension HomeVC: WaterFallLayoutDelegate{
    func waterFlowLayout(_ waterFlowLayout: WaterFallFlowLayout, itemHeight indexPath: IndexPath) -> CGFloat {
        let item = items[indexPath.row]
      if indexPath.row % 2 != 0{
            return 185
        }else{