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
faaae409
Commit
faaae409
authored
Aug 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 家庭
parent
a9190c23
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
18 deletions
+49
-18
YHFamilyInfoUpdateViewController.swift
...oConfirm(家庭信息确认)/C/YHFamilyInfoUpdateViewController.swift
+9
-3
YHIFamilyInfoListCell.swift
...)/FamilyInfoConfirm(家庭信息确认)/V/YHIFamilyInfoListCell.swift
+40
-15
YHInfoItemView.swift
...ate(办证段)/FamilyInfoConfirm(家庭信息确认)/V/YHInfoItemView.swift
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/FamilyInfoConfirm(家庭信息确认)/C/YHFamilyInfoUpdateViewController.swift
View file @
faaae409
...
...
@@ -196,6 +196,8 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
}
let
birthNation
=
"国内"
let
options
=
[
YHFamilyInfoOption
(
value
:
"国内"
,
isSelect
:
true
),
YHFamilyInfoOption
(
value
:
"国外"
,
isSelect
:
false
)]
let
birthNationInfo
=
YHFamilyInfoItem
(
id
:
.
birthNation
,
action
:
.
choice
,
isMust
:
true
,
...
...
@@ -203,13 +205,14 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
detail
:
birthNation
,
previousTitle
:
"原出生国家/地区"
,
previousDetail
:
birthNation
,
options
:
options
,
isEditMode
:
isEditMode
,
isShowPreviousInfo
:
isShowPreviousInfo
)
arr1
.
append
(
birthNationInfo
)
let
birthPlace
=
"上海市市辖区"
let
birthPlaceInfo
=
YHFamilyInfoItem
(
id
:
.
birthPlace
,
action
:
.
edi
t
,
action
:
.
selec
t
,
isMust
:
true
,
title
:
"出生地"
,
detail
:
birthPlace
,
...
...
@@ -221,7 +224,7 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
let
declareNation
=
"中国-CHINA"
let
declareNationInfo
=
YHFamilyInfoItem
(
id
:
.
declareNation
,
action
:
.
edi
t
,
action
:
.
selec
t
,
isMust
:
true
,
title
:
"申报国籍"
,
detail
:
declareNation
,
...
...
@@ -284,7 +287,10 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
arr2
.
append
(
cerIdInfo
)
items
.
append
(
contentsOf
:
[
arr1
,
arr2
])
// 信息核实
items
.
append
(
arr1
)
// 递交证件信息
items
.
append
(
arr2
)
self
.
tableView
.
reloadData
()
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/FamilyInfoConfirm(家庭信息确认)/V/YHIFamilyInfoListCell.swift
View file @
faaae409
...
...
@@ -33,6 +33,16 @@ enum YHFamilyInfoActionType: Int {
case
choice
=
3
// 按钮多项选择
}
class
YHFamilyInfoOption
{
var
value
:
String
=
""
var
isSelect
:
Bool
=
false
init
(
value
:
String
,
isSelect
:
Bool
)
{
self
.
value
=
value
self
.
isSelect
=
isSelect
}
}
class
YHFamilyInfoItem
{
var
id
:
YHFamilyInfoType
=
.
none
var
action
:
YHFamilyInfoActionType
=
.
none
...
...
@@ -43,12 +53,13 @@ class YHFamilyInfoItem {
var
previousDetail
:
String
=
""
var
isEditMode
:
Bool
=
false
var
isShowPreviousInfo
:
Bool
=
false
var
options
:[
YHFamilyInfoOption
]
=
[]
required
init
()
{
}
init
(
id
:
YHFamilyInfoType
,
action
:
YHFamilyInfoActionType
,
isMust
:
Bool
,
title
:
String
,
detail
:
String
,
previousTitle
:
String
,
previousDetail
:
String
,
isEditMode
:
Bool
,
isShowPreviousInfo
:
Bool
)
{
init
(
id
:
YHFamilyInfoType
,
action
:
YHFamilyInfoActionType
,
isMust
:
Bool
,
title
:
String
,
detail
:
String
,
previousTitle
:
String
,
previousDetail
:
String
,
options
:[
YHFamilyInfoOption
]
=
[],
isEditMode
:
Bool
,
isShowPreviousInfo
:
Bool
)
{
self
.
id
=
id
self
.
action
=
action
self
.
isMust
=
isMust
...
...
@@ -56,6 +67,7 @@ class YHFamilyInfoItem {
self
.
detail
=
detail
self
.
previousTitle
=
previousTitle
self
.
previousDetail
=
previousDetail
self
.
options
=
options
self
.
isEditMode
=
isEditMode
self
.
isShowPreviousInfo
=
isShowPreviousInfo
}
...
...
@@ -154,24 +166,37 @@ class YHIFamilyInfoListCell: UITableViewCell {
func
updateItems
(
_
items
:[
YHFamilyInfoItem
])
{
itemsContentView
.
removeSubviews
()
var
lastItemView
:
YHInfoItem
View
?
=
nil
var
lastItemView
:
UI
View
?
=
nil
for
(
index
,
item
)
in
items
.
enumerated
()
{
let
itemView
=
YHInfoItemView
(
frame
:
.
zero
)
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
if
let
lastView
=
lastItemView
{
make
.
top
.
equalTo
(
lastView
.
snp
.
bottom
)
}
else
{
make
.
top
.
equalTo
(
itemsContentView
.
snp
.
top
)
}
var
itemView
:
UIView
?
=
YHInfoItemView
(
frame
:
.
zero
)
if
item
.
action
==
.
choice
{
itemView
=
YHInfoOptionView
(
frame
:
.
zero
)
}
if
let
itemView
=
itemView
as?
YHInfoItemView
{
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
)
if
index
==
items
.
count
-
1
{
make
.
bottom
.
equalTo
(
itemsContentView
.
snp
.
bottom
)
}
else
if
let
itemView
=
itemView
as?
YHInfoOptionView
{
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
)
}
if
let
itemView
=
itemView
{
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalTo
(
0
)
if
let
lastView
=
lastItemView
{
make
.
top
.
equalTo
(
lastView
.
snp
.
bottom
)
}
else
{
make
.
top
.
equalTo
(
itemsContentView
.
snp
.
top
)
}
if
index
==
items
.
count
-
1
{
make
.
bottom
.
equalTo
(
itemsContentView
.
snp
.
bottom
)
}
}
lastItemView
=
itemView
}
lastItemView
=
itemView
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/FamilyInfoConfirm(家庭信息确认)/V/YHInfoItemView.swift
View file @
faaae409
This diff is collapsed.
Click to expand it.
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