|
@ -10,8 +10,8 @@ import UIKit |
|
|
|
|
|
|
|
|
class WithdrawFromWalletDetailViewController: UIViewController { |
|
|
class WithdrawFromWalletDetailViewController: UIViewController { |
|
|
struct StringConstants { |
|
|
struct StringConstants { |
|
|
let titleText = "withdraw_text".localized() |
|
|
|
|
|
let descText = "withdraw_detail_text".localized() |
|
|
|
|
|
|
|
|
let titleText = "bank_deposit_text".localized() |
|
|
|
|
|
let descText = "bank_deposit_detail_text".localized() |
|
|
let bankText = "bank_text".localized() |
|
|
let bankText = "bank_text".localized() |
|
|
let accountNumberText = "account_number_text".localized() |
|
|
let accountNumberText = "account_number_text".localized() |
|
|
let amountText = "amount_text".localized() |
|
|
let amountText = "amount_text".localized() |
|
@ -52,6 +52,7 @@ class WithdrawFromWalletDetailViewController: UIViewController { |
|
|
override func viewDidLoad() { |
|
|
override func viewDidLoad() { |
|
|
super.viewDidLoad() |
|
|
super.viewDidLoad() |
|
|
self.setup() |
|
|
self.setup() |
|
|
|
|
|
self.presenter?.fetchModel() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) { |
|
|
override func viewWillAppear(_ animated: Bool) { |
|
@ -117,6 +118,13 @@ extension WithdrawFromWalletDetailViewController: WithdrawFromWalletDetailViewIn |
|
|
self.navigationController?.popToRootViewController(animated: true) |
|
|
self.navigationController?.popToRootViewController(animated: true) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func setModel(model: WithdrawInformation){ |
|
|
|
|
|
self.bankContentLabel.text = model.bankName ?? "" |
|
|
|
|
|
self.acNumberContentLabel.text = model.accountNo ?? "" |
|
|
|
|
|
self.amountContentLabel.text = (model.amount ?? "") + " MNT" |
|
|
|
|
|
self.serviceChargeContentLabel.text = (model.serviceCharge ?? "") + " MNT" |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|