Commit eae35793 authored by pete谢兆麟's avatar pete谢兆麟

好多bug修复

parent 7dd6e839
...@@ -110,6 +110,7 @@ class YHServiceCenterViewController: YHBaseViewController { ...@@ -110,6 +110,7 @@ class YHServiceCenterViewController: YHBaseViewController {
} }
NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(jumpServiceList), name: YhConstant.YhNotification.goToServiceListNotification, object: nil)
noDataView.isHidden = false noDataView.isHidden = false
homeTableView.isHidden = true homeTableView.isHidden = true
...@@ -126,6 +127,19 @@ class YHServiceCenterViewController: YHBaseViewController { ...@@ -126,6 +127,19 @@ class YHServiceCenterViewController: YHBaseViewController {
self.isCanSelectStep = false self.isCanSelectStep = false
} }
@objc func jumpServiceList() {
let vc = YHOrderDetailViewController()
vc.model = oldModel
vc.backDate = { [weak self] model in
guard let self = self else { return }
self.model = model
self.state = 0
self.headIndex = 0
self.isCanSelectStep = false
}
self.navigationController?.pushViewController(vc)
}
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewWillAppear(animated)
loadData() loadData()
......
...@@ -145,6 +145,7 @@ class YHEducationDetailInfo: SmartCodable { ...@@ -145,6 +145,7 @@ class YHEducationDetailInfo: SmartCodable {
case majorOther = "major_other" case majorOther = "major_other"
case hasBachelorDegree = "has_bachelor_degree" case hasBachelorDegree = "has_bachelor_degree"
case certConfirm = "cert_confirm" case certConfirm = "cert_confirm"
case college_id = "college_id"
} }
required init() { required init() {
......
...@@ -186,6 +186,12 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel { ...@@ -186,6 +186,12 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
} }
} else if nationality.contains("中国") && is_live_oversea_year == 1 { } else if nationality.contains("中国") && is_live_oversea_year == 1 {
return [section, section2] return [section, section2]
} else if nationality.contains("中国") && !addressCountry.contains("中国") {
if mainModel.is_handled == 1 {
return [section, section1]
} else {
return [section]
}
} else { } else {
return [section2] return [section2]
} }
...@@ -197,8 +203,10 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel { ...@@ -197,8 +203,10 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
case .id1: case .id1:
mainModel.nationality = item.message ?? "" mainModel.nationality = item.message ?? ""
mainModel.is_live_oversea_year = 0
case .id2: case .id2:
mainModel.address.country = item.message ?? "" mainModel.address.country = item.message ?? ""
mainModel.is_live_oversea_year = 0
case .id3: case .id3:
mainModel.address.area = item.value ?? [] mainModel.address.area = item.value ?? []
case .id4: case .id4:
......
...@@ -168,6 +168,8 @@ class YHGCWorkItemListViewModel: YHBaseViewModel { ...@@ -168,6 +168,8 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
let value = model.value?.first?.int ?? 0 let value = model.value?.first?.int ?? 0
if value == 0 { if value == 0 {
mainModel.has_work_experience = 2 mainModel.has_work_experience = 2
mainModel.has_company_consent = 2
mainModel.has_center_consent = 1
} else if value == 1 { } else if value == 1 {
mainModel.has_work_experience = 1 mainModel.has_work_experience = 1
} }
......
...@@ -676,4 +676,14 @@ extension YHJsApi { ...@@ -676,4 +676,14 @@ extension YHJsApi {
} }
} }
} }
@objc func goServiceProgressPage(_ dicData: String) {
UIViewController.current?.navigationController?.popToRootViewController(animated: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.35) {
UIViewController.current?.tabBarController?.selectedIndex = 1
NotificationCenter.default.post(name: YhConstant.YhNotification.goToServiceListNotification, object: nil, userInfo: nil)
}
}
} }
...@@ -406,5 +406,7 @@ extension YhConstant { ...@@ -406,5 +406,7 @@ extension YhConstant {
//关闭直播间弹出的分享界面 //关闭直播间弹出的分享界面
public static let closeShareUIInLiveRoomNotifiction = Notification.Name(rawValue: "com.yinhe.app.close.share.ui") public static let closeShareUIInLiveRoomNotifiction = Notification.Name(rawValue: "com.yinhe.app.close.share.ui")
public static let goToServiceListNotification = Notification.Name(rawValue: "com.yinhe.goToServiceListNotification")
} }
} }
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