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

// 学历

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