Commit 6b81a7d9 authored by DavidHuang's avatar DavidHuang

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

# Conflicts:
#	galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
parents 1ab75951 eae35793
......@@ -145,6 +145,7 @@ class YHEducationDetailInfo: SmartCodable {
case majorOther = "major_other"
case hasBachelorDegree = "has_bachelor_degree"
case certConfirm = "cert_confirm"
case college_id = "college_id"
}
required init() {
......
......@@ -186,6 +186,12 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
}
} else if nationality.contains("中国") && is_live_oversea_year == 1 {
return [section, section2]
} else if nationality.contains("中国") && !addressCountry.contains("中国") {
if mainModel.is_handled == 1 {
return [section, section1]
} else {
return [section]
}
} else {
return [section2]
}
......@@ -197,8 +203,10 @@ class YHGCMainApplicantInformationViewModel: YHBaseViewModel {
case .id1:
mainModel.nationality = item.message ?? ""
mainModel.is_live_oversea_year = 0
case .id2:
mainModel.address.country = item.message ?? ""
mainModel.is_live_oversea_year = 0
case .id3:
mainModel.address.area = item.value ?? []
case .id4:
......
......@@ -168,6 +168,8 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
let value = model.value?.first?.int ?? 0
if value == 0 {
mainModel.has_work_experience = 2
mainModel.has_company_consent = 2
mainModel.has_center_consent = 1
} else if value == 1 {
mainModel.has_work_experience = 1
}
......
......@@ -26,7 +26,9 @@ extension YHJsApi {
DispatchQueue.main.async {
UIViewController.current?.navigationController?.popToRootViewController(animated: false)
goTabBarBy(tabType: .service)
NotificationCenter.default.post(name: YhConstant.YhNotification.didJumpToServiceProgressNotification, object: nil)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
NotificationCenter.default.post(name: YhConstant.YhNotification.didJumpToHomePageLifeEduTabNotification, object: nil)
}
}
}
......
......@@ -406,8 +406,6 @@ extension YhConstant {
//关闭直播间弹出的分享界面
public static let closeShareUIInLiveRoomNotifiction = Notification.Name(rawValue: "com.yinhe.app.close.share.ui")
// 跳转到服务Tab 中的 服务进度
public static let didJumpToServiceProgressNotification = Notification.Name(rawValue: "com.yinhe.service.tab.serviceprogress")
}
......
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