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
ddaef8f6
Commit
ddaef8f6
authored
Sep 24, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在港记录showcase bug修复
parent
0048e5fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
YHHKRecordsSummaryVC.swift
...ngImmigrationRecords(在港记录管理)/C/YHHKRecordsSummaryVC.swift
+12
-2
YHHKRecordsSectionHeaderCell.swift
...ationRecords(在港记录管理)/V/YHHKRecordsSectionHeaderCell.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsSummaryVC.swift
View file @
ddaef8f6
...
...
@@ -116,7 +116,10 @@ extension YHHKRecordsSummaryVC {
guard
let
self
=
self
else
{
return
}
var
summaryItems
:
[
YHHKRecordItemDetailType
]
=
[
.
detailHeader
(
"逗留共
\(
record
.
sum_days
)
天(
\(
record
.
sum_days
)
次)"
),
.
lastStay
(
"上次逗留:
\(
self
.
getShortDateString
(
record
.
last_stay_date
)
)
"
)]
var
summaryItems
:
[
YHHKRecordItemDetailType
]
=
[
.
detailHeader
(
"逗留共
\(
record
.
sum_days
)
天(
\(
record
.
sum_times
)
次)"
)]
if
record
.
last_stay_date
.
count
>
0
{
summaryItems
.
append
(
.
lastStay
(
"上次逗留:
\(
self
.
getShortDateString
(
record
.
last_stay_date
)
)
"
))
}
record
.
statistics
.
forEach
{
item
in
let
summaryItem
=
YHHKRecordItemDetailType
.
summaryItem
(
"
\(
item
.
year
)
年
\(
item
.
sum_days
)
天(
\(
item
.
sum_times
)
次)"
)
summaryItems
.
append
(
summaryItem
)
...
...
@@ -169,6 +172,12 @@ extension YHHKRecordsSummaryVC {
}
else
{
cellType
=
.
mid
}
case
.
detailHeader
:
if
indexPath
.
row
==
model
.
summaryItems
.
count
{
cellType
=
.
single
}
else
{
cellType
=
.
top
}
default
:
break
}
...
...
@@ -237,7 +246,8 @@ extension YHHKRecordsSummaryVC: UITableViewDelegate, UITableViewDataSource {
}
case
let
.
detailHeader
(
title
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHKRecordsSectionHeaderCell
.
cellReuseIdentifier
)
as?
YHHKRecordsSectionHeaderCell
{
cell
.
setupCellInfo
(
title
:
title
,
cellType
:
.
top
)
let
cellType
=
getSubCellType
(
model
:
model
,
indexPath
:
indexPath
,
subType
:
subType
)
cell
.
setupCellInfo
(
title
:
title
,
cellType
:
cellType
)
return
cell
}
case
let
.
lastStay
(
title
):
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsSectionHeaderCell.swift
View file @
ddaef8f6
...
...
@@ -36,6 +36,7 @@ class YHHKRecordsSectionHeaderCell: YHHKRecordsSectionItemBaseCell {
func
setupCellInfo
(
title
:
String
?,
cellType
:
YHResignRoundCellType
=
.
top
)
{
infoTitleLabel
.
text
=
title
bottomLineView
.
isHidden
=
cellType
!=
.
top
updateCellCorner
(
cellType
)
}
...
...
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