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
287ec07c
Commit
287ec07c
authored
Sep 14, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 续签
parent
c10679f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
24 deletions
+43
-24
YHResignMaterialListVC.swift
...signMaterialManage(续期资料管理)/C/YHResignMaterialListVC.swift
+41
-24
YHResignMaterialViewModel.swift
...MaterialManage(续期资料管理)/VM/YHResignMaterialViewModel.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/C/YHResignMaterialListVC.swift
View file @
287ec07c
...
...
@@ -83,7 +83,9 @@ extension YHResignMaterialListVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
0
<=
section
&&
section
<
items
.
count
{
let
list
=
items
[
section
]
return
list
.
materials
.
count
if
list
.
isUnfold
{
return
list
.
materials
.
count
}
}
return
0
}
...
...
@@ -156,36 +158,51 @@ extension YHResignMaterialListVC: UITableViewDelegate, UITableViewDataSource {
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
let
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
titleLabel
.
textColor
=
.
mainTextColor
view
.
addSubview
(
titleLabel
)
view
.
tag
=
section
if
0
<=
section
&&
section
<
items
.
count
{
let
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
titleLabel
.
textColor
=
.
mainTextColor
view
.
addSubview
(
titleLabel
)
let
info
=
items
[
section
]
titleLabel
.
text
=
info
.
title
let
img
=
info
.
isUnfold
?
"resign_material_list_unfold"
:
"resign_material_list_fold"
let
arrowImgV
=
UIImageView
(
image
:
UIImage
(
named
:
img
))
view
.
addSubview
(
arrowImgV
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
didClickSection(_ :)
)
)
view
.
addGestureRecognizer
(
tap
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
section
==
0
?
20.0
:
16.0
)
make
.
right
.
equalTo
(
arrowImgV
.
snp
.
left
)
make
.
bottom
.
equalTo
(
-
16
)
}
arrowImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
21.0
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
titleLabel
)
}
}
let
img
=
isUnfold
?
"resign_material_list_unfold"
:
"resign_material_list_fold"
let
arrowImgV
=
UIImageView
(
image
:
UIImage
(
named
:
img
))
view
.
addSubview
(
arrowImgV
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
section
==
0
?
20.0
:
16.0
)
make
.
right
.
equalTo
(
arrowImgV
.
snp
.
left
)
make
.
bottom
.
equalTo
(
-
16
)
}
arrowImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
21.0
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
titleLabel
)
}
return
view
}
@objc
func
didClickSection
(
_
gesture
:
UIGestureRecognizer
)
{
if
let
section
=
gesture
.
view
?
.
tag
{
if
0
<=
section
&&
section
<
items
.
count
{
let
info
=
items
[
section
]
info
.
isUnfold
=
!
info
.
isUnfold
self
.
tableView
.
reloadData
()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/VM/YHResignMaterialViewModel.swift
View file @
287ec07c
...
...
@@ -12,6 +12,8 @@ class YHResignMaterialInfo {
var
title
:
String
=
""
var
materials
:
[
YHMaterialModel
]
=
[]
// 是否展开 默认展开
var
isUnfold
:
Bool
=
true
init
(
title
:
String
,
materials
:
[
YHMaterialModel
])
{
self
.
title
=
title
...
...
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