Commit 5023cc76 authored by pete谢兆麟's avatar pete谢兆麟

登录细节优化

parent e67cb13b
......@@ -30,14 +30,15 @@ class YHUserInfoSettingViewController: YHBaseViewController {
userViewModel.requestUserInfo {[weak self] success, error in
guard let self = self else { return }
let url = URL(string: self.userViewModel.model.avatar)
self.headUrl = self.userViewModel.model.avatar
self.photoImageView.kf.setImage(with: url)
self.nameTextField.text = self.userViewModel.model.username
if self.nameTextField.text?.count != 0 {
self.nextButton.isEnabled = true
self.nextButton.backgroundColor = UIColor.brandMainColor
self.nextButton.backgroundColor = UIColor.brandMainColor
} else {
self.nextButton.isEnabled = false
self.nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
self.nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
}
}
}
......
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