| | |
| | | |
| | | import UIKit |
| | | import QMUIKit |
| | | import JQTools |
| | | |
| | | let WithDrawReply_Noti = Notification.Name.init("WithDrawReply_Noti") |
| | | |
| | |
| | | |
| | | btn_complete.isEnabled = false |
| | | btn_complete.alpha = 0.6 |
| | | tf_withdraw.delegate = self |
| | | } |
| | | |
| | | override func setUI() { |
| | |
| | | } |
| | | |
| | | @IBAction func withdrawAllAction(_ sender: UIButton) { |
| | | tf_withdraw.resignFirstResponder() |
| | | |
| | | guard tf_withdraw.text?.toDouble ?? 0 > 0 else{ |
| | | alertError(msg: "提现余额不足");return |
| | | } |
| | | |
| | | tf_withdraw.resignFirstResponder() |
| | | tf_withdraw.text = income.jq_formatFloat |
| | | } |
| | |
| | | return 84 |
| | | } |
| | | } |
| | | |
| | | extension BankWithdrawVC:UITextFieldDelegate{ |
| | | func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { |
| | | return textField.jq_filterDecimals(replacementString: string, range: range) |
| | | } |
| | | } |