Commit 12b5d7e6 authored by Steven杜宇's avatar Steven杜宇

// 学历

parent d2c87217
......@@ -505,7 +505,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
vc.orderId = self.orderId
vc.searchMajorName = detailInfo.major
vc.selectBlock = {
[weak self] fullName, enName in
[weak self] fullName, chineseName in
guard let self = self else { return }
if let text = fullName, !text.isEmpty {
detailInfo.major = text
......@@ -513,8 +513,8 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
detailInfo.major = ""
}
if let enname = enName, !enname.isEmpty {
detailInfo.tempMajor = enname
if let chineseName = chineseName, !chineseName.isEmpty {
detailInfo.tempMajor = chineseName
} else {
detailInfo.tempMajor = ""
}
......
......@@ -151,7 +151,7 @@ extension YHMajorSearchViewController: UITableViewDelegate, UITableViewDataSourc
if let selectBlock = selectBlock {
if indexPath.row < majors.count {
let major:YHMajorInfo = majors[indexPath.row]
selectBlock(major.getMajorName(), major.en_name)
selectBlock(major.getMajorName(), major.ch_name)
self.navigationController?.popViewController(animated: true)
}
}
......
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