Commit dde81c59 authored by pete谢兆麟's avatar pete谢兆麟

头像存储

parent f9055eff
......@@ -141,6 +141,13 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
self.viewModel.uploadImage(image, true) {[weak self] success, error in
guard let self = self else { return }
self.model.avatar = success ?? ""
if self.viewModel.isCanNext(step: 1) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
}
}
}
}
......
......@@ -30,6 +30,7 @@ class YHEditHonorViewController: YHBaseViewController {
} else {
promptsLabel.isHidden = false
}
numberLabel.text = messageTextField.text.count.string + "/200"
}
func setView() {
......
......@@ -30,6 +30,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
} else {
promptsLabel.isHidden = false
}
numberLabel.text = messageTextField.text.count.string + "/200"
}
func setView() {
......
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