Commit 7faed1f4 authored by David黄金龙's avatar David黄金龙

添加 基本信息 输入的校验

parent e31771e2
...@@ -474,6 +474,15 @@ extension YHBasicInfoFillView : UITextFieldDelegate { ...@@ -474,6 +474,15 @@ extension YHBasicInfoFillView : UITextFieldDelegate {
} }
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
if !text.isEmpty {
if textView.text.count > 999 {
return false
}
}
return true
}
......
...@@ -71,7 +71,7 @@ extension YHServiceCenterMainViewModel { ...@@ -71,7 +71,7 @@ extension YHServiceCenterMainViewModel {
arrContactList.removeAll() arrContactList.removeAll()
if json.code == 200 { 0 if json.code == 200 {
let dic = json.data let dic = json.data
guard let resultModel = YHContactItemHoldModel.deserialize(dict: dic as? [AnyHashable : Any]) else { guard let resultModel = YHContactItemHoldModel.deserialize(dict: dic as? [AnyHashable : Any]) else {
arrContactList = [] arrContactList = []
......
...@@ -59,7 +59,6 @@ extension YHLoginViewModel { ...@@ -59,7 +59,6 @@ extension YHLoginViewModel {
return return
} }
if json.code == 200 { if json.code == 200 {
if resultModel.token?.count != 0 { if resultModel.token?.count != 0 {
//token 正常 //token 正常
......
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