无故事王国
2024-07-02 655a0215e597e3c46834d9d8a609bab729a1816f
DolphinEnglishLearnStudent/Moudle/Me/VC/ExchangeRecordHistoryVC.swift
@@ -44,17 +44,18 @@
                        tableView.separatorStyle = .none
                        tableView.register(UINib(nibName: "GoodsItemTCell", bundle: nil), forCellReuseIdentifier: "_GoodsItemTCell")
                        view.addSubview(tableView)
                        tableView.snp.makeConstraints { make in
                        tableView.snp.makeConstraints {[weak self] make in
                                    guard let weakSelf = self else { return }
                                    make.left.equalTo(159 * Config.RatioW)
                                    make.right.equalTo(-159 * Config.RatioW)
                                    make.top.equalTo(self.view.safeAreaLayoutGuide.snp.top).offset(27 * Config.RatioW)
                                    make.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-5)
                                    make.top.equalTo(weakSelf.view.safeAreaLayoutGuide.snp.top).offset(27 * Config.RatioW)
                                    make.bottom.equalTo(weakSelf.view.safeAreaLayoutGuide.snp.bottom).offset(-5)
                        }
            }
            override func setRx() {
                        NotificationCenter.default.rx.notification(Refresh_MarketExchange_Noti).take(until: self.rx.deallocated).subscribe(onNext: {_ in
                                    self.viewModel.beginRefresh()
                        NotificationCenter.default.rx.notification(Refresh_MarketExchange_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self] _ in
                                    self?.viewModel.beginRefresh()
                        }).disposed(by: disposeBag)
            }
}
@@ -74,10 +75,4 @@
            func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
                        return viewModel.dataSource.value.count
            }
//            func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
////                        return 215
//            }
}