Commit 50564cc0 authored by Steven杜宇's avatar Steven杜宇

// UI走查

parent aa2a99d2
...@@ -114,7 +114,7 @@ class YHEducationInfoListVC: YHBaseViewController { ...@@ -114,7 +114,7 @@ class YHEducationInfoListVC: YHBaseViewController {
arr0.append(item) arr0.append(item)
} }
// 多学历可编辑删除状态 // 多学历可编辑删除状态
if eduList.count <= 0 { if eduList.count <= 1 {
isDegreeEditMode = .none isDegreeEditMode = .none
} else { } else {
if isDegreeEditMode == .none { if isDegreeEditMode == .none {
...@@ -317,7 +317,7 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource { ...@@ -317,7 +317,7 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
} }
let tips = String(format: "有%d项未填", eduInfo.vacantNum) let tips = String(format: "有%d项未填", eduInfo.vacantNum)
cell.detailLabel.text = tips cell.detailLabel.text = tips
cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel) cell.isShowDeleteBtn = (isDegreeEditMode == .canCancel && eduList.count > 1)
cell.setTips(tips, isShow:(isNeedShowError && eduInfo.vacantNum > 0)) cell.setTips(tips, isShow:(isNeedShowError && eduInfo.vacantNum > 0))
cell.deleteBlock = { cell.deleteBlock = {
var title = "确定删除该学历吗?" var title = "确定删除该学历吗?"
......
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