| | |
| | | } |
| | | } |
| | | |
| | | let Refresh_MineBusinessCredit_Noti = Notification.Name.init("Refresh_MineBusinessCredit_Noti") |
| | | |
| | | class MineBusinessCreditVC: YYViewController { |
| | | |
| | | @IBOutlet weak var label_quotaAccount: UILabel! |
| | |
| | | tableview.dataSource = self |
| | | viewModel.configure(tableView: tableview) |
| | | tableview.beginRefreshing() |
| | | |
| | | label_quotaAccount.text = "\(app.userInfo.balance.remain2Digits())" |
| | | label_account.text = "\(app.userInfo.balanceQuota.remain2Digits())" |
| | | } |
| | | |
| | | override func bindRx() { |
| | | NotificationCenter.default.rx.notification(Refresh_MineBusinessCredit_Noti).takeUntil(self.rx.deallocated).subscribe(onNext: {[weak self] noti in |
| | | self?.tableview.beginRefreshing() |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | |
| | | @IBAction func applyAction(_ sender: UIButton) { |
| | |
| | | } |
| | | |
| | | extension MineBusinessCreditVC:UITableViewDelegate{ |
| | | |
| | | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| | | let model = viewModel.dataSource.value[indexPath.row] |
| | | let vc = MineBusinessCreditDetailVC(model: model) |
| | | yy_push(vc: vc) |
| | | } |
| | | } |
| | | |
| | | extension MineBusinessCreditVC:UITableViewDataSource{ |