| | |
| | | @IBAction func datetimeAction(_ sender: UIButton) { |
| | | CommonDatePickerView.show(before: 3, after: 0, type: .YM) {[weak self] year, month, day,_,_ in |
| | | self?.btn_date.setTitle(String(format: "%ld年%02ld月>", year!,month!), for: .normal) |
| | | self?.viewModel.yearMonth.accept(String(format: "%ld-02ld", year!,month!)) |
| | | self?.viewModel.yearMonth.accept(String(format: "%ld-%02ld", year!,month!)) |
| | | self?.viewModel.beginRefresh() |
| | | } |
| | | } |
| | |
| | | |
| | | @IBAction func rechargeAction(_ sender: UIButton) { |
| | | let vc = RechargeCenterVC() |
| | | vc.viewModel = viewModel |
| | | push(vc: vc) |
| | | } |
| | | } |