Commit 214facd6 authored by David黄金龙's avatar David黄金龙

处理 学位类型的提示

parent 6d0c8de5
...@@ -236,13 +236,6 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -236,13 +236,6 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
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 = nil
if detailItem.type == .degreeType {
cell.tipsBtnClickBlock = {
[weak self] in
guard let self = self else { return }
YHHUD.flash(message: "该内容在学位证上,通常是授予后面,如授予“理学”学士学位,则填理学")
}
}
cell.placeHolder = detailItem.placeHolder cell.placeHolder = detailItem.placeHolder
cell.isMust = detailItem.isNeed cell.isMust = detailItem.isNeed
cell.title = detailItem.getTitle() cell.title = detailItem.getTitle()
......
...@@ -171,9 +171,7 @@ class YHFormItemSelectSheetCell: UITableViewCell { ...@@ -171,9 +171,7 @@ class YHFormItemSelectSheetCell: UITableViewCell {
} }
@objc func didTipsButtonClicked() { @objc func didTipsButtonClicked() {
if let tipsBtnClickBlock = tipsBtnClickBlock { YHWholeScreenTipsView.show(type: .residenceInfo, targetView: tipsButton)
tipsBtnClickBlock()
}
} }
func setTips(_ tips:String?, isShow:Bool) { func setTips(_ tips:String?, isShow:Bool) {
......
...@@ -11,6 +11,7 @@ import UIKit ...@@ -11,6 +11,7 @@ import UIKit
enum YHWholeScreenTipsViewType : Int { enum YHWholeScreenTipsViewType : Int {
case unKnow //默认情况 case unKnow //默认情况
case residenceInfo //居住信息 case residenceInfo //居住信息
case degreeType //学位类型
} }
...@@ -57,6 +58,9 @@ class YHWholeScreenTipsView: UIView { ...@@ -57,6 +58,9 @@ class YHWholeScreenTipsView: UIView {
switch type { switch type {
case .residenceInfo: case .residenceInfo:
return "依日期顺序列出你自出生后曾居住12个月或更长时间的所有国家或地区,包括你的现居国家或地区" return "依日期顺序列出你自出生后曾居住12个月或更长时间的所有国家或地区,包括你的现居国家或地区"
case .degreeType:
return "该内容在学位证上,通常是授予后面,如授予“理学”学士学位,则填理学"
default: default:
return "--" return "--"
} }
......
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