Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
1c44327b
Commit
1c44327b
authored
Mar 05, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
6f32074f
' into xiezhaolin
parents
d08b263e
6f32074f
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
227 additions
and
59 deletions
+227
-59
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+26
-10
YHInformationPerfectListVC.swift
...telligentService(服务中心)/C/YHInformationPerfectListVC.swift
+1
-1
YHEducationDetailVC.swift
...ation&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
+26
-15
YHEducationInfoListVC.swift
...ion&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
+1
-1
YHQualificationDetailVC.swift
...n&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
+10
-3
YHEducationInfo.swift
...Education&Qualification(学历专业资格填写)/M/YHEducationInfo.swift
+4
-0
YHEducationRequestViewModel.swift
...alification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
+14
-6
YHQuestionInfo.swift
.../Education&Qualification(学历专业资格填写)/M/YHQuestionInfo.swift
+8
-2
YHCertificateInfoController.swift
...Certificates(证书上传和证书信息)/YHCertificateInfoController.swift
+0
-0
YHCertificateUploadVC.swift
...息表)/C/Certificates(证书上传和证书信息)/YHCertificateUploadVC.swift
+0
-0
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+8
-1
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+27
-2
YHBrotherInfoVC.swift
...庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHBrotherInfoVC.swift
+9
-2
YHParentInfoVC.swift
...家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHParentInfoVC.swift
+9
-2
YHSpouseBasicInfoVC.swift
...ilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
+8
-1
YHSpousePrimaryInfoVC.swift
...yMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
+8
-1
YHFamilyMemberInfoListVC.swift
...程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoListVC.swift
+26
-12
YHFamilyInitialInfo.swift
...ess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
+35
-0
YHFormItemDoubleChoiceCell.swift
.../FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
+7
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
1c44327b
...
...
@@ -18,7 +18,7 @@
041B52912B5E67F3007EBCEB
/* YHFormItemEnterDetailCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52902B5E67F3007EBCEB
/* YHFormItemEnterDetailCell.swift */
;
};
041B52932B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
;
};
041B52952B5E7037007EBCEB
/* YHFormItemAddCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
;
};
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberInfo
VC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfo
VC.swift */
;
};
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberInfo
ListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfoList
VC.swift */
;
};
041B52D62B5F899E007EBCEB
/* YHSpousePrimaryInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52D52B5F899E007EBCEB
/* YHSpousePrimaryInfoVC.swift */
;
};
041B52DB2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
;
};
041B52DD2B60A889007EBCEB
/* YHTest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DC2B60A889007EBCEB
/* YHTest.swift */
;
};
...
...
@@ -75,12 +75,12 @@
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 */
;
};
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
;
};
0469750E2B96C0B900A0CB66
/* YHImageClipperViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0469750D2B96C0B900A0CB66
/* YHImageClipperViewController.swift */
;
};
046975102B96C13700A0CB66
/* YHClipperView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0469750F2B96C13700A0CB66
/* YHClipperView.swift */
;
};
046975122B96C77000A0CB66
/* YHClipperButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
046975112B96C77000A0CB66
/* YHClipperButton.swift */
;
};
046975162B96EB2200A0CB66
/* YHImageResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
046975152B96EB2200A0CB66
/* YHImageResultViewController.swift */
;
};
046975182B96EEB200A0CB66
/* YHResultBottomView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
046975172B96EEB200A0CB66
/* YHResultBottomView.swift */
;
};
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.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 */
;
};
...
...
@@ -333,7 +333,7 @@
041B52902B5E67F3007EBCEB
/* YHFormItemEnterDetailCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemEnterDetailCell.swift
;
sourceTree
=
"<group>"
;
};
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemTitleCell.swift
;
sourceTree
=
"<group>"
;
};
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemAddCell.swift
;
sourceTree
=
"<group>"
;
};
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfo
VC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyMemberInfo
VC.swift
;
sourceTree
=
"<group>"
;
};
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfo
ListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyMemberInfoList
VC.swift
;
sourceTree
=
"<group>"
;
};
041B52D52B5F899E007EBCEB
/* YHSpousePrimaryInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSpousePrimaryInfoVC.swift
;
sourceTree
=
"<group>"
;
};
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyInitialInfo.swift
;
sourceTree
=
"<group>"
;
};
041B52DC2B60A889007EBCEB
/* YHTest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTest.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -390,12 +390,12 @@
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>"
;
};
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"UITextField+Extension.swift"
;
sourceTree
=
"<group>"
;
};
0469750D2B96C0B900A0CB66
/* YHImageClipperViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHImageClipperViewController.swift
;
sourceTree
=
"<group>"
;
};
0469750F2B96C13700A0CB66
/* YHClipperView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHClipperView.swift
;
sourceTree
=
"<group>"
;
};
046975112B96C77000A0CB66
/* YHClipperButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHClipperButton.swift
;
sourceTree
=
"<group>"
;
};
046975152B96EB2200A0CB66
/* YHImageResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHImageResultViewController.swift
;
sourceTree
=
"<group>"
;
};
046975172B96EEB200A0CB66
/* YHResultBottomView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResultBottomView.swift
;
sourceTree
=
"<group>"
;
};
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"UITextField+Extension.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>"
;
};
...
...
@@ -682,13 +682,11 @@
041B52962B5E8E3B007EBCEB
/* C */
=
{
isa
=
PBXGroup
;
children
=
(
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfoListVC.swift */
,
04C8F4802B720DAB00ADF59B
/* Spouse(配偶) */
,
04754A962B97286F00F8ADCA
/* Certificates(证书上传和证书信息) */
,
04754A972B97289200F8ADCA
/* Parents&Brothers(父母和兄弟姐妹) */
,
04C8F4812B720DCD00ADF59B
/* Child(子女) */
,
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberInfoVC.swift */
,
042FBBBA2B62806D00F9DE23
/* YHCertificateInfoController.swift */
,
0413A6D72B8C76290006D154
/* YHCertificateUploadVC.swift */
,
042FBBC22B63DA4C00F9DE23
/* YHParentInfoVC.swift */
,
042FBBD52B67BDD500F9DE23
/* YHBrotherInfoVC.swift */
,
);
path
=
C
;
sourceTree
=
"<group>"
;
...
...
@@ -816,6 +814,24 @@
path
=
YHAddressPicker
;
sourceTree
=
"<group>"
;
};
04754A962B97286F00F8ADCA
/* Certificates(证书上传和证书信息) */
=
{
isa
=
PBXGroup
;
children
=
(
042FBBBA2B62806D00F9DE23
/* YHCertificateInfoController.swift */
,
0413A6D72B8C76290006D154
/* YHCertificateUploadVC.swift */
,
);
path
=
"Certificates(证书上传和证书信息)"
;
sourceTree
=
"<group>"
;
};
04754A972B97289200F8ADCA
/* Parents&Brothers(父母和兄弟姐妹) */
=
{
isa
=
PBXGroup
;
children
=
(
042FBBC22B63DA4C00F9DE23
/* YHParentInfoVC.swift */
,
042FBBD52B67BDD500F9DE23
/* YHBrotherInfoVC.swift */
,
);
path
=
"Parents&Brothers(父母和兄弟姐妹)"
;
sourceTree
=
"<group>"
;
};
04808C022B4686510056D53C
/* Frameworks */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2020,7 +2036,7 @@
04E86E5B2B84BF2000A35F4B
/* YHWorkExampleTypeView.swift in Sources */
,
042FBBBD2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift in Sources */
,
A5FD63C32B63438A00D1D9DA
/* YHContactMainItemStatusModel.swift in Sources */
,
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberInfoVC.swift in Sources */
,
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberInfo
List
VC.swift in Sources */
,
0468D47B2B68A08600CFB916
/* YHAddressPresentAnimated.swift in Sources */
,
A5C382CF2B5F9A9100C5E65C
/* YHServiceCenterMainViewModel.swift in Sources */
,
0468D4782B68A08600CFB916
/* YHAddressModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHInformationPerfectListVC.swift
View file @
1c44327b
...
...
@@ -368,7 +368,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
}
else
if
indexPath
.
row
==
1
{
//家庭程序信息
let
vc
=
YHFamilyMemberInfoVC
(
orderId
:
orderId
??
0
)
let
vc
=
YHFamilyMemberInfo
List
VC
(
orderId
:
orderId
??
0
)
vc
.
orderId
=
orderId
??
0
navigationController
?
.
pushViewController
(
vc
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationDetailVC.swift
View file @
1c44327b
...
...
@@ -70,7 +70,7 @@ class YHEducationDetailVC: YHBaseViewController {
bottomView
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
saveDetailInfo
(
isNeedPop
:
true
)
saveDetailInfo
(
isNeedPop
:
true
,
isShowToast
:
true
)
}
bottomView
.
submitBlock
=
{
...
...
@@ -228,7 +228,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
if
isEditEnd
{
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
}
...
...
@@ -311,7 +311,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
}
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
self
.
navigationController
?
.
pushViewController
(
vc
)
...
...
@@ -323,7 +323,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
detailInfo
.
teachingFormat
=
selectType
.
title
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
...
...
@@ -340,7 +340,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
}
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
...
...
@@ -352,7 +352,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
detailInfo
.
degree
=
selectType
.
title
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
...
...
@@ -364,7 +364,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
detailInfo
.
degreeType
=
selectItem
.
title
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
...
...
@@ -377,7 +377,7 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
detailInfo
.
schoolAddress
.
country
=
country
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
self
.
navigationController
?
.
pushViewController
(
vc
)
...
...
@@ -390,10 +390,17 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
vc
.
backLocationStringController
=
{
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
detailInfo
.
schoolAddress
.
area
=
[
string1
,
string2
,
string3
,
string4
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
detailInfo
.
schoolAddress
.
area
=
citys
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
)
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
}
}
self
.
present
(
vc
,
animated
:
true
)
...
...
@@ -480,7 +487,7 @@ extension YHEducationDetailVC {
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
}
saveDetailInfo
(
isNeedPop
:
true
)
saveDetailInfo
(
isNeedPop
:
true
,
isShowToast
:
true
)
}
// 检查填写信息完整性
...
...
@@ -509,7 +516,7 @@ extension YHEducationDetailVC {
}
// 保存信息 isNeedPop:保存成功后是否退出该页面
func
saveDetailInfo
(
isNeedPop
:
Bool
)
{
func
saveDetailInfo
(
isNeedPop
:
Bool
,
isShowToast
:
Bool
)
{
// detailInfo.toDictionary() 对于值为空的字段不会添加 而后台需要 所以如下处理
// let dict:[String : Any] = [
...
...
@@ -531,17 +538,21 @@ extension YHEducationDetailVC {
guard
var
dict
:[
String
:
Any
]
=
detailInfo
.
toDictionary
()
else
{
return
}
dict
[
"order_id"
]
=
self
.
orderId
self
.
educationRequest
.
saveEducationInfo
(
params
:
dict
)
{
self
.
educationRequest
.
saveEducationInfo
(
params
:
dict
,
isSilent
:
!
isShowToast
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
{
YHHUD
.
flash
(
message
:
"保存成功"
)
if
isShowToast
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
if
isNeedPop
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
else
{
YHHUD
.
flash
(
message
:
"保存失败"
)
if
isShowToast
{
YHHUD
.
flash
(
message
:
"保存失败"
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHEducationInfoListVC.swift
View file @
1c44327b
...
...
@@ -153,7 +153,7 @@ class YHEducationInfoListVC: YHBaseViewController {
let
title2
=
YHFormTitleItem
(
type
:
.
edutionalCertificateNameAndBirthday
)
var
arr2
:[
YHFormItemProtocol
]
=
[
title2
]
// 问题集合
let
questions
=
YHQuestionInfo
.
getEducationQuestion
()
let
questions
=
YHQuestionInfo
.
getEducationQuestion
(
eduList
:
educationInfo
)
for
questionInfo
in
questions
{
if
questionInfo
.
key
==
"qualification"
{
questionInfo
.
answer
=
educationInfo
.
isNameSame
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
View file @
1c44327b
...
...
@@ -308,7 +308,14 @@ extension YHQualificationDetailVC : UITableViewDelegate, UITableViewDataSource {
vc
.
backLocationStringController
=
{
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
detailInfo
.
issuingAddr
.
area
=
[
string1
,
string2
,
string3
,
string4
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
detailInfo
.
issuingAddr
.
area
=
citys
loadInfo
()
if
detailId
!=
0
{
saveDetailInfo
(
isNeedPop
:
false
,
isShowToast
:
false
)
...
...
@@ -391,12 +398,12 @@ extension YHQualificationDetailVC {
func
saveDetailInfo
(
isNeedPop
:
Bool
,
isShowToast
:
Bool
)
{
var
dict
:[
String
:
Any
]
=
[
"orderId"
:
self
.
orderId
]
var
quaDict
:[
String
:
Any
]
=
detailInfo
.
toDictionary
()
??
[:]
let
quaDict
:[
String
:
Any
]
=
detailInfo
.
toDictionary
()
??
[:]
dict
[
"qua_data"
]
=
quaDict
print
(
dict
)
self
.
educationRequest
.
saveQualificationInfo
(
params
:
dict
)
{
self
.
educationRequest
.
saveQualificationInfo
(
params
:
dict
,
isSilent
:
!
isShowToast
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHEducationInfo.swift
View file @
1c44327b
...
...
@@ -17,6 +17,10 @@ class YHEducationListInfo: SmartCodable {
var
isSpouseNameSame
:
Bool
?
// 1=已婚,2=未婚,3=离婚,4=分居,5=丧偶,6=事实婚姻,7=鳏寡
var
married
:
Int
=
0
func
isMarried
()
->
Bool
{
return
married
!=
2
}
enum
CodingKeys
:
String
,
CodingKey
{
case
orderId
=
"order_id"
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHEducationRequestViewModel.swift
View file @
1c44327b
...
...
@@ -71,15 +71,19 @@ class YHEducationRequestViewModel {
}
// 保存学历
func
saveEducationInfo
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
saveEducationInfo
(
params
:[
String
:
Any
],
isSilent
:
Bool
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
if
!
isSilent
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
}
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Education
.
saveEducationInfoApi
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{[
weak
self
]
json
,
code
in
YHHUD
.
hide
()
if
!
isSilent
{
YHHUD
.
hide
()
}
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
NetWorkCode
.
success
.
rawValue
{
...
...
@@ -195,15 +199,19 @@ class YHEducationRequestViewModel {
}
// 保存专业信息
func
saveQualificationInfo
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
saveQualificationInfo
(
params
:[
String
:
Any
],
isSilent
:
Bool
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
if
!
isSilent
{
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
}
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Qualification
.
saveQualificationInfoApi
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{[
weak
self
]
json
,
code
in
YHHUD
.
hide
()
if
!
isSilent
{
YHHUD
.
hide
()
}
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
NetWorkCode
.
success
.
rawValue
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/Education&Qualification(学历专业资格填写)/M/YHQuestionInfo.swift
View file @
1c44327b
...
...
@@ -37,7 +37,7 @@ class YHQuestionInfo: SmartCodable, YHFormItemProtocol {
extension
YHQuestionInfo
{
// 【问题】学历证书姓名及出生日期正确性
static
func
getEducationQuestion
(
)
->
[
YHQuestionInfo
]
{
static
func
getEducationQuestion
(
eduList
:
YHEducationListInfo
)
->
[
YHQuestionInfo
]
{
let
path
=
Bundle
.
main
.
path
(
forResource
:
"YHQuestionList"
,
ofType
:
"plist"
)
let
questions
:[
Dictionary
]
=
NSArray
(
contentsOfFile
:
path
!
)
as!
[
Dictionary
<
String
,
Any
>
]
var
res
:[
YHQuestionInfo
]
=
[]
...
...
@@ -45,7 +45,13 @@ extension YHQuestionInfo {
guard
let
questionInfo
=
YHQuestionInfo
.
deserialize
(
dict
:
dict
as?
[
AnyHashable
:
Any
])
else
{
continue
}
res
.
append
(
questionInfo
)
if
questionInfo
.
key
==
"graduate"
{
if
eduList
.
isMarried
()
{
res
.
append
(
questionInfo
)
}
}
else
{
res
.
append
(
questionInfo
)
}
}
return
res
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHCertificateInfoController.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/
Certificates(证书上传和证书信息)/
YHCertificateInfoController.swift
View file @
1c44327b
File moved
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHCertificateUploadVC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/
Certificates(证书上传和证书信息)/
YHCertificateUploadVC.swift
View file @
1c44327b
File moved
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
1c44327b
...
...
@@ -455,7 +455,14 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
child
?
.
birthPlace
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
child
?
.
birthPlace
.
area
=
citys
self
.
loadInfo
()
save
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
1c44327b
...
...
@@ -13,6 +13,8 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
var
child
:
YHFamilyMember
?
weak
var
delegate
:
YHSpouseInfoVCProtocol
?
var
isNeedShowError
=
false
// 是否随行能编辑
var
isFollowCanEdit
=
true
lazy
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
...
...
@@ -54,6 +56,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
items
.
removeAll
()
isFollowCanEdit
=
!
child
.
is18YearsOld
()
// 随行
let
title0
=
YHFormTitleItem
(
type
:
.
accompany
)
let
item00
=
YHFormDetailItem
(
type
:
.
ownCustody
,
value
:
String
(
child
.
isOwnCustody
()))
...
...
@@ -205,15 +208,23 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if
cellType
==
.
twoChoice
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDoubleChoiceCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
isCanEdit
=
true
var
select
=
false
if
let
value
=
detailItem
.
value
{
select
=
Bool
(
value
)
!
}
if
detailItem
.
type
==
.
isAccompanyToHK
,
let
child
=
child
,
child
.
is18YearsOld
()
{
// 是否随行至香港
// 年满18岁不能随行
select
=
false
cell
.
isCanEdit
=
isFollowCanEdit
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
cell
.
answerArr
=
answers
...
...
@@ -363,23 +374,37 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
child
?
.
address
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
child
?
.
address
.
area
=
citys
self
.
loadInfo
()
}
self
.
present
(
vc
,
animated
:
true
)
}
else
if
detailItem
.
type
==
.
birthday
{
// 出生日期
// 子女选择年满18岁则【是否随行至香港】默认选择否,不可修改
// 如果未年满18岁则【是否随行至香港】可选择【是/否】,可修改
YHDatePickView
.
show
(
type
:
.
yyyymmdd
)
{
[
weak
self
]
date
in
guard
let
self
=
self
else
{
return
}
if
detailItem
.
type
==
.
birthday
{
self
.
child
?
.
birthday
=
date
guard
let
child
=
child
else
{
return
}
child
.
birthday
=
date
isFollowCanEdit
=
!
child
.
is18YearsOld
()
}
self
.
loadInfo
()
}
}
}
}
func
createCorner
(
cell
:
UITableViewCell
,
arr
:
Array
<
Any
>
,
indexPath
:
IndexPath
)
{
// 复用时需清理
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHBrotherInfoVC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/
Parents&Brothers(父母和兄弟姐妹)/
YHBrotherInfoVC.swift
View file @
1c44327b
...
...
@@ -408,7 +408,7 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
var
isBirthOverSeas
=
false
if
let
brotherInfo
=
brotherInfo
{
isBirthOverSeas
=
brotherInfo
.
is
OverSeasOver1Year
()
isBirthOverSeas
=
brotherInfo
.
is
BirthOverSeas
()
}
// 出生国外时 出生城市是输入框
if
isBirthOverSeas
{
return
}
...
...
@@ -418,7 +418,14 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
brotherInfo
?
.
birthPlace
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
brotherInfo
?
.
birthPlace
.
area
=
citys
self
.
loadInfo
()
saveInfoSilent
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHParentInfoVC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/
Parents&Brothers(父母和兄弟姐妹)/
YHParentInfoVC.swift
View file @
1c44327b
...
...
@@ -453,7 +453,7 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
var
isBirthOverSeas
=
false
if
let
parentInfo
=
parentInfo
{
isBirthOverSeas
=
parentInfo
.
is
OverSeasOver1Year
()
isBirthOverSeas
=
parentInfo
.
is
BirthOverSeas
()
}
// 出生国外时 出生城市是输入框
if
isBirthOverSeas
{
return
}
...
...
@@ -463,7 +463,14 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
parentInfo
?
.
birthPlace
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
parentInfo
?
.
birthPlace
.
area
=
citys
self
.
loadInfo
()
saveInfoSilent
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
View file @
1c44327b
...
...
@@ -643,7 +643,14 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
spouse
?
.
birthPlace
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
spouse
?
.
birthPlace
.
area
=
citys
loadInfo
()
save
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
View file @
1c44327b
...
...
@@ -326,7 +326,14 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
(
string1
,
string2
,
string3
,
string4
)
in
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
spouse
?
.
address
.
area
=
[
string2
,
string3
]
var
citys
:[
String
]
=
[]
if
!
isEmptyString
(
string2
)
{
citys
.
append
(
string2
)
}
if
!
isEmptyString
(
string3
)
{
citys
.
append
(
string3
)
}
self
.
spouse
?
.
address
.
area
=
citys
self
.
loadInfo
()
save
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoVC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfo
List
VC.swift
View file @
1c44327b
...
...
@@ -14,7 +14,7 @@ enum YHFormTitleItemEditType:Int {
case
canCancel
=
3
}
class
YHFamilyMemberInfoVC
:
YHBaseViewController
{
class
YHFamilyMemberInfo
List
VC
:
YHBaseViewController
{
var
orderId
:
Int
let
familyRequest
:
YHFamilyRequestViewModel
=
YHFamilyRequestViewModel
()
...
...
@@ -230,7 +230,7 @@ class YHFamilyMemberInfoVC: YHBaseViewController {
}
}
extension
YHFamilyMemberInfoVC
{
extension
YHFamilyMemberInfo
List
VC
{
// 请求家庭成员信息
func
requestFamilyInfo
()
{
...
...
@@ -293,7 +293,7 @@ extension YHFamilyMemberInfoVC {
}
}
extension
YHFamilyMemberInfoVC
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHFamilyMemberInfo
List
VC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
items
.
count
...
...
@@ -368,17 +368,30 @@ extension YHFamilyMemberInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
detailLabel
.
text
=
"还未开始填写"
.
local
}
if
detailItem
.
relationType
==
.
child
||
detailItem
.
relationType
==
.
brother
{
if
detailItem
.
subsetName
==
nil
||
detailItem
.
subsetName
==
""
{
// 姓名为空
if
detailItem
.
relationType
==
.
child
{
cell
.
title
=
String
(
format
:
"子女%d"
.
local
,
indexPath
.
row
)
}
else
if
detailItem
.
relationType
==
.
brother
{
cell
.
title
=
String
(
format
:
"兄弟姐妹%d"
.
local
,
indexPath
.
row
)
}
}
else
{
cell
.
title
=
detailItem
.
subsetName
if
isEmptyString
(
detailItem
.
subsetName
)
{
// 姓名为空
if
detailItem
.
relationType
==
.
child
{
cell
.
title
=
String
(
format
:
"子女%d"
.
local
,
indexPath
.
row
)
}
else
if
detailItem
.
relationType
==
.
brother
{
cell
.
title
=
String
(
format
:
"兄弟姐妹%d"
.
local
,
indexPath
.
row
)
}
}
else
{
var
name
=
""
if
detailItem
.
relationType
==
.
father
{
name
=
"父亲"
}
else
if
detailItem
.
relationType
==
.
mother
{
name
=
"母亲"
}
else
if
detailItem
.
relationType
==
.
spouse
{
name
=
"配偶"
}
else
if
detailItem
.
relationType
==
.
child
{
name
=
"子女"
}
else
if
detailItem
.
relationType
==
.
brother
{
name
=
"兄弟姐妹"
}
name
+=
"-"
name
+=
detailItem
.
subsetName
cell
.
title
=
name
}
cell
.
isShowDeleteBtn
=
false
cell
.
deleteBlock
=
nil
if
detailItem
.
relationType
==
.
child
||
detailItem
.
relationType
==
.
brother
{
...
...
@@ -462,6 +475,7 @@ extension YHFamilyMemberInfoVC : UITableViewDelegate, UITableViewDataSource {
if
formItem
.
type
==
.
addChild
||
formItem
.
type
==
.
addBrother
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemAddCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemAddCell
cell
.
title
=
formItem
.
getTitle
()
cell
.
clickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
formItem
.
type
==
.
addBrother
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
View file @
1c44327b
...
...
@@ -1123,6 +1123,41 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
self
.
childStepchild
.
has
=
(
val
?
"Y"
:
"N"
)
}
// 根据生日推算年龄
func
getAge
(
birthday
:
String
)
->
Int
{
let
arr
=
birthday
.
components
(
separatedBy
:
YHDatePickView
.
separator
)
if
arr
.
count
==
3
{
let
year
=
Int
(
arr
[
0
])
??
0
let
month
=
Int
(
arr
[
1
])
??
0
let
day
=
Int
(
arr
[
2
])
??
0
let
now
=
Date
()
let
formatter
=
DateFormatter
()
formatter
.
dateFormat
=
"yyyy-MM-dd"
let
current
=
formatter
.
string
(
from
:
now
)
let
curArr
=
current
.
components
(
separatedBy
:
"-"
)
if
curArr
.
count
==
3
{
let
cyear
=
Int
(
curArr
[
0
])
??
0
let
cmonth
=
Int
(
curArr
[
1
])
??
0
let
cday
=
Int
(
curArr
[
2
])
??
0
var
age
=
cyear
-
year
if
cmonth
<
month
{
age
-=
1
}
else
if
cmonth
==
month
&&
cday
<
day
{
age
-=
1
}
return
age
}
}
return
0
}
func
is18YearsOld
()
->
Bool
{
let
age
=
getAge
(
birthday
:
birthday
)
return
age
>=
18
}
var
relationType
:
YHFamilyMemberType
{
get
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
View file @
1c44327b
...
...
@@ -38,6 +38,13 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
// 是否必须字段
var
isMust
:
Bool
=
false
var
answerBlock
:(([
YHFormChoiceItem
],
Int
)
->
Void
)?
// 是否能点击两个按钮
var
isCanEdit
:
Bool
=
true
{
didSet
{
answer1Btn
.
isUserInteractionEnabled
=
isCanEdit
answer2Btn
.
isUserInteractionEnabled
=
isCanEdit
}
}
var
title
:
String
?
{
didSet
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment