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

头像存储

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