Commit edaac167 authored by David黄金龙's avatar David黄金龙

完善 一处 UI展示 逻辑

parent 491570a4
......@@ -322,6 +322,33 @@ private extension YHBasicInfoFillView {
guard let subModel = model.model else {
printLog("errorr: 数据有问题")
title = model.question
if model.answer == "Y" {
didClickResponseBtn(btn: answer2Btn)
mutilChoiceHoldView.isHidden = false
} else {
if model.answer == "N" {
didClickResponseBtn(btn: answer1Btn)
} else {
answer2Btn.isSelected = false
updateAnswerButton(answer2Btn, false)
additionHoldView.snp.removeConstraints()
mutilChoiceHoldView.snp.removeConstraints()
bottomLine.snp.remakeConstraints { make in
make.top.equalTo(answer1Btn.snp.bottom).offset(12)
make.left.right.equalToSuperview()
make.height.equalTo(0.5)
make.bottom.equalToSuperview()
}
additionHoldView.isHidden = true
bottomLine.isHidden = false
mutilChoiceHoldView.isHidden = true
}
}
return
}
......@@ -399,8 +426,6 @@ private extension YHBasicInfoFillView {
additionHoldView.isHidden = true
bottomLine.isHidden = false
mutilChoiceHoldView.isHidden = true
// model?.answer = "N"
}
}
} else {
......@@ -473,7 +498,6 @@ extension YHBasicInfoFillView : UITextFieldDelegate {
sender.isSelected = true
model?.info = String(sender.tag)
}
}
}
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