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

Merge commit 'caeaaaa5' into xiezhaolin

parents f4183b18 caeaaaa5
...@@ -752,6 +752,45 @@ ...@@ -752,6 +752,45 @@
path = PickerView; path = PickerView;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
04594FCF2B9EEEEC00C34B15 /* MyCertificates(我的证书) */ = {
isa = PBXGroup;
children = (
04594FD32B9EEF5100C34B15 /* M */,
04594FD22B9EEF2900C34B15 /* VM */,
04594FD12B9EEF1700C34B15 /* V */,
04594FD02B9EEF1000C34B15 /* C */,
);
path = "MyCertificates(我的证书)";
sourceTree = "<group>";
};
04594FD02B9EEF1000C34B15 /* C */ = {
isa = PBXGroup;
children = (
);
path = C;
sourceTree = "<group>";
};
04594FD12B9EEF1700C34B15 /* V */ = {
isa = PBXGroup;
children = (
);
path = V;
sourceTree = "<group>";
};
04594FD22B9EEF2900C34B15 /* VM */ = {
isa = PBXGroup;
children = (
);
path = VM;
sourceTree = "<group>";
};
04594FD32B9EEF5100C34B15 /* M */ = {
isa = PBXGroup;
children = (
);
path = M;
sourceTree = "<group>";
};
0468D4292B55017400CFB916 /* Analytics */ = { 0468D4292B55017400CFB916 /* Analytics */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -1706,6 +1745,7 @@ ...@@ -1706,6 +1745,7 @@
A5C382C82B5E101E00C5E65C /* ServiceProcess(流程) */ = { A5C382C82B5E101E00C5E65C /* ServiceProcess(流程) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
04594FCF2B9EEEEC00C34B15 /* MyCertificates(我的证书) */,
047294F62B9B0C5D008E0B84 /* MyDocuments(我的文书) */, 047294F62B9B0C5D008E0B84 /* MyDocuments(我的文书) */,
047294F22B9B0C49008E0B84 /* MySignature(我的签字) */, 047294F22B9B0C49008E0B84 /* MySignature(我的签字) */,
04E86E222B81EA1000A35F4B /* WorkExperience(工作经验) */, 04E86E222B81EA1000A35F4B /* WorkExperience(工作经验) */,
...@@ -2364,7 +2404,7 @@ ...@@ -2364,7 +2404,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
...@@ -2384,7 +2424,7 @@ ...@@ -2384,7 +2424,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 0.1.7; MARKETING_VERSION = 0.1.8;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
...@@ -2406,7 +2446,7 @@ ...@@ -2406,7 +2446,7 @@
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
...@@ -2426,7 +2466,7 @@ ...@@ -2426,7 +2466,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 0.1.7; MARKETING_VERSION = 0.1.8;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
......
...@@ -271,11 +271,11 @@ extension YHHomeViewController { ...@@ -271,11 +271,11 @@ extension YHHomeViewController {
self.homeTableView.es.addPullToRefresh { self.homeTableView.es.addPullToRefresh {
self.loadFirstItem() self.loadFirstItem()//for test hjl
} }
self.homeTableView.es.startPullToRefresh() self.homeTableView.es.startPullToRefresh()
self.homeTableView.es.addInfiniteScrolling { self.homeTableView.es.addInfiniteScrolling {
self.loadFakeData() self.loadFakeData()//for test hjl
} }
} }
...@@ -308,10 +308,12 @@ extension YHHomeViewController : UITableViewDelegate,UITableViewDataSource { ...@@ -308,10 +308,12 @@ extension YHHomeViewController : UITableViewDelegate,UITableViewDataSource {
} }
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 { // if section == 0 {
return 6 // return 6
} // }
return 1 // return 1//for test hjl
return 0 //for test hjl
} }
......
...@@ -395,10 +395,10 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -395,10 +395,10 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
private func handleJumpLogicDebug(tapIndex : Int) { private func handleJumpLogicDebug(tapIndex : Int) {
if self.serviceCenterMainReqVM.myInfoFillStep > 6 { // if self.serviceCenterMainReqVM.myInfoFillStep > 6 {
goInfoListVCOp(index:tapIndex) // goInfoListVCOp(index:tapIndex)
return // return
} // }
if tapIndex == 0 { if tapIndex == 0 {
//主申请人信息 //主申请人信息
......
...@@ -222,7 +222,8 @@ extension YHBasicInfoFillViewController { ...@@ -222,7 +222,8 @@ extension YHBasicInfoFillViewController {
self.basicInfoVM.saveBasicInfo(params: param) {[weak self] success, error in self.basicInfoVM.saveBasicInfo(params: param) {[weak self] success, error in
if success == true { if success == true {
YHHUD.flash(message: "操作成功") let title = isSaveFlag ? "保存成功" : "提交成功"
YHHUD.flash(message: title)
if isSaveFlag == false { if isSaveFlag == false {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) { DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
...@@ -230,7 +231,9 @@ extension YHBasicInfoFillViewController { ...@@ -230,7 +231,9 @@ extension YHBasicInfoFillViewController {
} }
} }
} else { } else {
let msg = error?.errorMsg ?? "操作失败"
let title = isSaveFlag ? "保存失败" : "提交失败"
let msg = error?.errorMsg ?? title
YHHUD.flash(message: msg) YHHUD.flash(message: msg)
} }
} }
......
...@@ -30,7 +30,7 @@ class YHCollegeSearchViewController: YHBaseViewController { ...@@ -30,7 +30,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = .white
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -91,7 +91,7 @@ class YHCollegeSearchViewController: YHBaseViewController { ...@@ -91,7 +91,7 @@ class YHCollegeSearchViewController: YHBaseViewController {
[weak self] text in [weak self] text in
guard let self = self else { return } guard let self = self else { return }
searchCollegeName = text searchCollegeName = text
if Date().timeIntervalSince1970 * 1000 - lastSearchTime * 1000 >= 500 { if Date().timeIntervalSince1970 - lastSearchTime >= 1.0 {
lastSearchTime = Date().timeIntervalSince1970 lastSearchTime = Date().timeIntervalSince1970
searchCollege() searchCollege()
} }
......
...@@ -28,13 +28,15 @@ class YHEducationDetailVC: YHBaseViewController { ...@@ -28,13 +28,15 @@ class YHEducationDetailVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -54,6 +56,7 @@ class YHEducationDetailVC: YHBaseViewController { ...@@ -54,6 +56,7 @@ class YHEducationDetailVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.gk_navTitle = "学历".local self.gk_navTitle = "学历".local
self.gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8") view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
...@@ -266,12 +269,13 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -266,12 +269,13 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0 return 14.0
} }
......
...@@ -25,13 +25,15 @@ class YHEducationInfoListVC: YHBaseViewController { ...@@ -25,13 +25,15 @@ class YHEducationInfoListVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -53,6 +55,7 @@ class YHEducationInfoListVC: YHBaseViewController { ...@@ -53,6 +55,7 @@ class YHEducationInfoListVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.gk_navTitle = "学历/专业资格填写".local self.gk_navTitle = "学历/专业资格填写".local
self.gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8") view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
...@@ -407,9 +410,21 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource { ...@@ -407,9 +410,21 @@ extension YHEducationInfoListVC : UITableViewDelegate, UITableViewDataSource {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView()
}
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0
}
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -27,13 +27,15 @@ class YHQualificationDetailVC: YHBaseViewController { ...@@ -27,13 +27,15 @@ class YHQualificationDetailVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -53,6 +55,7 @@ class YHQualificationDetailVC: YHBaseViewController { ...@@ -53,6 +55,7 @@ class YHQualificationDetailVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.gk_navTitle = "专业资格及会员资格".local self.gk_navTitle = "专业资格及会员资格".local
self.gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8") view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
...@@ -239,12 +242,12 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -239,12 +242,12 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0 return 14.0
} }
......
...@@ -33,6 +33,8 @@ class YHCollegeNameCell: UITableViewCell { ...@@ -33,6 +33,8 @@ class YHCollegeNameCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
......
...@@ -94,6 +94,8 @@ class YHEducationInfoCell: UITableViewCell { ...@@ -94,6 +94,8 @@ class YHEducationInfoCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(subTitleLabel) contentView.addSubview(subTitleLabel)
contentView.addSubview(timeLabel) contentView.addSubview(timeLabel)
......
...@@ -26,7 +26,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol { ...@@ -26,7 +26,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
tableView.estimatedSectionHeaderHeight = 14.0 tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0 tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -45,6 +45,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol { ...@@ -45,6 +45,7 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
......
...@@ -42,7 +42,7 @@ class YHCertificateUploadVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -42,7 +42,7 @@ class YHCertificateUploadVC: YHBaseViewController, YHFamilyMemberProtol {
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
......
...@@ -18,7 +18,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -18,7 +18,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
...@@ -26,7 +26,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -26,7 +26,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
tableView.estimatedSectionHeaderHeight = 14.0 tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0 tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -44,6 +44,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -44,6 +44,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -403,21 +404,26 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -403,21 +404,26 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 1.0 return 14.0
} }
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -83,6 +83,9 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol { ...@@ -83,6 +83,9 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navTitle = "子女信息填写".local gk_navTitle = "子女信息填写".local
gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
......
...@@ -20,7 +20,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -20,7 +20,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
...@@ -28,7 +28,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -28,7 +28,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
tableView.estimatedSectionHeaderHeight = 14.0 tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0 tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -47,6 +47,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -47,6 +47,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -295,7 +296,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -295,7 +296,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
guard let child = child else { return } guard let child = child else { return }
if detailItem.type == .detailAddress { if detailItem.type == .detailAddress {
if child.address.isInChina() { if child.isLiveInChina() {
child.address.details = text ?? "" child.address.details = text ?? ""
} else { } else {
child.address.foreign = text ?? "" child.address.foreign = text ?? ""
...@@ -332,21 +333,26 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -332,21 +333,26 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 1.0 return 14.0
} }
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
...@@ -466,7 +472,7 @@ extension YHChildPrimaryInfoVC { ...@@ -466,7 +472,7 @@ extension YHChildPrimaryInfoVC {
if isEmptyString(child.address.country) { if isEmptyString(child.address.country) {
return false return false
} }
if child.address.isInChina() { if child.isLiveInChina() {
if isEmptyArray(child.address.area) { if isEmptyArray(child.address.area) {
return false return false
} }
......
...@@ -26,13 +26,15 @@ class YHBrotherInfoVC: YHBaseViewController { ...@@ -26,13 +26,15 @@ class YHBrotherInfoVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -51,6 +53,8 @@ class YHBrotherInfoVC: YHBaseViewController { ...@@ -51,6 +53,8 @@ class YHBrotherInfoVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navTitle = "兄弟姐妹信息填写".local gk_navTitle = "兄弟姐妹信息填写".local
gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -379,9 +383,21 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -379,9 +383,21 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView()
}
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0
}
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -26,13 +26,15 @@ class YHParentInfoVC: YHBaseViewController { ...@@ -26,13 +26,15 @@ class YHParentInfoVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -53,6 +55,8 @@ class YHParentInfoVC: YHBaseViewController { ...@@ -53,6 +55,8 @@ class YHParentInfoVC: YHBaseViewController {
if let parentInfo = parentInfo { if let parentInfo = parentInfo {
gk_navTitle = parentInfo.relationType == .father ? "父亲信息填写".local : "母亲信息填写".local gk_navTitle = parentInfo.relationType == .father ? "父亲信息填写".local : "母亲信息填写".local
} }
gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -424,9 +428,21 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -424,9 +428,21 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView()
}
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0
}
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -40,7 +40,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -40,7 +40,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
tableView.estimatedSectionHeaderHeight = 14.0 tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0 tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -60,6 +60,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -60,6 +60,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -591,21 +592,26 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -591,21 +592,26 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 1.0 return 14.0
} }
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -100,6 +100,8 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol { ...@@ -100,6 +100,8 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navTitle = "配偶信息填写".local gk_navTitle = "配偶信息填写".local
gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
......
...@@ -30,7 +30,7 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -30,7 +30,7 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
tableView.estimatedSectionHeaderHeight = 14.0 tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0 tableView.estimatedSectionFooterHeight = 1.0
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -46,6 +46,7 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol { ...@@ -46,6 +46,7 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
loadInfo() loadInfo()
} }
...@@ -250,7 +251,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -250,7 +251,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if detailItem.type == .detailAddress { if detailItem.type == .detailAddress {
if spouse.address.isInChina() { if spouse.isLiveInChina() {
spouse.address.details = text ?? "" spouse.address.details = text ?? ""
} else { } else {
spouse.address.foreign = text ?? "" spouse.address.foreign = text ?? ""
...@@ -286,21 +287,26 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -286,21 +287,26 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
return UITableView.automaticDimension return UITableView.automaticDimension
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView() return UIView()
} }
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 1.0 return 14.0
} }
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
...@@ -387,7 +393,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -387,7 +393,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if isEmptyString(spouse.address.country) { if isEmptyString(spouse.address.country) {
return false return false
} }
if spouse.address.isInChina() { if spouse.isLiveInChina() {
if isEmptyArray(spouse.address.area) { if isEmptyArray(spouse.address.area) {
return false return false
} }
......
...@@ -27,13 +27,15 @@ class YHFamilyMemberInfoListVC: YHBaseViewController { ...@@ -27,13 +27,15 @@ class YHFamilyMemberInfoListVC: YHBaseViewController {
lazy var tableView: UITableView = { lazy var tableView: UITableView = {
let tableView = UITableView(frame:.zero, style:.plain) let tableView = UITableView(frame:.zero, style:.grouped)
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.showsVerticalScrollIndicator = false tableView.showsVerticalScrollIndicator = false
tableView.backgroundColor = .clear tableView.estimatedSectionHeaderHeight = 14.0
tableView.estimatedSectionFooterHeight = 1.0
tableView.backgroundColor = UIColor(hexString:"#F8F8F8")
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.delegate = self tableView.delegate = self
tableView.dataSource = self tableView.dataSource = self
...@@ -69,6 +71,7 @@ class YHFamilyMemberInfoListVC: YHBaseViewController { ...@@ -69,6 +71,7 @@ class YHFamilyMemberInfoListVC: YHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.gk_navTitle = "家庭成员信息填写".local self.gk_navTitle = "家庭成员信息填写".local
gk_navigationBar.backgroundColor = .white
view.backgroundColor = UIColor(hexString:"#F8F8F8") view.backgroundColor = UIColor(hexString:"#F8F8F8")
createUI() createUI()
} }
...@@ -235,7 +238,7 @@ extension YHFamilyMemberInfoListVC { ...@@ -235,7 +238,7 @@ extension YHFamilyMemberInfoListVC {
// 请求家庭成员信息 // 请求家庭成员信息
func requestFamilyInfo() { func requestFamilyInfo() {
self.familyRequest.getFamilyInfo(params: ["order_id": self.orderId]) { [weak self] detail, error in self.familyRequest.getFamilyInfoList(orderId:orderId) { [weak self] detail, error in
guard let self = self else { return } guard let self = self else { return }
if let detail = detail { if let detail = detail {
familyMemberInfo = detail familyMemberInfo = detail
...@@ -527,9 +530,21 @@ extension YHFamilyMemberInfoListVC : UITableViewDelegate, UITableViewDataSource ...@@ -527,9 +530,21 @@ extension YHFamilyMemberInfoListVC : UITableViewDelegate, UITableViewDataSource
return UIView() return UIView()
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return UIView()
}
private func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> CGFloat {
return 14.0
}
private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat { private func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> CGFloat {
if section == items.count-1 {
return 14.0 return 14.0
} }
return 1.0
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -666,11 +666,6 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol { ...@@ -666,11 +666,6 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
isLiveOverseaYear = 2 isLiveOverseaYear = 2
} }
if sex != 1 && sex != 2 { // 默认为男性
sex = 1
}
return self return self
} }
...@@ -874,6 +869,16 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol { ...@@ -874,6 +869,16 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
self.childStepchild.has = (val ? "Y" : "N") self.childStepchild.has = (val ? "Y" : "N")
} }
// 是否住在中国
func isLiveInChina() ->Bool {
// 默认在中国
if isEmptyString(self.address.country) { return true }
if self.address.country.contains("中国") {
return true
}
return false
}
// 根据生日推算年龄 // 根据生日推算年龄
func getAge(birthday:String) ->Int { func getAge(birthday:String) ->Int {
let arr = birthday.components(separatedBy: YHDatePickView.separator) let arr = birthday.components(separatedBy: YHDatePickView.separator)
...@@ -986,16 +991,6 @@ class YHAddress: SmartCodable { ...@@ -986,16 +991,6 @@ class YHAddress: SmartCodable {
} }
// 是否在中国
func isInChina() ->Bool {
// 默认在中国
if isEmptyString(country) { return true }
if country.contains("中国") {
return true
}
return false
}
// 清空地址信息 // 清空地址信息
func clearAddress() { func clearAddress() {
self.area = [] self.area = []
......
...@@ -10,17 +10,15 @@ ...@@ -10,17 +10,15 @@
class YHFamilyRequestViewModel { class YHFamilyRequestViewModel {
//请求所有家庭成员信息 //请求所有家庭成员信息
func getFamilyInfo(params:[String:Any], callBackBlock:@escaping (_ listInfo: YHFamilyMemberGroupInfo?,_ error:YHErrorModel?)->()) { func getFamilyInfoList(orderId:Int, callBackBlock:@escaping (_ listInfo: YHFamilyMemberGroupInfo?,_ error:YHErrorModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Family.familyInfoApi let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Family.familyInfoApi
let params = ["order_id": orderId]
YHHUD.show(.progress(message: "数据加载中...")) YHHUD.show(.progress(message: "数据加载中..."))
let _ = YHNetRequest.getRequest(url: strUrl, params:params) {[weak self] json, code in let _ = YHNetRequest.getRequest(url: strUrl, params:params) { json, code in
YHHUD.hide() YHHUD.hide()
guard let self = self else { return }
printLog("model 是 ==> \(json)") printLog("model 是 ==> \(json)")
let dic = json.data let dic = json.data
...@@ -50,14 +48,12 @@ class YHFamilyRequestViewModel { ...@@ -50,14 +48,12 @@ class YHFamilyRequestViewModel {
} }
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Family.familyInfoApi let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Family.familyInfoApi
// let strUrl = "http://192.168.34.187:8808/" + YHAllApiName.Family.familyInfoApi
let _ = YHNetRequest.postRequest(url: strUrl, params:params) {[weak self] json, code in let _ = YHNetRequest.postRequest(url: strUrl, params:params) { json, code in
if isShowLoading { if isShowLoading {
YHHUD.hide() YHHUD.hide()
} }
guard let self = self else { return }
printLog("model 是 ==> \(json)") printLog("model 是 ==> \(json)")
if json.code == NetWorkCode.success.rawValue { if json.code == NetWorkCode.success.rawValue {
callBackBlock(true,nil) callBackBlock(true,nil)
...@@ -144,8 +140,8 @@ class YHFamilyRequestViewModel { ...@@ -144,8 +140,8 @@ class YHFamilyRequestViewModel {
func requestFamilyMemberDetailInfo(memberType:YHFamilyMemberType, orderId:Int, callBack:((_ detail:YHFamilyMember?)->Void)?) { func requestFamilyMemberDetailInfo(memberType:YHFamilyMemberType, orderId:Int, callBack:((_ detail:YHFamilyMember?)->Void)?) {
let params:[String:Any] = ["order_id": orderId] let params:[String:Any] = ["order_id": orderId]
self.getFamilyInfo(params:params) { self.getFamilyInfoList(orderId:orderId) {
[weak self] listInfo, error in listInfo, error in
guard let callBack = callBack else { return } guard let callBack = callBack else { return }
if let listInfo = listInfo { if let listInfo = listInfo {
if memberType == .spouse { if memberType == .spouse {
...@@ -154,6 +150,8 @@ class YHFamilyRequestViewModel { ...@@ -154,6 +150,8 @@ class YHFamilyRequestViewModel {
callBack(listInfo.father) callBack(listInfo.father)
} else if memberType == .mother { } else if memberType == .mother {
callBack(listInfo.mother) callBack(listInfo.mother)
} else {
callBack(nil)
} }
} }
} }
......
...@@ -248,8 +248,8 @@ class YHSheetPickerView: UIView { ...@@ -248,8 +248,8 @@ class YHSheetPickerView: UIView {
// 学位颁发地区 // 学位颁发地区
.degreeLocation: .degreeLocation:
[YHSheetPickerViewItem(title:"国内 (颁发)".local, index:0), [YHSheetPickerViewItem(title:"国内 (颁发)".local, index:1),
YHSheetPickerViewItem(title:"国外 (颁发)".local, index:1), YHSheetPickerViewItem(title:"国外 (颁发)".local, index:2),
], ],
// 专业证书 // 专业证书
......
...@@ -63,6 +63,8 @@ class YHFormItemAddCell: UITableViewCell { ...@@ -63,6 +63,8 @@ class YHFormItemAddCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(addBtn) contentView.addSubview(addBtn)
addBtn.layer.addSublayer(dotLineLayer) addBtn.layer.addSublayer(dotLineLayer)
......
...@@ -104,6 +104,7 @@ class YHFormItemDegreeInfoCell: UITableViewCell { ...@@ -104,6 +104,7 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(deleteButton) contentView.addSubview(deleteButton)
......
...@@ -164,6 +164,7 @@ class YHFormItemDoubleChoiceCell: UITableViewCell { ...@@ -164,6 +164,7 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(answer2Btn) contentView.addSubview(answer2Btn)
......
...@@ -106,6 +106,8 @@ class YHFormItemEnterDetailCell: UITableViewCell { ...@@ -106,6 +106,8 @@ class YHFormItemEnterDetailCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(detailLabel) contentView.addSubview(detailLabel)
contentView.addSubview(arrowImgView) contentView.addSubview(arrowImgView)
......
...@@ -123,6 +123,8 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -123,6 +123,8 @@ class YHFormItemExpireDateCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
detail = "" detail = ""
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
......
...@@ -109,6 +109,8 @@ class YHFormItemInputTextCell: UITableViewCell { ...@@ -109,6 +109,8 @@ class YHFormItemInputTextCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(textField) contentView.addSubview(textField)
contentView.addSubview(tipsLabel) contentView.addSubview(tipsLabel)
......
...@@ -94,6 +94,8 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell { ...@@ -94,6 +94,8 @@ class YHFormItemOnlyDoubleChoiceCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(answer1Btn) contentView.addSubview(answer1Btn)
contentView.addSubview(answer2Btn) contentView.addSubview(answer2Btn)
......
...@@ -151,6 +151,7 @@ class YHFormItemQuestionsCell: UITableViewCell { ...@@ -151,6 +151,7 @@ class YHFormItemQuestionsCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(answer2Btn) contentView.addSubview(answer2Btn)
......
...@@ -129,6 +129,8 @@ class YHFormItemSelectSheetCell: UITableViewCell { ...@@ -129,6 +129,8 @@ class YHFormItemSelectSheetCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(detailLabel) contentView.addSubview(detailLabel)
contentView.addSubview(arrowImgView) contentView.addSubview(arrowImgView)
......
...@@ -91,6 +91,8 @@ class YHFormItemTitleCell: UITableViewCell { ...@@ -91,6 +91,8 @@ class YHFormItemTitleCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(editButton) contentView.addSubview(editButton)
contentView.addSubview(cancelButton) contentView.addSubview(cancelButton)
......
...@@ -60,6 +60,8 @@ class YHScoreOptionsView: UIView { ...@@ -60,6 +60,8 @@ class YHScoreOptionsView: UIView {
private extension YHScoreOptionsView { private extension YHScoreOptionsView {
func setupUI() { func setupUI() {
backgroundColor = .white
addSubview(bottomLine) addSubview(bottomLine)
bottomLine.snp.makeConstraints { make in bottomLine.snp.makeConstraints { make in
make.bottom.left.right.equalToSuperview() make.bottom.left.right.equalToSuperview()
......
...@@ -121,14 +121,19 @@ extension YHOtherInfoFillViewController { ...@@ -121,14 +121,19 @@ extension YHOtherInfoFillViewController {
otherInfoVM.saveOtherInfo(params: param) { success, error in otherInfoVM.saveOtherInfo(params: param) { success, error in
if success == true { if success == true {
YHHUD.flash(message: "操作成功")
let msg = flag ? "提交成功" : "保存成功"
YHHUD.flash(message:msg)
if flag == true { if flag == true {
DispatchQueue.main.asyncAfter(wallDeadline: .now() + 1.5) {[weak self] in DispatchQueue.main.asyncAfter(wallDeadline: .now() + 1.5) {[weak self] in
self?.navigationController?.popViewController(animated: true) self?.navigationController?.popViewController(animated: true)
} }
} }
} else { } else {
let msg = error?.errorMsg ?? "操作失败"
let tips = flag ? "提交失败" : "保存失败"
let msg = error?.errorMsg ?? tips
YHHUD.flash(message: msg) YHHUD.flash(message: msg)
} }
} }
......
...@@ -52,6 +52,7 @@ class LanguageDetail : SmartCodable { ...@@ -52,6 +52,7 @@ class LanguageDetail : SmartCodable {
var levelDes : String = "" var levelDes : String = ""
var name: String = "" var name: String = ""
var remark: String = "" var remark: String = ""
var localRemark : String = ""
//以下为本地使用的参数 //以下为本地使用的参数
......
...@@ -385,7 +385,7 @@ extension YHOtherInfoFillCell { ...@@ -385,7 +385,7 @@ extension YHOtherInfoFillCell {
//7、其他奖励 //7、其他奖励
let fzView7 = YHOtherTextViewItemView(frame: .zero) let fzView7 = YHOtherTextViewItemView(frame: .zero)
fzView7.updateUI(title: "7、其他奖励", value: dataModel.question?.other_information ?? "",type: .otherAwards) fzView7.updateUI(title: "7、其他资料", value: dataModel.question?.other_information ?? "",type: .otherAwards)
fzView7.block = { txt in fzView7.block = { txt in
dataModel.question?.other_information = txt dataModel.question?.other_information = txt
} }
......
...@@ -282,7 +282,8 @@ extension YHOtherSelecteItemView { ...@@ -282,7 +282,8 @@ extension YHOtherSelecteItemView {
if longTimeButton.isSelected { if longTimeButton.isSelected {
longTimeButton.snp.remakeConstraints { make in longTimeButton.snp.remakeConstraints { make in
make.centerX.equalToSuperview()
make.left.equalTo(titleLabel.snp.right).offset(40)
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
make.height.equalTo(32) make.height.equalTo(32)
make.width.equalTo(43) make.width.equalTo(43)
......
...@@ -47,25 +47,18 @@ private extension YHPreviewFamilyMemberViewController { ...@@ -47,25 +47,18 @@ private extension YHPreviewFamilyMemberViewController {
make.height.equalTo(56) make.height.equalTo(56)
} }
parentButton = createButton()
parentButton.setTitle("父母", for: .normal)
buttonHoldView.addSubview(parentButton)
parentButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(68)
}
spouseButton = createButton() spouseButton = createButton()
spouseButton.setTitle("配偶", for: .normal) spouseButton.setTitle("配偶", for: .normal)
buttonHoldView.addSubview(spouseButton) buttonHoldView.addSubview(spouseButton)
spouseButton.snp.makeConstraints { make in spouseButton.snp.makeConstraints { make in
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
make.left.equalTo(parentButton.snp.right).offset(12) make.left.equalToSuperview()
make.height.equalTo(32) make.height.equalTo(32)
make.width.equalTo(68) make.width.equalTo(68)
} }
childrenButton = createButton() childrenButton = createButton()
...@@ -79,12 +72,27 @@ private extension YHPreviewFamilyMemberViewController { ...@@ -79,12 +72,27 @@ private extension YHPreviewFamilyMemberViewController {
} }
parentButton = createButton()
parentButton.setTitle("父母", for: .normal)
buttonHoldView.addSubview(parentButton)
parentButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalTo(childrenButton.snp.right).offset(12)
make.height.equalTo(32)
make.width.equalTo(68)
}
brotherButton = createButton() brotherButton = createButton()
brotherButton.setTitle("兄弟姐妹", for: .normal) brotherButton.setTitle("兄弟姐妹", for: .normal)
buttonHoldView.addSubview(brotherButton) buttonHoldView.addSubview(brotherButton)
brotherButton.snp.makeConstraints { make in brotherButton.snp.makeConstraints { make in
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
make.left.equalTo(childrenButton.snp.right).offset(12) make.left.equalTo(parentButton.snp.right).offset(12)
make.height.equalTo(32) make.height.equalTo(32)
make.width.equalTo(84) make.width.equalTo(84)
} }
...@@ -113,6 +121,112 @@ private extension YHPreviewFamilyMemberViewController { ...@@ -113,6 +121,112 @@ private extension YHPreviewFamilyMemberViewController {
} }
} }
private func layouButtons() {
spouseButton.snp.removeConstraints()
childrenButton.snp.removeConstraints()
parentButton.snp.removeConstraints()
brotherButton.snp.removeConstraints()
var lastTagView : UIView? = nil
//配偶
if previewVM.arrDataForSpouse.isEmpty == false {
spouseButton.isHidden = false
spouseButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(68)
}
lastTagView = spouseButton
} else {
spouseButton.isHidden = true
}
//子女
if previewVM.arrDataForChildren.isEmpty == false {
childrenButton.isHidden = false
if let lastTagView = lastTagView {
childrenButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalTo(lastTagView.snp.right).offset(12)
make.height.equalTo(32)
make.width.equalTo(68)
}
} else {
childrenButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(68)
}
}
lastTagView = childrenButton
} else {
childrenButton.isHidden = true
}
//父母
if previewVM.arrDataForParents.isEmpty == false {
parentButton.isHidden = false
if let lastTagView = lastTagView {
parentButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalTo(lastTagView.snp.right).offset(12)
make.height.equalTo(32)
make.width.equalTo(68)
}
} else {
parentButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(68)
}
}
lastTagView = parentButton
} else {
parentButton.isHidden = true
}
//兄弟姐妹
if previewVM.arrDataForBrother.isEmpty == false {
brotherButton.isHidden = false
if let lastTagView = lastTagView {
brotherButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalTo(lastTagView.snp.right).offset(12)
make.height.equalTo(32)
make.width.equalTo(68)
}
} else {
brotherButton.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.left.equalToSuperview()
make.height.equalTo(32)
make.width.equalTo(68)
}
}
lastTagView = brotherButton
} else {
brotherButton.isHidden = true
}
}
func createButton() -> UIButton { func createButton() -> UIButton {
let btn = UIButton(type: .custom) let btn = UIButton(type: .custom)
btn.backgroundColor = UIColor.white btn.backgroundColor = UIColor.white
...@@ -163,12 +277,14 @@ private extension YHPreviewFamilyMemberViewController { ...@@ -163,12 +277,14 @@ private extension YHPreviewFamilyMemberViewController {
} else { } else {
} }
self.layouButtons()
self.homeTableView.reloadData() self.homeTableView.reloadData()
return return
} }
} else { } else {
printLog("error : orderID 为空") printLog("error : orderID 为空")
} }
self.layouButtons()
self.homeTableView.reloadData() self.homeTableView.reloadData()
} }
} }
......
...@@ -17,6 +17,11 @@ class YHPreviewMainApplicantInfoViewController: YHPreviewBaseViewController { ...@@ -17,6 +17,11 @@ class YHPreviewMainApplicantInfoViewController: YHPreviewBaseViewController {
setupUI() setupUI()
loadData() loadData()
} }
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
homeTableView.reloadData()
}
} }
private extension YHPreviewMainApplicantInfoViewController { private extension YHPreviewMainApplicantInfoViewController {
......
...@@ -69,10 +69,17 @@ extension YHPreviewInfoNameAndSubNameItemView { ...@@ -69,10 +69,17 @@ extension YHPreviewInfoNameAndSubNameItemView {
nameLable.snp.remakeConstraints { make in nameLable.snp.remakeConstraints { make in
make.top.equalToSuperview().offset(18) make.top.equalToSuperview().offset(18)
make.left.equalToSuperview() make.left.equalToSuperview()
make.width.lessThanOrEqualTo(200) make.width.lessThanOrEqualTo(240)
make.height.equalTo(20) make.height.equalTo(20)
} }
nameLable.setContentCompressionResistancePriority(.required, for: .horizontal) nameLable.setContentCompressionResistancePriority(.required, for: .horizontal)
} else if title.contains("主申请人或现配偶是否拥有孩子护养权:") {
nameLable.snp.remakeConstraints { make in
make.top.equalToSuperview().offset(18)
make.left.equalToSuperview()
make.width.lessThanOrEqualTo(260)
make.height.equalTo(20)
}
} }
} }
} }
......
...@@ -186,6 +186,11 @@ class YHPhoneLoginViewController: YHBaseViewController { ...@@ -186,6 +186,11 @@ class YHPhoneLoginViewController: YHBaseViewController {
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} else { } else {
YHHUD.flash(message: error?.errorMsg ?? "") YHHUD.flash(message: error?.errorMsg ?? "")
#if DEBUG
let vc = YHCodeSueecssViewController()
vc.phoneNumber = self.phoneMessageView.phoneTextField.text
self.navigationController?.pushViewController(vc)
#endif
} }
}) })
} else { } else {
......
...@@ -17,7 +17,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -17,7 +17,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
} }
tableView.backgroundColor = .clear tableView.backgroundColor = .white
tableView.separatorStyle = .none tableView.separatorStyle = .none
tableView.register(YHMySettingCell.self, forCellReuseIdentifier: YHMySettingCell.cellReuseIdentifier) tableView.register(YHMySettingCell.self, forCellReuseIdentifier: YHMySettingCell.cellReuseIdentifier)
tableView.delegate = self tableView.delegate = self
......
...@@ -38,6 +38,8 @@ class YHMySettingCell: UITableViewCell { ...@@ -38,6 +38,8 @@ class YHMySettingCell: UITableViewCell {
func setupUI() { func setupUI() {
self.selectionStyle = .none self.selectionStyle = .none
contentView.backgroundColor = .white
contentView.addSubview(titleLabel) contentView.addSubview(titleLabel)
contentView.addSubview(arrowImgView) contentView.addSubview(arrowImgView)
......
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