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