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
12599bd3
Commit
12599bd3
authored
Aug 30, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增受养人 首页逻辑修改
parent
c87f617b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
11 deletions
+33
-11
YHAddAdoptersViewController.swift
...)/AddAdopters(2新增受养人)/C/YHAddAdoptersViewController.swift
+19
-4
YHAdopterNewPeopleViewController.swift
...Adopters(2新增受养人)/C/YHAdopterNewPeopleViewController.swift
+0
-4
YHAdopterMainModel.swift
...icate(办证段)/AddAdopters(2新增受养人)/M/YHAdopterMainModel.swift
+1
-1
YHAdopterAddNewTableViewCell.swift
.../AddAdopters(2新增受养人)/V/YHAdopterAddNewTableViewCell.swift
+7
-0
YHAdopterItemView.swift
...ficate(办证段)/AddAdopters(2新增受养人)/V/YHAdopterItemView.swift
+6
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters(2新增受养人)/C/YHAddAdoptersViewController.swift
View file @
12599bd3
...
...
@@ -100,6 +100,24 @@ class YHAddAdoptersViewController: YHBaseViewController {
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
func
showDeleteAlert
(
_
model
:
YHAdopterDependentModel
)
{
var
spouse
=
"子女"
if
model
.
is_spouse
==
1
{
spouse
=
"配偶"
}
var
value
=
""
if
model
.
dep_name
.
count
!=
0
{
value
=
spouse
+
"(
\(
model
.
dep_name
)
)"
}
else
{
value
=
spouse
}
YHCommonAlertView
.
show
(
""
,
"您确定要删除
\(
value
)
吗?"
,
"取消"
,
"确认"
)
{
self
.
viewModel
.
postDependentsDel
(
id
:
model
.
id
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
getData
()
}
}
}
}
extension
YHAddAdoptersViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
...
@@ -174,10 +192,7 @@ extension YHAddAdoptersViewController: UITableViewDelegate, UITableViewDataSourc
}
cell
.
deleteBlock
=
{
[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
postDependentsDel
(
id
:
model
.
id
)
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
self
.
getData
()
}
self
.
showDeleteAlert
(
model
)
}
cell
.
clickBlock
=
{
[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters(2新增受养人)/C/YHAdopterNewPeopleViewController.swift
View file @
12599bd3
...
...
@@ -72,10 +72,6 @@ class YHAdopterNewPeopleViewController: YHBaseViewController {
stepView
=
{
let
step
=
YHStepView
()
step
.
dataSource
=
[
"完善配偶信息"
,
"上传配偶资料"
]
step
.
block
=
{
[
weak
self
]
(
index
)
in
guard
let
self
=
self
else
{
return
}
self
.
updateDataSource
()
}
return
step
}()
view
.
addSubview
(
stepView
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters(2新增受养人)/M/YHAdopterMainModel.swift
View file @
12599bd3
...
...
@@ -37,7 +37,7 @@ class YHAdopterDependentModel: SmartCodable {
var
created_at
:
String
=
""
var
updated_at
:
String
=
""
var
deleted_at
:
String
=
""
var
has_spouse
:
Bool
=
false
//是否有配偶
var
is_spouse
:
Int
=
0
//是否有配偶
var
sync_subset_id
:
Int
=
0
required
init
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters(2新增受养人)/V/YHAdopterAddNewTableViewCell.swift
View file @
12599bd3
...
...
@@ -162,6 +162,13 @@ class YHAdopterAddNewTableViewCell: UITableViewCell {
guard
let
dataSource
=
dataSource
else
{
return
}
if
dataSource
.
count
==
0
{
moreButton
.
isHidden
=
true
cannalButton
.
isHidden
=
true
}
else
{
moreButton
.
isHidden
=
false
cannalButton
.
isHidden
=
true
}
var
total
=
0
for
i
in
0
..<
dataSource
.
count
{
let
line
=
UIView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AddAdopters(2新增受养人)/V/YHAdopterItemView.swift
View file @
12599bd3
...
...
@@ -111,10 +111,14 @@ class YHAdopterItemView: UIView {
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
var
spouse
=
"子女"
if
dataSource
.
has_spouse
{
if
dataSource
.
is_spouse
==
1
{
spouse
=
"配偶"
}
titleLabel
.
text
=
spouse
+
"(
\(
dataSource
.
dep_name
)
)"
if
dataSource
.
dep_name
.
count
!=
0
{
titleLabel
.
text
=
spouse
+
"(
\(
dataSource
.
dep_name
)
)"
}
else
{
titleLabel
.
text
=
spouse
}
if
dataSource
.
status
==
0
{
explainLabel
.
text
=
"待完善"
explainLabel
.
textColor
=
UIColor
.
brandMainColor
...
...
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