登录逻辑的完善
This commit is contained in:
@@ -21,6 +21,7 @@ class AuthLoginVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
loadSubViews()
|
||||
viewModel.data.subscribe(onNext: { [weak self] success in
|
||||
if success {
|
||||
HUDTool.show(with: "验证码已发送\n+86\(self?.phone ?? "")")
|
||||
self?.startCountdown()
|
||||
}
|
||||
}).disposed(by: rx.disposeBag)
|
||||
@@ -389,7 +390,7 @@ extension AuthLoginVC {
|
||||
if phone.count > 0 {
|
||||
viewModel.getSmsCode(phone: phone, type: 1)
|
||||
} else {
|
||||
HUDTool.showSuccess(with: "请输入正确的手机号码")
|
||||
HUDTool.show(with: "请输入正确的手机号码")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user