Commit 4f798907 authored by pete谢兆麟's avatar pete谢兆麟

工作经验调整

parent 0cc9efb0
...@@ -191,9 +191,9 @@ extension YHWorkExperienceListViewController: UITableViewDelegate, UITableViewDa ...@@ -191,9 +191,9 @@ extension YHWorkExperienceListViewController: UITableViewDelegate, UITableViewDa
cell.clickBlock = { [weak self] value, index in cell.clickBlock = { [weak self] value, index in
guard let self = self else { return } guard let self = self else { return }
if index == 0 { if index == 0 {
self.viewModel?.mainModel.work_time_overlap_remark = value
} else {
self.viewModel?.mainModel.work_time_empty_remark = value self.viewModel?.mainModel.work_time_empty_remark = value
} else {
self.viewModel?.mainModel.work_time_overlap_remark = value
} }
} }
cell.backgroundColor = .clear cell.backgroundColor = .clear
......
...@@ -561,7 +561,11 @@ extension YHWorkExperienceItemView: UITextFieldDelegate { ...@@ -561,7 +561,11 @@ extension YHWorkExperienceItemView: UITextFieldDelegate {
} }
let newText = (textField.text! as NSString).replacingCharacters(in: range, with: string) let newText = (textField.text! as NSString).replacingCharacters(in: range, with: string)
if (dataSource?.id == .id1 || dataSource?.id == .id7 || dataSource?.id == .id14 || dataSource?.id == .id16 || dataSource?.id == .id18) && newText.count > 10 { if (dataSource?.id == .id7 || dataSource?.id == .id14 || dataSource?.id == .id16 || dataSource?.id == .id18) && newText.count > 10 {
return false
}
if dataSource?.id == .id1 && newText.count > 50 {
return false return false
} }
...@@ -586,7 +590,7 @@ extension YHWorkExperienceItemView: UITextFieldDelegate { ...@@ -586,7 +590,7 @@ extension YHWorkExperienceItemView: UITextFieldDelegate {
return false return false
} }
if (dataSource?.id == .id12 || dataSource?.id == .id8) && newText.count > 50 { if (dataSource?.id == .id12 || dataSource?.id == .id8 ) && newText.count > 50 {
return false return false
} }
......
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