Commit 31b6d2a4 authored by David黄金龙's avatar David黄金龙

验证码输入错误 后 不能重新输入的bug

parent 11c0ebc3
......@@ -179,6 +179,7 @@ class YHCodeSueecssViewController: YHBaseViewController {
guard let self = self else { return }
if success == false {
YHHUD.flash(message: error?.errorMsg ?? "")
self.smscodeView.textField.becomeFirstResponder()
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
......
......@@ -57,7 +57,7 @@ class YHSmsCodeInputView: UIView {
}
func setupUI() {
self .addSubview(textField)
self.addSubview(textField)
textField.snp.makeConstraints { make in
make.edges.equalTo(self)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment