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
4684d4ac
Commit
4684d4ac
authored
Mar 03, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into davidhuang
* develop: // 家庭成员 // 家庭成员
parents
bcb027df
fe011af5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
147 additions
and
182 deletions
+147
-182
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+73
-50
YHChildInfoContainerVC.swift
...yMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
+1
-0
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+32
-63
YHSpouseBasicInfoVC.swift
...ilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
+28
-12
YHSpouseInfoContainerVC.swift
...ember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
+2
-0
YHSpousePrimaryInfoVC.swift
...yMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
+3
-6
YHBrotherInfoVC.swift
...Process(流程)/FamilyMember(家庭成员信息表)/C/YHBrotherInfoVC.swift
+1
-18
YHCertificateInfoController.swift
...FamilyMember(家庭成员信息表)/C/YHCertificateInfoController.swift
+1
-15
YHParentInfoVC.swift
...eProcess(流程)/FamilyMember(家庭成员信息表)/C/YHParentInfoVC.swift
+1
-18
YHFormItemDegreeInfoCell.swift
...程)/FamilyMember(家庭成员信息表)/V/YHFormItemDegreeInfoCell.swift
+5
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
4684d4ac
...
@@ -12,7 +12,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -12,7 +12,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
var
child
:
YHFamilyMember
?
var
child
:
YHFamilyMember
?
weak
var
delegate
:
YHSpouseInfoVCProtocol
?
weak
var
delegate
:
YHSpouseInfoVCProtocol
?
var
isNeedShowError
=
false
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
...
@@ -42,9 +43,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -42,9 +43,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"子女基本信息填写"
.
local
createUI
()
createUI
()
load
Basic
Info
()
loadInfo
()
}
}
func
createUI
()
{
func
createUI
()
{
...
@@ -60,7 +60,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -60,7 +60,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
}
}
}
}
func
load
Basic
Info
()
{
func
loadInfo
()
{
guard
let
child
=
child
else
{
return
}
guard
let
child
=
child
else
{
return
}
items
.
removeAll
()
items
.
removeAll
()
...
@@ -118,8 +118,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -118,8 +118,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
if
child
.
isNowHaveJob
()
{
if
child
.
isNowHaveJob
()
{
let
item11
=
YHFormDetailItem
(
type
:
.
occupationName
)
let
item11
=
YHFormDetailItem
(
type
:
.
occupationName
)
item11
.
value
=
child
.
occupationName
item11
.
value
=
child
.
occupationName
item1
0
.
tips
=
"请
请输入职业名称"
.
local
item1
1
.
tips
=
"
请输入职业名称"
.
local
item11
.
placeHolder
=
"请
请
输入职业名称"
.
local
item11
.
placeHolder
=
"请输入职业名称"
.
local
arr1
.
append
(
item11
)
arr1
.
append
(
item11
)
}
}
...
@@ -262,9 +262,9 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -262,9 +262,9 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemInputTextCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemInputTextCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
isMust
=
detailItem
.
isNeed
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
detailItem
.
isShowTips
)
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
text
=
detailItem
.
value
cell
.
text
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -289,7 +289,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -289,7 +289,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
}
if
isEditEnd
{
if
isEditEnd
{
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
}
...
@@ -302,7 +302,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -302,7 +302,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
detail
=
detailItem
.
value
cell
.
detail
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
return
cell
return
cell
}
}
...
@@ -327,7 +327,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -327,7 +327,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
selectItem
=
answers
[
index
]
let
selectItem
=
answers
[
index
]
self
.
child
?
.
setBirthOverSeas
(
selectItem
.
title
==
"国外"
.
local
)
self
.
child
?
.
setBirthOverSeas
(
selectItem
.
title
==
"国外"
.
local
)
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
else
if
detailItem
.
type
==
.
isHaveHkIdentityCard
||
detailItem
.
type
==
.
isNowInHK
||
detailItem
.
type
==
.
isPreviousMarriageChild
{
// 是否办理过香港身份证 是否在岗 是否前次婚姻子女
}
else
if
detailItem
.
type
==
.
isHaveHkIdentityCard
||
detailItem
.
type
==
.
isNowInHK
||
detailItem
.
type
==
.
isPreviousMarriageChild
{
// 是否办理过香港身份证 是否在岗 是否前次婚姻子女
...
@@ -351,7 +351,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -351,7 +351,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
isPreviousMarriageChild
{
}
else
if
detailItem
.
type
==
.
isPreviousMarriageChild
{
self
.
child
?
.
setPreviousMarriageChild
(
option
)
self
.
child
?
.
setPreviousMarriageChild
(
option
)
}
}
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
}
...
@@ -381,25 +381,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -381,25 +381,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormAddItem
{
return
70.0
}
if
item
is
YHFormDetailItem
{
return
UITableView
.
automaticDimension
}
return
52.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
@@ -437,7 +419,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -437,7 +419,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
stayHKDate
{
}
else
if
detailItem
.
type
==
.
stayHKDate
{
self
.
child
?
.
childInHk
.
info
=
date
self
.
child
?
.
childInHk
.
info
=
date
}
}
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
...
@@ -456,7 +438,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -456,7 +438,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
print
(
"
\(
string1
)\n\(
string2
)\n\(
string3
)\n\(
string4
)
"
)
self
.
child
?
.
birthPlace
.
area
=
[
string2
,
string3
,
string4
]
self
.
child
?
.
birthPlace
.
area
=
[
string2
,
string3
,
string4
]
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
self
.
present
(
vc
,
animated
:
true
)
self
.
present
(
vc
,
animated
:
true
)
...
@@ -468,7 +450,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -468,7 +450,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
selectType
in
[
weak
self
]
selectType
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
child
?
.
hkIdentity
=
selectType
.
title
self
.
child
?
.
hkIdentity
=
selectType
.
title
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
else
if
detailItem
.
type
==
.
occupation
{
// 职业
}
else
if
detailItem
.
type
==
.
occupation
{
// 职业
...
@@ -477,7 +459,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -477,7 +459,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
selectType
in
[
weak
self
]
selectType
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
child
?
.
occupation
=
selectType
.
title
self
.
child
?
.
occupation
=
selectType
.
title
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
...
@@ -490,7 +472,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -490,7 +472,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
let
selectMale
=
(
selectType
.
index
==
YHFormPickerViewSubType
.
gender
(
.
male
)
.
index
)
let
selectMale
=
(
selectType
.
index
==
YHFormPickerViewSubType
.
gender
(
.
male
)
.
index
)
self
.
child
?
.
setMale
(
selectMale
)
self
.
child
?
.
setMale
(
selectMale
)
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
else
if
detailItem
.
type
==
.
marriageState
{
// 婚姻
}
else
if
detailItem
.
type
==
.
marriageState
{
// 婚姻
...
@@ -499,7 +481,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -499,7 +481,7 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
[
weak
self
]
selectType
in
[
weak
self
]
selectType
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
child
?
.
married
=
selectType
.
title
self
.
child
?
.
married
=
selectType
.
title
self
.
load
Basic
Info
()
self
.
loadInfo
()
save
()
save
()
}
}
}
}
...
@@ -527,23 +509,64 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -527,23 +509,64 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
}
extension
YHChildBasicInfoVC
{
extension
YHChildBasicInfoVC
{
// 检查填写信息完整性
func
nextStep
()
->
Bool
{
func
checkIntegrity
()
->
Bool
{
// let isChecked = checkIntegrity()
// isNeedShowError = !isChecked
guard
let
child
=
child
else
{
return
false
}
//
if
isEmptyString
(
child
.
subsetName
)
// self.tableView .reloadData()
||
child
.
sex
==
0
//
||
isEmptyString
(
child
.
married
)
// if !isChecked {
||
isEmptyString
(
child
.
birthday
){
// YHHUD.flash(message: "资料还未填完")
return
false
// return false
}
// }
if
child
.
isBirthOverSeas
()
{
if
isEmptyString
(
child
.
birthPlace
.
foreign
)
{
return
false
}
}
else
{
if
isEmptyArray
(
child
.
birthPlace
.
area
)
{
return
false
}
}
if
isEmptyString
(
child
.
occupation
)
{
return
false
}
if
child
.
isNowHaveJob
(),
isEmptyString
(
child
.
occupationName
)
{
return
false
}
if
child
.
isNowInHK
()
{
if
isEmptyString
(
child
.
childInHk
.
info
)
||
isEmptyString
(
child
.
hkIdentity
)
{
return
false
}
}
if
child
.
isHaveHKIdentityCard
()
{
if
isEmptyString
(
child
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdentityCard
=
child
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
return
true
}
}
func
loadInfo
()
{
func
nextStep
()
->
Bool
{
self
.
tableView
.
reloadData
()
let
isChecked
=
checkIntegrity
()
isNeedShowError
=
!
isChecked
loadInfo
()
if
!
isChecked
{
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
false
}
return
true
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
View file @
4684d4ac
...
@@ -64,6 +64,7 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
...
@@ -64,6 +64,7 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"子女信息填写"
.
local
createUI
()
createUI
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
4684d4ac
...
@@ -12,7 +12,8 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -12,7 +12,8 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
var
child
:
YHFamilyMember
?
var
child
:
YHFamilyMember
?
weak
var
delegate
:
YHSpouseInfoVCProtocol
?
weak
var
delegate
:
YHSpouseInfoVCProtocol
?
var
isNeedShowError
=
false
lazy
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
lazy
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
...
@@ -43,7 +44,6 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -43,7 +44,6 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"子女信息填写"
.
local
createUI
()
createUI
()
loadChildInfo
()
loadChildInfo
()
}
}
...
@@ -56,35 +56,25 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -56,35 +56,25 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 随行
// 随行
let
title0
=
YHFormTitleItem
(
type
:
.
accompany
)
let
title0
=
YHFormTitleItem
(
type
:
.
accompany
)
let
item00
=
YHFormDetailItem
(
type
:
.
ownCustody
)
let
item00
=
YHFormDetailItem
(
type
:
.
ownCustody
,
value
:
String
(
child
.
isOwnCustody
()))
item00
.
value
=
String
(
child
.
isOwnCustody
())
let
item01
=
YHFormDetailItem
(
type
:
.
birthday
,
value
:
child
.
birthday
,
tips
:
"请选择出生日期"
.
local
)
let
item01
=
YHFormDetailItem
(
type
:
.
birthday
)
let
item02
=
YHFormDetailItem
(
type
:
.
isAccompanyToHK
,
value
:
String
(
child
.
isFollow
()))
item01
.
value
=
child
.
birthday
let
item02
=
YHFormDetailItem
(
type
:
.
isAccompanyToHK
)
item02
.
value
=
String
(
child
.
isFollow
())
let
arr0
:[
YHFormItemProtocol
]
=
[
title0
,
item00
,
item01
,
item02
]
let
arr0
:[
YHFormItemProtocol
]
=
[
title0
,
item00
,
item01
,
item02
]
items
.
append
(
arr0
)
items
.
append
(
arr0
)
if
child
.
isFollow
()
{
// 随行才加后面的信息
if
child
.
isFollow
()
{
// 随行才加后面的信息
// 国籍
// 国籍
let
title1
=
YHFormTitleItem
(
type
:
.
nationality
)
let
title1
=
YHFormTitleItem
(
type
:
.
nationality
)
let
item10
=
YHFormDetailItem
(
type
:
.
nationOrArea
)
let
item10
=
YHFormDetailItem
(
type
:
.
nationOrArea
,
value
:
child
.
nationality
,
tips
:
"请选择国籍"
.
local
)
item10
.
value
=
child
.
nationality
item10
.
placeHolder
=
"请选择"
.
local
let
arr1
:[
YHFormItemProtocol
]
=
[
title1
,
item10
]
let
arr1
:[
YHFormItemProtocol
]
=
[
title1
,
item10
]
// 居住信息
// 居住信息
var
arr2
=
[
YHFormItemProtocol
]()
let
title2
=
YHFormTitleItem
(
type
:
.
liveInfo
)
let
title2
=
YHFormTitleItem
(
type
:
.
liveInfo
)
let
item20
=
YHFormDetailItem
(
type
:
.
isLiveTother
)
let
item20
=
YHFormDetailItem
(
type
:
.
isLiveTother
,
value
:
String
(
child
.
isLiveTother
()))
item20
.
value
=
String
(
child
.
isLiveTother
())
var
arr2
:
[
YHFormItemProtocol
]
=
[
title2
,
item20
]
arr2
.
append
(
title2
)
arr2
.
append
(
item20
)
if
!
child
.
isLiveTother
()
{
// 不同住 才需填写国家/地区
if
!
child
.
isLiveTother
()
{
// 不同住 才需填写国家/地区
let
item21
=
YHFormDetailItem
(
type
:
.
nationOrArea
)
let
item21
=
YHFormDetailItem
(
type
:
.
nationOrArea
,
value
:
child
.
address
.
country
,
tips
:
"请选择国家/地区"
.
local
)
item21
.
value
=
child
.
address
.
country
item21
.
placeHolder
=
"请选择"
.
local
arr2
.
append
(
item21
)
arr2
.
append
(
item21
)
// 国家/地区已填写 才显示现居住城市和详细地址两行
// 国家/地区已填写 才显示现居住城市和详细地址两行
...
@@ -94,23 +84,20 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -94,23 +84,20 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 居住信息中选择中国才会显示现居住城市
// 居住信息中选择中国才会显示现居住城市
let
isLiveInChina
=
child
.
address
.
country
.
contains
(
"中国"
.
local
)
let
isLiveInChina
=
child
.
address
.
country
.
contains
(
"中国"
.
local
)
if
isLiveInChina
{
if
isLiveInChina
{
let
item22
=
YHFormDetailItem
(
type
:
.
liveCity
)
var
value
=
""
if
!
child
.
address
.
area
.
isEmpty
{
if
!
child
.
address
.
area
.
isEmpty
{
item22
.
value
=
child
.
address
.
area
.
joined
(
separator
:
"/"
)
value
=
child
.
address
.
area
.
joined
(
separator
:
"/"
)
}
}
item22
.
placeHolder
=
"请选择城市"
.
local
let
item22
=
YHFormDetailItem
(
type
:
.
liveCity
,
value
:
value
,
tips
:
"请选择现居住城市"
.
local
)
arr2
.
append
(
item22
)
arr2
.
append
(
item22
)
}
}
let
placeHolder
=
(
isLiveInChina
?
"请填写小区、楼栋、单元室等"
.
local
:
"请填写国外居住地"
.
local
)
let
item23
=
YHFormDetailItem
(
type
:
.
detailAddress
)
let
item23
=
YHFormDetailItem
(
type
:
.
detailAddress
,
value
:
child
.
address
.
details
,
placeHolder
:
placeHolder
,
tips
:
placeHolder
)
item23
.
value
=
child
.
address
.
details
item23
.
placeHolder
=
(
isLiveInChina
?
"请填写小区、楼栋、单元室等"
.
local
:
"请填写国外居住地"
.
local
)
arr2
.
append
(
item23
)
arr2
.
append
(
item23
)
if
!
isLiveInChina
{
// 在国外
if
!
isLiveInChina
{
// 在国外
// 是否在海外居住满1年及以上
// 是否在海外居住满1年及以上
let
item24
=
YHFormDetailItem
(
type
:
.
isLiveOverSeasMore1Year
)
let
item24
=
YHFormDetailItem
(
type
:
.
isLiveOverSeasMore1Year
,
value
:
String
(
child
.
isOverSeasOver1Year
()))
item24
.
value
=
String
(
child
.
isOverSeasOver1Year
())
arr2
.
append
(
item24
)
arr2
.
append
(
item24
)
}
}
}
}
...
@@ -118,8 +105,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -118,8 +105,7 @@ class YHChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 港澳通信证
// 港澳通信证
let
title3
=
YHFormTitleItem
(
type
:
.
hkAndMacaoPassport
)
let
title3
=
YHFormTitleItem
(
type
:
.
hkAndMacaoPassport
)
let
item30
=
YHFormDetailItem
(
type
:
.
isHandleHKPassPort
)
let
item30
=
YHFormDetailItem
(
type
:
.
isHandleHKPassPort
,
value
:
String
(
child
.
isNeedHandleHKPassPort
()))
item30
.
value
=
String
(
child
.
isNeedHandleHKPassPort
())
let
arr3
:[
YHFormItemProtocol
]
=
[
title3
,
item30
]
let
arr3
:[
YHFormItemProtocol
]
=
[
title3
,
item30
]
items
.
append
(
contentsOf
:[
arr1
,
arr2
,
arr3
])
items
.
append
(
contentsOf
:[
arr1
,
arr2
,
arr3
])
}
}
...
@@ -273,6 +259,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -273,6 +259,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
isMust
=
detailItem
.
isNeed
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
detail
=
detailItem
.
value
cell
.
detail
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
return
cell
return
cell
}
else
if
cellType
==
.
inputText
{
// 输入文字cell
}
else
if
cellType
==
.
inputText
{
// 输入文字cell
...
@@ -281,6 +268,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -281,6 +268,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
text
=
detailItem
.
value
cell
.
text
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -316,30 +304,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -316,30 +304,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormDetailItem
{
let
detailItem
=
item
as!
YHFormDetailItem
if
detailItem
.
type
==
.
isLiveTother
||
detailItem
.
type
==
.
isAccompanyToHK
||
detailItem
.
type
==
.
isHandleHKPassPort
||
detailItem
.
type
==
.
ownCustody
||
detailItem
.
type
==
.
isLiveOverSeasMore1Year
{
return
UITableView
.
automaticDimension
}
}
return
52.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
@@ -441,6 +406,10 @@ extension YHChildPrimaryInfoVC {
...
@@ -441,6 +406,10 @@ extension YHChildPrimaryInfoVC {
return
true
return
true
}
}
if
isEmptyString
(
child
.
birthday
)
{
return
false
}
if
isEmptyString
(
child
.
nationality
)
{
if
isEmptyString
(
child
.
nationality
)
{
return
false
return
false
}
}
...
@@ -457,15 +426,15 @@ extension YHChildPrimaryInfoVC {
...
@@ -457,15 +426,15 @@ extension YHChildPrimaryInfoVC {
}
}
func
nextStep
()
->
Bool
{
func
nextStep
()
->
Bool
{
//
let isChecked = checkIntegrity()
let
isChecked
=
checkIntegrity
()
//
isNeedShowError = !isChecked
isNeedShowError
=
!
isChecked
//
// self.tableView .reloadData
()
loadInfo
()
//
//
if !isChecked {
if
!
isChecked
{
//
YHHUD.flash(message: "资料还未填完")
YHHUD
.
flash
(
message
:
"资料还未填完"
)
//
return false
return
false
//
}
}
return
true
return
true
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
View file @
4684d4ac
...
@@ -59,7 +59,6 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -59,7 +59,6 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"配偶基本信息填写"
.
local
createUI
()
createUI
()
loadInfo
()
loadInfo
()
}
}
...
@@ -241,6 +240,21 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -241,6 +240,21 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
}
}
}
}
}
}
if
spouse
.
isNowInHK
()
{
if
isEmptyString
(
spouse
.
childInHk
.
info
)
||
isEmptyString
(
spouse
.
hkIdentity
)
{
return
false
}
}
if
spouse
.
isHaveHKIdentityCard
()
{
if
isEmptyString
(
spouse
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdentityCard
=
spouse
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
return
true
}
}
...
@@ -249,7 +263,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -249,7 +263,7 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
let
isChecked
=
checkIntegrity
()
let
isChecked
=
checkIntegrity
()
isNeedShowError
=
!
isChecked
isNeedShowError
=
!
isChecked
self
.
tableView
.
reloadData
()
loadInfo
()
if
!
isChecked
{
if
!
isChecked
{
YHHUD
.
flash
(
message
:
"资料还未填完"
)
YHHUD
.
flash
(
message
:
"资料还未填完"
)
...
@@ -479,24 +493,26 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -479,24 +493,26 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
// 前两行是 学历学位信息标题 和 是否拥有学位
// 前两行是 学历学位信息标题 和 是否拥有学位
cell
.
showDeleteBtn
(
indexPath
.
row
>
2
)
cell
.
showDeleteBtn
(
indexPath
.
row
>
2
)
var
degree
=
""
if
!
degreeInfo
.
degree
.
isEmpty
{
if
!
degreeInfo
.
degree
.
isEmpty
{
if
let
degreeIndex
=
Int
(
degreeInfo
.
degree
),
let
subType
=
YHPickerViewDegreeType
(
rawValue
:
degreeIndex
)
{
if
let
degreeIndex
=
Int
(
degreeInfo
.
degree
),
let
subType
=
YHPickerViewDegreeType
(
rawValue
:
degreeIndex
)
{
cell
.
degree
=
YHFormPickerViewSubType
.
degree
(
subType
)
.
title
degree
=
YHFormPickerViewSubType
.
degree
(
subType
)
.
title
}
else
{
cell
.
degree
=
""
}
}
}
else
{
cell
.
degree
=
""
}
}
cell
.
degree
=
degree
var
degreePlace
=
""
if
!
degreeInfo
.
address
.
isEmpty
{
if
!
degreeInfo
.
address
.
isEmpty
{
if
let
addressIndex
=
Int
(
degreeInfo
.
address
),
let
subType
=
YHPickerViewDegreeLocationType
(
rawValue
:
addressIndex
)
{
if
let
addressIndex
=
Int
(
degreeInfo
.
address
),
let
subType
=
YHPickerViewDegreeLocationType
(
rawValue
:
addressIndex
)
{
cell
.
degreePlace
=
YHFormPickerViewSubType
.
degreeLocation
(
subType
)
.
title
degreePlace
=
YHFormPickerViewSubType
.
degreeLocation
(
subType
)
.
title
}
else
{
cell
.
degreePlace
=
""
}
}
}
else
{
cell
.
degreePlace
=
""
}
}
cell
.
degreePlace
=
degreePlace
let
isNeedShowDegreeTips
=
isNeedShowError
&&
isEmptyString
(
degree
)
let
isNeedShowPlaceTips
=
isNeedShowError
&&
isEmptyString
(
degreePlace
)
cell
.
showTips
(
isShowDegreeTips
:
isNeedShowDegreeTips
,
isShowPlaceTips
:
isNeedShowPlaceTips
)
cell
.
degreeClickBlock
=
{
cell
.
degreeClickBlock
=
{
YHFormPickerView
.
show
(
type
:
.
degree
)
{
[
weak
self
]
selectType
in
YHFormPickerView
.
show
(
type
:
.
degree
)
{
[
weak
self
]
selectType
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
View file @
4684d4ac
...
@@ -87,6 +87,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
...
@@ -87,6 +87,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"配偶信息填写"
.
local
createUI
()
createUI
()
}
}
...
@@ -94,6 +95,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
...
@@ -94,6 +95,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
guard
let
spouse
=
spouse
else
{
return
}
guard
let
spouse
=
spouse
else
{
return
}
primaryInfoVC
.
delegate
=
self
primaryInfoVC
.
delegate
=
self
certificateVC
.
delegate
=
self
certificateVC
.
delegate
=
self
basicInfoVC
.
delegate
=
self
basicInfoVC
.
delegate
=
self
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
View file @
4684d4ac
...
@@ -42,7 +42,6 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -42,7 +42,6 @@ class YHSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"配偶信息填写"
.
local
createUI
()
createUI
()
loadInfo
()
loadInfo
()
}
}
...
@@ -220,10 +219,9 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -220,10 +219,9 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemSelectSheetCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemSelectSheetCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
detail
=
detailItem
.
value
cell
.
detail
=
detailItem
.
value
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
return
cell
return
cell
}
}
...
@@ -231,10 +229,9 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -231,10 +229,9 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemInputTextCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemInputTextCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
title
=
detailItem
.
getTitle
()
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
text
=
detailItem
.
value
cell
.
text
=
detailItem
.
value
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
detailItem
.
isShowTips
)
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
cell
.
textChange
=
{
cell
.
textChange
=
{
[
weak
self
]
(
text
,
isEditEnd
)
in
[
weak
self
]
(
text
,
isEditEnd
)
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -374,7 +371,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -374,7 +371,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
let
isChecked
=
checkIntegrity
()
let
isChecked
=
checkIntegrity
()
isNeedShowError
=
!
isChecked
isNeedShowError
=
!
isChecked
self
.
tableView
.
reloadData
()
loadInfo
()
if
!
isChecked
{
if
!
isChecked
{
YHHUD
.
flash
(
message
:
"资料还未填完"
)
YHHUD
.
flash
(
message
:
"资料还未填完"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHBrotherInfoVC.swift
View file @
4684d4ac
...
@@ -350,24 +350,7 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -350,24 +350,7 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
return
UITableView
.
automaticDimension
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormAddItem
{
return
70.0
}
if
item
is
YHFormDetailItem
{
return
UITableView
.
automaticDimension
}
return
52.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHCertificateInfoController.swift
View file @
4684d4ac
...
@@ -44,7 +44,6 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -44,7 +44,6 @@ class YHCertificateInfoController: YHBaseViewController, YHFamilyMemberProtol {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
gk_navTitle
=
"证件信息填写"
.
local
createUI
()
createUI
()
loadInfo
()
loadInfo
()
}
}
...
@@ -247,20 +246,7 @@ extension YHCertificateInfoController : UITableViewDelegate, UITableViewDataSour
...
@@ -247,20 +246,7 @@ extension YHCertificateInfoController : UITableViewDelegate, UITableViewDataSour
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
return
UITableView
.
automaticDimension
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormDetailItem
{
return
UITableView
.
automaticDimension
}
return
52.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHParentInfoVC.swift
View file @
4684d4ac
...
@@ -409,24 +409,7 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -409,24 +409,7 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
return
UITableView
.
automaticDimension
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormAddItem
{
return
70.0
}
if
item
is
YHFormDetailItem
{
return
UITableView
.
automaticDimension
}
return
52.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/V/YHFormItemDegreeInfoCell.swift
View file @
4684d4ac
...
@@ -57,6 +57,11 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
...
@@ -57,6 +57,11 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
}
}
}
}
func
showTips
(
isShowDegreeTips
:
Bool
,
isShowPlaceTips
:
Bool
)
{
degreeView
.
setTips
(
"请选择学位"
.
local
,
isShow
:
isShowDegreeTips
)
areaView
.
setTips
(
"请选择颁发地区"
.
local
,
isShow
:
isShowPlaceTips
)
}
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
mainTextColor
...
...
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