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

工作经验基本信息

parent 7845195c
......@@ -48,7 +48,6 @@
0468D4452B62064700CFB916 /* YHStepView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4442B62064700CFB916 /* YHStepView.swift */; };
0468D4472B624AF000CFB916 /* YHBottomNextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4462B624AF000CFB916 /* YHBottomNextView.swift */; };
0468D4492B6258A900CFB916 /* YHItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4482B6258A900CFB916 /* YHItemView.swift */; };
0468D44B2B625AAB00CFB916 /* YHItemModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D44A2B625AAB00CFB916 /* YHItemModel.swift */; };
0468D44D2B62643700CFB916 /* YHMainInformationTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D44C2B62643700CFB916 /* YHMainInformationTableViewCell.swift */; };
0468D44F2B634E8B00CFB916 /* YHMainApplicantInformationViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D44E2B634E8A00CFB916 /* YHMainApplicantInformationViewModel.swift */; };
0468D4512B67721700CFB916 /* YHMainInformationCardTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4502B67721700CFB916 /* YHMainInformationCardTableViewCell.swift */; };
......@@ -63,8 +62,6 @@
0468D47E2B68CEA200CFB916 /* YHImagePickerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D47D2B68CEA200CFB916 /* YHImagePickerView.swift */; };
0468D4802B6914E600CFB916 /* YHSelectCountryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D47F2B6914E600CFB916 /* YHSelectCountryViewController.swift */; };
0468D4822B6A2A8500CFB916 /* YHSelectCountryViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4812B6A2A8500CFB916 /* YHSelectCountryViewModel.swift */; };
0468D4842B6A2F0D00CFB916 /* YHCountryMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4832B6A2F0D00CFB916 /* YHCountryMessage.swift */; };
0468D4862B6A41F300CFB916 /* YHMainInformationModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0468D4852B6A41F300CFB916 /* YHMainInformationModel.swift */; };
04808C062B4686510056D53C /* ATAuthSDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 04808C042B4686510056D53C /* ATAuthSDK.bundle */; };
04808C082B4686C10056D53C /* ATAuthSDK_D.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 04808C032B4686510056D53C /* ATAuthSDK_D.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
049A48A82B49417300D0C641 /* YHAboutUsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 049A48A72B49417300D0C641 /* YHAboutUsViewController.swift */; };
......@@ -89,6 +86,15 @@
04E86E302B81EA1000A35F4B /* YHWorkExperienceListTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E2A2B81EA1000A35F4B /* YHWorkExperienceListTableViewCell.swift */; };
04E86E312B81EA1000A35F4B /* YHWorkItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E2B2B81EA1000A35F4B /* YHWorkItemView.swift */; };
04E86E322B81EA1000A35F4B /* YHWorkItemAddView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E2C2B81EA1000A35F4B /* YHWorkItemAddView.swift */; };
04E86E342B83268F00A35F4B /* YHWorkExperienceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E332B83268F00A35F4B /* YHWorkExperienceViewController.swift */; };
04E86E362B832F5D00A35F4B /* YHWorkExperienceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E352B832F5D00A35F4B /* YHWorkExperienceTableViewCell.swift */; };
04E86E382B83306800A35F4B /* YHWorkExperienceViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E372B83306800A35F4B /* YHWorkExperienceViewModel.swift */; };
04E86E3A2B83321600A35F4B /* YHWorkExperienceModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E392B83321600A35F4B /* YHWorkExperienceModel.swift */; };
04E86E3C2B833DB900A35F4B /* YHWorkExperienceItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E3B2B833DB900A35F4B /* YHWorkExperienceItemView.swift */; };
04E86E3E2B834FC100A35F4B /* YHWorkExperienceTextItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E3D2B834FC100A35F4B /* YHWorkExperienceTextItemView.swift */; };
04E86E432B8357EC00A35F4B /* YHMainInformationModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E402B8357EC00A35F4B /* YHMainInformationModel.swift */; };
04E86E442B8357EC00A35F4B /* YHCountryMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E412B8357EC00A35F4B /* YHCountryMessage.swift */; };
04E86E452B8357EC00A35F4B /* YHItemModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E86E422B8357EC00A35F4B /* YHItemModel.swift */; };
6203A87EDC96313BBE789D9C /* Pods_galaxy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 987C69D43AE8D85DC1930DCF /* Pods_galaxy.framework */; };
A51044182B493675006B60BB /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = A51044172B493675006B60BB /* README.md */; };
A510441A2B495DD0006B60BB /* UIView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = A51044192B495DD0006B60BB /* UIView+Extension.swift */; };
......@@ -290,7 +296,6 @@
0468D4442B62064700CFB916 /* YHStepView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHStepView.swift; sourceTree = "<group>"; };
0468D4462B624AF000CFB916 /* YHBottomNextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHBottomNextView.swift; sourceTree = "<group>"; };
0468D4482B6258A900CFB916 /* YHItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHItemView.swift; sourceTree = "<group>"; };
0468D44A2B625AAB00CFB916 /* YHItemModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHItemModel.swift; sourceTree = "<group>"; };
0468D44C2B62643700CFB916 /* YHMainInformationTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMainInformationTableViewCell.swift; sourceTree = "<group>"; };
0468D44E2B634E8A00CFB916 /* YHMainApplicantInformationViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMainApplicantInformationViewModel.swift; sourceTree = "<group>"; };
0468D4502B67721700CFB916 /* YHMainInformationCardTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMainInformationCardTableViewCell.swift; sourceTree = "<group>"; };
......@@ -305,8 +310,6 @@
0468D47D2B68CEA200CFB916 /* YHImagePickerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHImagePickerView.swift; sourceTree = "<group>"; };
0468D47F2B6914E600CFB916 /* YHSelectCountryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectCountryViewController.swift; sourceTree = "<group>"; };
0468D4812B6A2A8500CFB916 /* YHSelectCountryViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectCountryViewModel.swift; sourceTree = "<group>"; };
0468D4832B6A2F0D00CFB916 /* YHCountryMessage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCountryMessage.swift; sourceTree = "<group>"; };
0468D4852B6A41F300CFB916 /* YHMainInformationModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMainInformationModel.swift; sourceTree = "<group>"; };
04808C032B4686510056D53C /* ATAuthSDK_D.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ATAuthSDK_D.framework; sourceTree = "<group>"; };
04808C042B4686510056D53C /* ATAuthSDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = ATAuthSDK.bundle; sourceTree = "<group>"; };
049A48A72B49417300D0C641 /* YHAboutUsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAboutUsViewController.swift; sourceTree = "<group>"; };
......@@ -331,6 +334,15 @@
04E86E2A2B81EA1000A35F4B /* YHWorkExperienceListTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceListTableViewCell.swift; sourceTree = "<group>"; };
04E86E2B2B81EA1000A35F4B /* YHWorkItemView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHWorkItemView.swift; sourceTree = "<group>"; };
04E86E2C2B81EA1000A35F4B /* YHWorkItemAddView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHWorkItemAddView.swift; sourceTree = "<group>"; };
04E86E332B83268F00A35F4B /* YHWorkExperienceViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceViewController.swift; sourceTree = "<group>"; };
04E86E352B832F5D00A35F4B /* YHWorkExperienceTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceTableViewCell.swift; sourceTree = "<group>"; };
04E86E372B83306800A35F4B /* YHWorkExperienceViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceViewModel.swift; sourceTree = "<group>"; };
04E86E392B83321600A35F4B /* YHWorkExperienceModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceModel.swift; sourceTree = "<group>"; };
04E86E3B2B833DB900A35F4B /* YHWorkExperienceItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceItemView.swift; sourceTree = "<group>"; };
04E86E3D2B834FC100A35F4B /* YHWorkExperienceTextItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHWorkExperienceTextItemView.swift; sourceTree = "<group>"; };
04E86E402B8357EC00A35F4B /* YHMainInformationModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHMainInformationModel.swift; sourceTree = "<group>"; };
04E86E412B8357EC00A35F4B /* YHCountryMessage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHCountryMessage.swift; sourceTree = "<group>"; };
04E86E422B8357EC00A35F4B /* YHItemModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YHItemModel.swift; sourceTree = "<group>"; };
58C2405158A4A6632D0E7460 /* Pods-galaxy.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.debug.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.debug.xcconfig"; sourceTree = "<group>"; };
987C69D43AE8D85DC1930DCF /* Pods_galaxy.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_galaxy.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A51044172B493675006B60BB /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
......@@ -606,9 +618,9 @@
0468D43D2B61F68100CFB916 /* MainApplicantInformation */ = {
isa = PBXGroup;
children = (
04E86E3F2B8357EC00A35F4B /* M */,
0468D4412B61F6CA00CFB916 /* VM */,
0468D4402B61F6C400CFB916 /* V */,
0468D43F2B61F6BD00CFB916 /* M */,
0468D43E2B61F6B100CFB916 /* C */,
);
path = MainApplicantInformation;
......@@ -626,9 +638,6 @@
0468D43F2B61F6BD00CFB916 /* M */ = {
isa = PBXGroup;
children = (
0468D44A2B625AAB00CFB916 /* YHItemModel.swift */,
0468D4832B6A2F0D00CFB916 /* YHCountryMessage.swift */,
0468D4852B6A41F300CFB916 /* YHMainInformationModel.swift */,
);
path = M;
sourceTree = "<group>";
......@@ -757,6 +766,7 @@
isa = PBXGroup;
children = (
04E86E242B81EA1000A35F4B /* YHWorkItemListViewModel.swift */,
04E86E372B83306800A35F4B /* YHWorkExperienceViewModel.swift */,
);
path = ViewModel;
sourceTree = "<group>";
......@@ -765,6 +775,7 @@
isa = PBXGroup;
children = (
04E86E262B81EA1000A35F4B /* YHWorkItemListModel.swift */,
04E86E392B83321600A35F4B /* YHWorkExperienceModel.swift */,
);
path = Model;
sourceTree = "<group>";
......@@ -773,6 +784,7 @@
isa = PBXGroup;
children = (
04E86E282B81EA1000A35F4B /* YHWorkExperienceListViewController.swift */,
04E86E332B83268F00A35F4B /* YHWorkExperienceViewController.swift */,
);
path = C;
sourceTree = "<group>";
......@@ -781,12 +793,25 @@
isa = PBXGroup;
children = (
04E86E2A2B81EA1000A35F4B /* YHWorkExperienceListTableViewCell.swift */,
04E86E352B832F5D00A35F4B /* YHWorkExperienceTableViewCell.swift */,
04E86E2B2B81EA1000A35F4B /* YHWorkItemView.swift */,
04E86E2C2B81EA1000A35F4B /* YHWorkItemAddView.swift */,
04E86E3B2B833DB900A35F4B /* YHWorkExperienceItemView.swift */,
04E86E3D2B834FC100A35F4B /* YHWorkExperienceTextItemView.swift */,
);
path = V;
sourceTree = "<group>";
};
04E86E3F2B8357EC00A35F4B /* M */ = {
isa = PBXGroup;
children = (
04E86E402B8357EC00A35F4B /* YHMainInformationModel.swift */,
04E86E412B8357EC00A35F4B /* YHCountryMessage.swift */,
04E86E422B8357EC00A35F4B /* YHItemModel.swift */,
);
path = M;
sourceTree = "<group>";
};
4758815B24BAF3CAA24EC6A8 /* Pods */ = {
isa = PBXGroup;
children = (
......@@ -1093,6 +1118,7 @@
isa = PBXGroup;
children = (
A5ACE8E82B4564F7002C94D2 /* M */,
0468D43F2B61F6BD00CFB916 /* M */,
A5ACE8EB2B4564F7002C94D2 /* V */,
A5ACE8E92B4564F7002C94D2 /* C */,
);
......@@ -1589,14 +1615,15 @@
A5ACE9542B4564F7002C94D2 /* YHNavigationController.swift in Sources */,
A5FD63DF2B6639AD00D1D9DA /* YHScoreDataModel.swift in Sources */,
A5ACE95E2B4571BF002C94D2 /* YHHomeViewController.swift in Sources */,
0468D4842B6A2F0D00CFB916 /* YHCountryMessage.swift in Sources */,
A5FD63BD2B623C2C00D1D9DA /* YHInformationPerfectListVC.swift in Sources */,
041B52932B5E6CBA007EBCEB /* YHFormItemTitleCell.swift in Sources */,
04E86E382B83306800A35F4B /* YHWorkExperienceViewModel.swift in Sources */,
0468D4822B6A2A8500CFB916 /* YHSelectCountryViewModel.swift in Sources */,
041B52952B5E7037007EBCEB /* YHFormItemAddCell.swift in Sources */,
A5ACE93D2B4564F7002C94D2 /* UIButton+Extension.swift in Sources */,
041B528D2B5E58FA007EBCEB /* YHFormItemDoubleChoiceCell.swift in Sources */,
0468D4802B6914E600CFB916 /* YHSelectCountryViewController.swift in Sources */,
04E86E362B832F5D00A35F4B /* YHWorkExperienceTableViewCell.swift in Sources */,
A5ACE9292B4564F7002C94D2 /* YHSmsCodeInputView.swift in Sources */,
A5ACE9452B4564F7002C94D2 /* YHHUDContainerView.swift in Sources */,
A5ACE93A2B4564F7002C94D2 /* NSAttributedString+Extension.swift in Sources */,
......@@ -1636,6 +1663,7 @@
0468D4452B62064700CFB916 /* YHStepView.swift in Sources */,
A5C5B3232B57BF8F00A7C5D1 /* YHDavidCell1.swift in Sources */,
A5FD63E82B67D8EA00D1D9DA /* YHMainApplicantInfoViewController.swift in Sources */,
04E86E3A2B83321600A35F4B /* YHWorkExperienceModel.swift in Sources */,
A5FD63F82B68D78B00D1D9DA /* YHPersonInfoCellModel1.swift in Sources */,
A5FD63CD2B64E2D600D1D9DA /* YHScoreDetailViewController.swift in Sources */,
04E86E2D2B81EA1000A35F4B /* YHWorkItemListViewModel.swift in Sources */,
......@@ -1669,9 +1697,9 @@
A5ACE9502B4564F7002C94D2 /* YhCacheTool.swift in Sources */,
A5234E352B707F6B00A33433 /* YHBasicInfoSessionModel.swift in Sources */,
A5234E312B6F9C5E00A33433 /* YHBasicInfoFillViewModel.swift in Sources */,
0468D4862B6A41F300CFB916 /* YHMainInformationModel.swift in Sources */,
0468D4242B494BEA00CFB916 /* YHCodeResultViewController.swift in Sources */,
A5FD63EA2B67D95100D1D9DA /* YHFamilyMemberViewController.swift in Sources */,
04E86E432B8357EC00A35F4B /* YHMainInformationModel.swift in Sources */,
04E86E2F2B81EA1000A35F4B /* YHWorkExperienceListViewController.swift in Sources */,
A5ACE93F2B4564F7002C94D2 /* UIViewController+Extension.swift in Sources */,
042FBBD62B67BDD500F9DE23 /* YHBrotherInfoVC.swift in Sources */,
......@@ -1686,6 +1714,7 @@
041B52912B5E67F3007EBCEB /* YHFormItemEnterDetailCell.swift in Sources */,
04C6936B2B7329E7004C1758 /* YHEducationInfoCell.swift in Sources */,
04E86E092B707ACE00A35F4B /* YHPhoneLoginViewController.swift in Sources */,
04E86E342B83268F00A35F4B /* YHWorkExperienceViewController.swift in Sources */,
A5ACE9422B4564F7002C94D2 /* AppDelegate+Extension.swift in Sources */,
A5FD63BF2B6250BC00D1D9DA /* YHInformationPerfectCell.swift in Sources */,
A510441A2B495DD0006B60BB /* UIView+Extension.swift in Sources */,
......@@ -1719,10 +1748,10 @@
A5FD63D42B65F99500D1D9DA /* YHScoreItemCell.swift in Sources */,
A5ACE9432B4564F7002C94D2 /* UILable+Extension.swift in Sources */,
A5ACE9382B4564F7002C94D2 /* UIApplication+Extension.swift in Sources */,
0468D44B2B625AAB00CFB916 /* YHItemModel.swift in Sources */,
041B52872B5657B3007EBCEB /* IMAppKey.swift in Sources */,
043955212B70955200955D49 /* YHFormPickerViewType.swift in Sources */,
043955232B70BC2500955D49 /* YHChildInfoContainerVC.swift in Sources */,
04E86E442B8357EC00A35F4B /* YHCountryMessage.swift in Sources */,
0468D42B2B55019900CFB916 /* YHAnalytics.swift in Sources */,
A5ACE93C2B4564F7002C94D2 /* UIColor+Extension.swift in Sources */,
042FBBBD2B63519C00F9DE23 /* YHFormItemSelectSheetCell.swift in Sources */,
......@@ -1734,6 +1763,7 @@
A58556C02B6C82AF003746B2 /* YHScoreResultBaseModel.swift in Sources */,
A5C5B2EA2B4ECA4D00A7C5D1 /* YHDavidModel0.swift in Sources */,
A5ACE9572B4564F7002C94D2 /* YHBasicContentView.swift in Sources */,
04E86E3E2B834FC100A35F4B /* YHWorkExperienceTextItemView.swift in Sources */,
042FBBC92B64DC8900F9DE23 /* YHFormItemExpireDateCell.swift in Sources */,
A5234E2E2B6E43EA00A33433 /* YHBasicInfoFillView.swift in Sources */,
A5FD63C12B62616D00D1D9DA /* YHInformationPerfectModel.swift in Sources */,
......@@ -1748,6 +1778,7 @@
0468D4792B68A08600CFB916 /* YHAddressViewController.swift in Sources */,
A5ACE9562B4564F7002C94D2 /* YHBouncesContentView.swift in Sources */,
042FBBCB2B65058000F9DE23 /* YHChildBasicInfoVC.swift in Sources */,
04E86E452B8357EC00A35F4B /* YHItemModel.swift in Sources */,
A5ACE9302B4564F7002C94D2 /* Algorithm.swift in Sources */,
A5C5B32B2B57D17600A7C5D1 /* YHDavidCell5.swift in Sources */,
04E86E0B2B70C13300A35F4B /* YHCodeSueecssViewController.swift in Sources */,
......@@ -1757,6 +1788,7 @@
A5C5B3272B57C8D500A7C5D1 /* YHDavidCell2.swift in Sources */,
A5FD63D62B65FCA400D1D9DA /* YHScoreTitleView.swift in Sources */,
04E86E302B81EA1000A35F4B /* YHWorkExperienceListTableViewCell.swift in Sources */,
04E86E3C2B833DB900A35F4B /* YHWorkExperienceItemView.swift in Sources */,
A5FD63DA2B66060800D1D9DA /* YHScoreOptionsView.swift in Sources */,
A5ACE9372B4564F7002C94D2 /* YHBaseUrlManager.swift in Sources */,
A5ACE9352B4564F7002C94D2 /* YHNetRequest.swift in Sources */,
......
......@@ -9,7 +9,6 @@
import UIKit
class YHWorkExperienceListViewController: YHBaseViewController {
var bottomView: UIView!
var bottomButton: UIButton!
var tableView: UITableView!
......@@ -84,12 +83,11 @@ class YHWorkExperienceListViewController: YHBaseViewController {
make.height.equalTo(48)
make.left.equalTo(16)
}
}
@objc func submit() {
let vc = YHWorkExperienceViewController()
self.navigationController?.pushViewController(vc, animated: true)
}
}
......
//
// YHWorkExperienceViewController.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHWorkExperienceViewController: YHBaseViewController {
var stepView: YHStepView!
var bottomView: YHBottomNextView!
var tableView: UITableView!
var viewModel: YHWorkExperienceViewModel!
var dataSource: [YHSectionWorkExperienceModel]?
override func viewDidLoad() {
super.viewDidLoad()
viewModel = YHWorkExperienceViewModel()
gk_navTitle = "工作经验信息填写"
setView()
getData()
// Do any additional setup after loading the view.
}
func getData() {
updateDataSource()
}
func updateDataSource() {
if self.stepView.currentIndex == 0 {
self.dataSource = self.viewModel.getBaseDataSource()
}
self.tableView.reloadData()
}
func setView() {
stepView = {
let step = YHStepView()
step.dataSource = ["基本信息", "工作职责", "工作亮点", "项目介绍", "简历/工作总结"]
step.contentSize = CGSize(width: KScreenWidth * 1.2, height: 104)
step.showsHorizontalScrollIndicator = false
step.showsVerticalScrollIndicator = false
step.block = { [weak self] (index) in
guard let self = self else { return }
self.updateDataSource()
}
return step
}()
view.addSubview(stepView)
stepView.snp.makeConstraints { make in
make.top.equalTo(k_Height_NavigationtBarAndStatuBar)
make.left.right.equalTo(view)
make.height.equalTo(104)
}
tableView = {
let tableView = UITableView(frame:.zero, style:.plain)
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never
}
tableView.backgroundColor = .clear
tableView.separatorStyle = .none
tableView.delegate = self
tableView.dataSource = self
tableView.register(cellWithClass: YHWorkExperienceTableViewCell.self)
return tableView
}()
view.addSubview(tableView)
tableView.snp.makeConstraints { make in
make.top.equalTo(k_Height_NavigationtBarAndStatuBar + YHStepView.height)
make.bottom.equalTo(-k_Height_safeAreaInsetsBottom() - 64)
make.left.right.bottom.equalTo(view)
}
bottomView = {
let bottom = YHBottomNextView()
bottom.nextblock = { [weak self] in
guard let self = self else { return }
self.stepView.currentIndex = self.stepView.currentIndex + 1
}
bottom.saveBlock = { [weak self] in
guard let self = self else { return }
}
return bottom
}()
view.addSubview(bottomView)
bottomView.snp.makeConstraints { make in
make.left.right.bottom.equalTo(view)
make.height.equalTo(k_Height_safeAreaInsetsBottom() + 64)
}
}
}
extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return dataSource?.count ?? 0
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withClass: YHWorkExperienceTableViewCell.self)
cell.dataSource = dataSource?[indexPath.row]
cell.workExperienceBlock = {[weak self] model in
guard let self = self else { return }
// self.viewModel.updateModel(model)
self.updateDataSource()
}
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
let array = dataSource?[indexPath.row].models ?? []
var h = 0
for i in 0..<array.count {
let data = array[i]
if data.id == .id3 || data.id == .id4 || data.id == .id18 {
h = h + 132
} else if data.id == .id13 {
h = h + 72
} else {
h = h + 52
}
}
return CGFloat(h + 52 + 14)
}
}
//
// YHWorkExperienceModel.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
enum YHWorkExperienceSelectType: Int {
case normal = 0
case unit = 1
case nature = 2
case country = 3
case address = 4
case time = 5
case certificate = 6
case structure = 7
case level = 8
case prove = 9
}
enum YHWorkExperienceID: Int {
case id1 = 0 // 用人单位
case id2 = 1 // 用人单位性质
case id3 = 2 // 用人单位介绍
case id4 = 3 // 用人单位官网
case id5 = 4 // 工作地区国家
case id6 = 5 // 工作城市 国内
case id7 = 6 // 工作城市国外
case id8 = 7 // 职位
case id9 = 8 // 入职年月
case id10 = 9 // 离职年月
case id11 = 10 // 工作证明文件
case id12 = 11 // 职责性质
case id13 = 12 // 是否国际工作经验
case id14 = 13 // 企业人数规模
case id15 = 14 // 行政架构层级
case id16 = 15 // 下属管理人数
case id17 = 16 // 公司营业额/港元
case id18 = 17 // 公司性质/范畴/所属行业
case id19 = 18 // 职位水平类型
case id20 = 19 // 高管证明文件
case id21 = 20 // 高管在职开始时间
case id22 = 21 // 高管在职结束时间
}
struct YHWorkExperienceModel {
var id: YHWorkExperienceID?
var isNeed: Bool?
var title: String?
var isUserKeyBoard: Bool?
var prompts: String?
var message: String?
var leftButtonString: String?
var rightButtonString: String?
var type: YHWorkExperienceSelectType?
var value: [String]?
init(id: YHWorkExperienceID? = nil, isNeed: Bool? = nil, title: String? = nil, isUserKeyBoard: Bool? = nil, prompts: String? = nil, message: String? = nil, leftButtonString: String? = nil, rightButtonString: String? = nil, type: YHWorkExperienceSelectType? = nil, value: [String]? = nil) {
self.id = id
self.isNeed = isNeed
self.title = title
self.isUserKeyBoard = isUserKeyBoard
self.prompts = prompts
self.message = message
self.leftButtonString = leftButtonString
self.rightButtonString = rightButtonString
self.type = type
self.value = value
}
}
struct YHSectionWorkExperienceModel {
var title: String?
var models: [YHWorkExperienceModel]?
init(title: String? = nil, models: [YHWorkExperienceModel]? = nil) {
self.title = title
self.models = models
}
}
//
// YHWorkExperienceItemView.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHWorkExperienceItemView: UIView {
typealias ItemBlock = (_ model: YHWorkExperienceModel) -> ()
var block: ItemBlock?
var titleLabel: UILabel!
var messageTextField: UITextField!
var nextStepImageView: UIImageView!
var centerButton: UIButton!
var leftButton: UIButton!
var rightButton: UIButton!
var dataSource: YHWorkExperienceModel? {
didSet {
updateAllViews()
}
}
override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = .white
setUpView()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func setUpView() {
titleLabel = {
let label = UILabel()
label.numberOfLines = 0
return label
}()
addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.top.bottom.equalToSuperview()
make.width.equalTo(112)
}
messageTextField = {
let textField = UITextField()
textField.delegate = self
return textField
}()
addSubview(messageTextField)
messageTextField.snp.makeConstraints { make in
make.right.top.bottom.equalToSuperview()
make.left.equalTo(112)
}
nextStepImageView = {
let imageView = UIImageView()
imageView.image = UIImage(named: "form_right_arrow")
return imageView
}()
addSubview(nextStepImageView)
nextStepImageView.snp.makeConstraints { make in
make.right.equalToSuperview()
make.centerY.equalToSuperview()
make.height.width.equalTo(20)
}
centerButton = {
let button = UIButton(type: .custom)
button.addTarget(self, action: #selector(centerClick), for: .touchUpInside)
return button
}()
addSubview(centerButton)
centerButton.snp.makeConstraints { make in
make.right.top.bottom.equalToSuperview()
make.left.equalTo(112)
}
rightButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal)
button.layer.cornerRadius = 16
button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
button.isSelected = true
button.addTarget(self, action: #selector(rightClick), for: .touchUpInside)
return button
}()
addSubview(rightButton)
rightButton.snp.makeConstraints { make in
make.right.equalToSuperview()
make.centerY.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(74)
}
leftButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal)
button.layer.cornerRadius = 16
button.addTarget(self, action: #selector(leftClick), for: .touchUpInside)
return button
}()
addSubview(leftButton)
leftButton.snp.makeConstraints { make in
make.right.equalTo(rightButton.snp.left).offset(-12)
make.centerY.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(74)
}
}
func updateAllViews() {
guard let dataSource = dataSource else { return }
if dataSource.isNeed ?? false {
let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222)
]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1)
questionAttrStr.addAttribute(NSAttributedString.Key.foregroundColor, value: UIColor(hex:0xFF3A3A), range: starRange)
titleLabel.attributedText = questionAttrStr
} else {
let str = dataSource.title ?? ""
let attributes: [NSAttributedString.Key: Any] = [
.font: kFont(size: 14),
.foregroundColor: UIColor(hex:0x222222)
]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
titleLabel.attributedText = questionAttrStr
}
messageTextField.placeholder = dataSource.prompts
messageTextField.text = dataSource.message
if dataSource.isUserKeyBoard ?? false {
nextStepImageView.isHidden = true
centerButton.isHidden = true
} else {
// if let type = dataSource.type {
// switch type {
// case .normal: break
// case .address: break
// case .time: break
// case .image: break
// case .id:
// messageTextField.text = YHFormPickerViewSubType.certificate(YHPickerViewCertificateType(rawValue: dataSource.message?.int ?? 0) ?? .chineseStatelessTravelPassport).title
// case .country: break
// case .sex:
// messageTextField.text = YHFormPickerViewSubType.gender(YHPickerViewGenderType(rawValue: dataSource.message?.int ?? 0) ?? .female).title
// case .marry:
// messageTextField.text = YHFormPickerViewSubType.marriage(YHPickerViewMarriageType(rawValue: dataSource.message?.int ?? 0) ?? .unmarriage).title
// }
// }
nextStepImageView.isHidden = false
centerButton.isHidden = false
}
if (dataSource.leftButtonString != nil) {
leftButton.isHidden = false
leftButton.setTitle(dataSource.leftButtonString, for: .normal)
nextStepImageView.isHidden = true
messageTextField.isHidden = true
if dataSource.message == "0" {
buttonState(isLeft: false)
} else {
buttonState(isLeft: true)
}
} else {
leftButton.isHidden = true
}
if (dataSource.rightButtonString != nil) {
rightButton.isHidden = false
rightButton.setTitle(dataSource.rightButtonString, for: .normal)
nextStepImageView.isHidden = true
messageTextField.isHidden = true
} else {
rightButton.isHidden = true
}
}
func buttonState(isLeft: Bool) {
if isLeft {
leftButton.isSelected = true
rightButton.isSelected = false
leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb)
rightButton.layer.borderWidth = 0
} else {
rightButton.isSelected = true
leftButton.isSelected = false
rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb)
leftButton.layer.borderWidth = 0
}
}
@objc func rightClick() {
rightButton.isSelected = true
leftButton.isSelected = false
rightButton.layer.borderWidth = 1
rightButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
rightButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
leftButton.backgroundColor = UIColor(hex: 0xf8f9fb)
leftButton.layer.borderWidth = 0
dataSource?.message = "0"
dataSource?.value = ["0"]
if let block = block {
block(dataSource ?? YHWorkExperienceModel())
}
}
@objc func leftClick() {
leftButton.isSelected = true
rightButton.isSelected = false
leftButton.layer.borderWidth = 1
leftButton.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
leftButton.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
rightButton.backgroundColor = UIColor(hex: 0xf8f9fb)
rightButton.layer.borderWidth = 0
dataSource?.message = "1"
dataSource?.value = ["1"]
if let block = block {
block(dataSource ?? YHWorkExperienceModel())
}
}
@objc func centerClick() {
guard let type = dataSource?.type else { return }
switch type {
case .normal:
printLog("不需要跳转")
case .address:
let addressPicker = YHAddressViewController(selectProvince: "上海市", selectCity: "" )
addressPicker.backLocationStringController = { (address,province,city,area) in
self.dataSource?.message = address
self.dataSource?.value = [province, city, area]
self.updateAllViews()
if let block = self.block {
block(self.dataSource ?? YHWorkExperienceModel())
}
}
UIViewController.current?.present(addressPicker, animated: true, completion: nil)
case .time:
YHDatePickView.show(type: .yyyymm) { date in
// let arr = date.components(separatedBy: YHDatePickView.separator)
// [yyyy, mm, dd] eg ["2024", "01", "20"]
self.dataSource?.message = date
self.updateAllViews()
if let block = self.block {
block(self.dataSource ?? YHWorkExperienceModel())
}
}
// case .image:
// let view = YHImagePickerView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight))
// view.backImage = { [weak self] image in
// guard let self = self else { return }
// self.updateAllViews()
// if let block = block {
// block(dataSource ?? YHWorkExperienceModel())
// }
// }
// let window = UIApplication.shared.yhKeyWindow()
// window?.addSubview(view)
// case .id:
// YHFormPickerView.show(type: .certificate, selectTitle: "公务通行证") { selectType in
// // 选择类型的标题
// self.dataSource?.message = selectType.title
// self.dataSource?.value = ["\(selectType.index)"]
// self.updateAllViews()
// if let block = self.block {
// block(self.dataSource ?? YHWorkExperienceModel())
// }
// }
case .country:
let vc = YHSelectCountryViewController()
vc.backLocationStringController = { (country) in
self.dataSource?.message = country
self.updateAllViews()
if let block = self.block {
block(self.dataSource ?? YHWorkExperienceModel())
}
}
UIViewController.current?.navigationController?.pushViewController(vc)
// case .sex:
// YHFormPickerView.show(type: .gender, selectType: .gender(.female)) { selectType in
// // 选择类型的标题
// self.dataSource?.message = selectType.title
// self.dataSource?.value = ["\(selectType.index)"]
// self.updateAllViews()
// if let block = self.block {
// block(self.dataSource ?? YHWorkExperienceModel())
// }
// }
// case .marry:
// YHFormPickerView.show(type: .marriage, selectType: .marriage(.divorced)) { selectType in
// // 选择类型的标题
// self.dataSource?.message = selectType.title
// self.dataSource?.value = ["\(selectType.index)"]
// self.updateAllViews()
// if let block = self.block {
// block(self.dataSource ?? YHWorkExperienceModel())
// }
// }
case .unit:
break
case .nature:
break
case .certificate:
break
case .structure:
break
case .level:
break
case .prove:
break
}
}
}
extension YHWorkExperienceItemView: UITextFieldDelegate {
func textFieldDidEndEditing(_ textField: UITextField) {
dataSource?.message = textField.text
if let block = block {
block(dataSource ?? YHWorkExperienceModel())
}
}
}
//
// YHWorkExperienceTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHWorkExperienceTableViewCell: UITableViewCell {
typealias WorkExperienceBlock = (_ model: YHWorkExperienceModel) -> ()
var workExperienceBlock: WorkExperienceBlock?
var centerView: UIView!
var titleLabel: UILabel!
var mainItemView: UIView!
var dataSource: YHSectionWorkExperienceModel?{
didSet {
updateAllViews()
}
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
selectionStyle = .none
setupUI()
}
func setupUI() {
backgroundColor = UIColor(hex: 0xe9e9e9)
centerView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = 12
return view
}()
contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in
make.left.equalTo(16)
make.right.equalTo(-16)
make.top.equalTo(7)
make.bottom.equalTo(-7)
}
titleLabel = {
let label = UILabel()
label.font = kFont(size: 17)
label.textColor = UIColor(hex:0x222222)
return label
}()
centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(16)
make.height.equalTo(20)
make.right.equalTo(-18)
}
mainItemView = {
let view = UIView()
view.backgroundColor = .white
view.layer.cornerRadius = 12
return view
}()
centerView.addSubview(mainItemView)
mainItemView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.top.equalTo(52)
}
}
func updateAllViews() {
titleLabel.text = dataSource?.title
mainItemView.removeSubviews()
var y = 0
for i in 0 ..< (dataSource?.models?.count ?? 0) {
let line = UIView()
line.backgroundColor = UIColor(hex: 0xf0f0f0)
mainItemView.addSubview(line)
line.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(y)
make.height.equalTo(1)
make.right.equalTo(-18)
}
y = y + 1
let data = dataSource?.models?[i]
if data?.id == .id3 || data?.id == .id4 || data?.id == .id18 {
let itemView = YHWorkExperienceTextItemView()
itemView.dataSource = data
itemView.block = {[weak self] model in
guard let self = self else { return }
if let block = self.workExperienceBlock {
block(model)
}
}
mainItemView.addSubview(itemView)
itemView.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(y)
make.height.equalTo(131)
make.right.equalTo(-18)
}
y = y + 131
} else {
var h = 51
if data?.id == .id13 {
h = 71
}
let itemView = YHWorkExperienceItemView()
itemView.dataSource = data
itemView.block = {[weak self] model in
guard let self = self else { return }
if let block = self.workExperienceBlock {
block(model)
}
}
mainItemView.addSubview(itemView)
itemView.snp.makeConstraints { make in
make.left.equalTo(18)
make.top.equalTo(y)
make.height.equalTo(h)
make.right.equalTo(-18)
}
y = y + h
}
}
}
}
//
// YHWorkExperienceTextItemView.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHWorkExperienceTextItemView: UIView {
typealias ItemBlock = (_ model: YHWorkExperienceModel) -> ()
var block: ItemBlock?
var titleLabel: UILabel!
var messageTextField: UITextView!
var promptsLabel: UILabel!
var nextStepImageView: UIImageView!
var dataSource: YHWorkExperienceModel? {
didSet {
updateAllViews()
}
}
override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = .white
setUpView()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func setUpView() {
titleLabel = {
let label = UILabel()
label.numberOfLines = 0
return label
}()
addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.left.equalToSuperview()
make.top.equalTo(16)
make.height.equalTo(20)
}
messageTextField = {
let textField = UITextView()
textField.backgroundColor = UIColor(hex: 0xf8f9fb)
textField.layer.cornerRadius = 4
textField.delegate = self
return textField
}()
addSubview(messageTextField)
messageTextField.snp.makeConstraints { make in
make.right.left.equalToSuperview()
make.top.equalTo(52)
make.bottom.equalTo(-16)
}
promptsLabel = {
let textField = UILabel()
textField.font = kFont(size: 14)
textField.textColor = UIColor(hex: 0xc0c0c0)
return textField
}()
addSubview(promptsLabel)
promptsLabel.snp.makeConstraints { make in
make.right.left.equalTo(12)
make.top.equalTo(64)
make.height.equalTo(20)
}
nextStepImageView = {
let imageView = UIImageView()
imageView.image = UIImage(named: "form_right_arrow")
return imageView
}()
addSubview(nextStepImageView)
nextStepImageView.snp.makeConstraints { make in
make.left.equalTo(titleLabel.snp.right)
make.centerY.equalTo(titleLabel.snp.centerY)
make.height.width.equalTo(16)
}
}
func updateAllViews() {
guard let dataSource = dataSource else { return }
if dataSource.isNeed ?? false {
let str = "*" + (dataSource.title ?? "")
let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.PFSC_R(ofSize: 14),
.foregroundColor: UIColor(hex:0x222222)
]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
let starRange = NSRange(location: 0, length: 1)
questionAttrStr.addAttribute(NSAttributedString.Key.foregroundColor, value: UIColor(hex:0xFF3A3A), range: starRange)
titleLabel.attributedText = questionAttrStr
} else {
let str = dataSource.title ?? ""
let attributes: [NSAttributedString.Key: Any] = [
.font: kFont(size: 14),
.foregroundColor: UIColor(hex:0x222222)
]
let questionAttrStr = NSMutableAttributedString(string: str, attributes: attributes)
titleLabel.attributedText = questionAttrStr
}
promptsLabel.text = dataSource.prompts
messageTextField.text = dataSource.message
}
}
extension YHWorkExperienceTextItemView: UITextViewDelegate {
func textViewDidChange(_ textView: UITextView) {
dataSource?.message = textView.text
if let block = block {
block(dataSource ?? YHWorkExperienceModel())
}
}
}
//
// YHWorkExperienceViewModel.swift
// galaxy
//
// Created by EDY on 2024/2/19.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHWorkExperienceViewModel: YHBaseViewModel {
var mainModel: YHMainInformationModel = YHMainInformationModel()
override init() {
super.init()
}
func getBaseDataSource() -> [YHSectionWorkExperienceModel] {
let item = YHWorkExperienceModel(id: .id1, isNeed: true, title: "用人单位", isUserKeyBoard: false, prompts: "请输入", message: "", type: .unit)
let item1 = YHWorkExperienceModel(id: .id2, isNeed: true, title: "用人单位性质", isUserKeyBoard: false, prompts: "请输入", message: "", type: .nature)
let item2 = YHWorkExperienceModel(id: .id3, isNeed: false, title: "用人单位介绍", isUserKeyBoard: true, prompts: "如方便提供,请填写", message: "")
let item3 = YHWorkExperienceModel(id: .id4, isNeed: false, title: "用人单位官网", isUserKeyBoard: true, prompts: "如有,请输入官网链接", message: "")
let item4 = YHWorkExperienceModel(id: .id5, isNeed: true, title: "出生国家/地区", isUserKeyBoard: false, prompts: nil, message: "", type: .country)
var string = ""
if let array = mainModel.birth_place?.area {
for item in array {
string = string + item
}
}
let item5 = YHWorkExperienceModel(id: .id6, isNeed: true, title: "出生城市", isUserKeyBoard: false, prompts: "请选择", message: "", type: .address)
let item55 = YHWorkExperienceModel(id: .id7, isNeed: true, title: "出生城市", isUserKeyBoard: true, prompts: "请输入", message: "")
let item6 = YHWorkExperienceModel(id: .id8, isNeed: true, title: "职位", isUserKeyBoard: true, prompts: "请输入", message: "")
let item7 = YHWorkExperienceModel(id: .id9, isNeed: true, title: "入职年月", isUserKeyBoard: false, prompts: "请选择", message: "", type: .time)
let item8 = YHWorkExperienceModel(id: .id10, isNeed: true, title: "离职年月", isUserKeyBoard: false, prompts: "请选择", message: "", type: .time)
let item9 = YHWorkExperienceModel(id: .id11, isNeed: true, title: "工作证明文件", isUserKeyBoard: false, prompts: "请选择", message: "", type: .certificate)
let item10 = YHWorkExperienceModel(id: .id12, isNeed: false, title: "职责性质", isUserKeyBoard: false, prompts: "请选择", message: "")
let item11 = YHWorkExperienceModel(id: .id13, isNeed: false, title: "相关工作经验是否属于国际工作经验", isUserKeyBoard: false, prompts: "", message: "\(mainModel.has_hk_id ?? 0)", leftButtonString: "是", rightButtonString: "否")
let section = YHSectionWorkExperienceModel(title: "企业信息", models: [item, item1, item2, item3, item4, item5, item6, item7, item8, item9, item10, item11])
let item12 = YHWorkExperienceModel(id: .id14, isNeed: true, title: "企业人数规模", isUserKeyBoard: true, prompts: "请输入", message: "")
let item13 = YHWorkExperienceModel(id: .id15, isNeed: false, title: "行政架构层级", isUserKeyBoard: false, prompts: "请输入", message: "", type: .structure)
let item14 = YHWorkExperienceModel(id: .id16, isNeed: true, title: "下属管理人数", isUserKeyBoard: true, prompts: "请输入", message: "")
let item15 = YHWorkExperienceModel(id: .id17, isNeed: false, title: "公司营业额/港元 (近一年)", isUserKeyBoard: true, prompts: "请输入具体数字", message: "")
let item16 = YHWorkExperienceModel(id: .id18, isNeed: false, title: "公司业务性质/范畴/所属行业", isUserKeyBoard: true, prompts: "请输入,100字内", message: "")
let item17 = YHWorkExperienceModel(id: .id19, isNeed: true, title: "职位水平类别", isUserKeyBoard: false, prompts: "请选择", message: "", type: .level)
let item18 = YHWorkExperienceModel(id: .id20, isNeed: true, title: "高管证明文件", isUserKeyBoard: false, prompts: "请选择", message: "", type: .prove)
let item19 = YHWorkExperienceModel(id: .id21, isNeed: true, title: "高管在职开始时间", isUserKeyBoard: false, prompts: "请选择", message: "", type: .time)
let item20 = YHWorkExperienceModel(id: .id22, isNeed: true, title: "高管在职结束时间", isUserKeyBoard: false, prompts: "请选择", message: "", type: .time)
let section1 = YHSectionWorkExperienceModel(title: "企业规模", models: [item12, item13, item14, item15, item16, item17, item18, item19, item20])
return [section, section1]
}
func updateModel(_ item: YHItemModel) {
guard let type = item.id else { return }
switch type {
case .id1:
mainModel.nationality = item.message
case .id2:
mainModel.address?.country = item.message
case .id3:
mainModel.address?.area = item.value
case .id4:
mainModel.address?.details = item.message
case .id5:
mainModel.has_hk_id = item.value?.first?.int
case .id6:
printLog("1")
case .id7:
printLog("1")
case .id8:
mainModel.certificates?.cn_identity_card?.number = item.message
case .id9:
mainModel.certificates?.cn_identity_card?.issue_at = item.message
case .id10:
mainModel.certificates?.cn_identity_card?.issue_date_start_at = item.message
case .id11:
mainModel.certificates?.cn_identity_card?.issue_date_end_at = item.message
case .id12:
mainModel.certificates?.hk_macao_pass?.number = item.message
case .id13:
mainModel.certificates?.hk_macao_pass?.issue_at = item.message
case .id14:
mainModel.certificates?.hk_macao_pass?.issue_date_start_at = item.message
case .id15:
mainModel.certificates?.hk_macao_pass?.issue_date_end_at = item.message
case .id16:
mainModel.certificates?.passport?.passport_type = item.value?.first
case .id17:
mainModel.certificates?.passport?.number = item.message
case .id18:
mainModel.certificates?.passport?.issue_at = item.message
case .id19:
mainModel.certificates?.passport?.issue_date_start_at = item.message
case .id20:
mainModel.certificates?.passport?.issue_date_end_at = item.message
case .id21:
mainModel.username = item.message
case .id22:
mainModel.used_name = item.message
case .id23:
mainModel.surname = item.message
case .id24:
mainModel.birthday = item.message
case .id25:
mainModel.birth_place_aboard = item.value?.first?.int
case .id26:
mainModel.birth_place?.area = item.value
case .id27:
mainModel.sex = item.value?.first
case .id28:
mainModel.married = item.value?.first
case .id29:
mainModel.mobile = item.message
case .id30:
mainModel.email = item.message
case .id31:
mainModel.has_hk_id = item.value?.first?.int
case .id32:
mainModel.address?.foreign = item.message
case .id33:
mainModel.is_live_oversea_year = item.value?.first?.int
case .id34:
mainModel.birth_place?.foreign = item.message
}
}
}
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