杨锴
2024-11-09 5415b6659e542b21058428bbc0d38e7f5783815b
XQMuse/Root/Me/VC/BankWithdrawVC.swift
@@ -7,6 +7,7 @@
import UIKit
import QMUIKit
import JQTools
let WithDrawReply_Noti = Notification.Name.init("WithDrawReply_Noti")
@@ -39,6 +40,7 @@
        btn_complete.isEnabled = false
        btn_complete.alpha = 0.6
        tf_withdraw.delegate = self
    }
            override func setUI() {
@@ -79,12 +81,6 @@
            }
            @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
            }
@@ -177,3 +173,9 @@
                        return 84
            }
}
extension BankWithdrawVC:UITextFieldDelegate{
    func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
        return textField.jq_filterDecimals(replacementString: string, range: range)
    }
}