Commit df4dbd70 authored by David黄金龙's avatar David黄金龙
parents 56d158f7 21b60759
...@@ -245,7 +245,9 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -245,7 +245,9 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
} else if cellType == .selectSheet { } else if cellType == .selectSheet {
let cell = tableView.dequeueReusableCell(withIdentifier: YHFormItemSelectSheetCell.cellReuseIdentifier, for: indexPath) as! YHFormItemSelectSheetCell let cell = tableView.dequeueReusableCell(withIdentifier: YHFormItemSelectSheetCell.cellReuseIdentifier, for: indexPath) as! YHFormItemSelectSheetCell
cell.isShowTipsButton = (detailItem.type == .degreeType) cell.isShowTipsButton = (detailItem.type == .degreeType)
cell.tipsBtnClickBlock = nil cell.tipsBtnClickBlock = {
YHWholeScreenTipsView.show(type: .degreeType, targetView: cell.tipsButton)
}
cell.placeHolder = detailItem.placeHolder cell.placeHolder = detailItem.placeHolder
cell.isMust = detailItem.isNeed cell.isMust = detailItem.isNeed
cell.title = detailItem.getTitle() cell.title = detailItem.getTitle()
......
...@@ -89,7 +89,7 @@ class YHFormItemSelectSheetCell: UITableViewCell { ...@@ -89,7 +89,7 @@ class YHFormItemSelectSheetCell: UITableViewCell {
return label return label
}() }()
private lazy var tipsButton: UIButton = { lazy var tipsButton: UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setImage(UIImage(named: "form_btn_tips"), for: .normal) btn.setImage(UIImage(named: "form_btn_tips"), for: .normal)
btn.addTarget(self, action: #selector(didTipsButtonClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(didTipsButtonClicked), for: .touchUpInside)
...@@ -175,7 +175,9 @@ class YHFormItemSelectSheetCell: UITableViewCell { ...@@ -175,7 +175,9 @@ class YHFormItemSelectSheetCell: UITableViewCell {
} }
@objc func didTipsButtonClicked() { @objc func didTipsButtonClicked() {
YHWholeScreenTipsView.show(type: .degreeType, targetView: tipsButton) if let tipsBtnClickBlock = tipsBtnClickBlock {
tipsBtnClickBlock()
}
} }
func setTips(_ tips:String?, isShow:Bool) { func setTips(_ tips:String?, isShow:Bool) {
......
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