Commit 7f6cf11b authored by Steven杜宇's avatar Steven杜宇

// 学历

parent 3f2e6c85
...@@ -285,11 +285,12 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -285,11 +285,12 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
} else if cellType == .cerConfirm { } else if cellType == .cerConfirm {
let cell = tableView.dequeueReusableCell(withIdentifier: YHEducationCertificateConfirmCell.cellReuseIdentifier, for: indexPath) as! YHEducationCertificateConfirmCell let cell = tableView.dequeueReusableCell(withIdentifier: YHEducationCertificateConfirmCell.cellReuseIdentifier, for: indexPath) as! YHEducationCertificateConfirmCell
cell.isCheck = isNeedShowError
var isSelectTrue = false var isSelectTrue = false
var isSelectFalse = false var isSelectFalse = false
var isCerConfirm = detailInfo.certConfirm let isCerConfirm = detailInfo.certConfirm
if isCerConfirm == 1 { if isCerConfirm == 1 {
isSelectTrue = true isSelectTrue = true
isSelectFalse = false isSelectFalse = false
......
...@@ -23,7 +23,7 @@ class YHEducationCertificateConfirmCell: UITableViewCell { ...@@ -23,7 +23,7 @@ class YHEducationCertificateConfirmCell: UITableViewCell {
private let answerBaseTag = 9527 private let answerBaseTag = 9527
// 是否必须字段 // 是否必须字段
var isMust:Bool = false var isCheck:Bool = false
var answerBlock:(([YHFormChoiceItem], Int)->Void)? var answerBlock:(([YHFormChoiceItem], Int)->Void)?
// 必须传2个item的arr // 必须传2个item的arr
...@@ -55,9 +55,15 @@ class YHEducationCertificateConfirmCell: UITableViewCell { ...@@ -55,9 +55,15 @@ class YHEducationCertificateConfirmCell: UITableViewCell {
} }
} else { // 没有选择 } else { // 没有选择
let tips: ASAttributedString = .init("请选择", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor.failColor)) if isCheck {
tipsLabel.attributed.text = tips let tips: ASAttributedString = .init("请选择", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor.failColor))
isNeedShowTips(true) tipsLabel.attributed.text = tips
isNeedShowTips(true)
} else {
tipsLabel.attributed.text = ""
isNeedShowTips(false)
}
} }
} else { } else {
......
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