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
a3107efb
Commit
a3107efb
authored
Sep 21, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在港记录页面调整
parent
b62df4fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
15 deletions
+108
-15
YHServiceOrderListViewController.swift
...entService(服务中心)/C/YHServiceOrderListViewController.swift
+2
-0
YHHKImmigrationRecordsVC.swift
...migrationRecords(在港记录管理)/C/YHHKImmigrationRecordsVC.swift
+10
-3
YHHKRecordsContentVC.swift
...ngImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
+92
-6
YHHKRecordsEditButtonCell.swift
...igrationRecords(在港记录管理)/V/YHHKRecordsEditButtonCell.swift
+1
-1
YHHKRecordsRemarkCell.swift
...gImmigrationRecords(在港记录管理)/V/YHHKRecordsRemarkCell.swift
+3
-5
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceOrderListViewController.swift
View file @
a3107efb
...
...
@@ -172,6 +172,8 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
//我的续签方案
}
else
if
tag
==
3
{
//添加在港记录
let
vc
=
YHHKImmigrationRecordsVC
()
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
tag
==
4
{
//续签证件管理
let
vc
=
YHResignCertificateListViewController
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKImmigrationRecordsVC.swift
View file @
a3107efb
...
...
@@ -118,6 +118,7 @@ extension YHHKImmigrationRecordsVC {
make
.
top
.
equalTo
(
segmentedView
.
snp
.
bottom
)
make
.
bottom
.
equalTo
(
bottomView
.
snp
.
top
)
}
segmentedView
.
listContainer
=
listContainerView
}
@objc
private
func
clickAddNewButton
()
{
...
...
@@ -126,11 +127,17 @@ extension YHHKImmigrationRecordsVC {
}
extension
YHHKImmigrationRecordsVC
:
JXSegmentedViewDelegate
{
//
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
//先更新数据源的数据
// segmentedDataSource.dotStates[index] = false
//再调用reloadItem(at: index)
// segmentedView.reloadItem(at: index)
}
}
extension
YHHKImmigrationRecordsVC
:
JXSegmentedListContainerViewDataSource
{
extension
YHHKImmigrationRecordsVC
:
JXSegmentedListContainerViewDataSource
{
func
numberOfLists
(
in
listContainerView
:
JXSegmentedListContainerView
)
->
Int
{
if
let
titleDataSource
=
segmentedView
.
dataSource
as?
JXSegmentedBaseDataSource
{
return
titleDataSource
.
dataSource
.
count
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
View file @
a3107efb
...
...
@@ -11,6 +11,15 @@ import JXSegmentedView
class
YHHKRecordsContentVC
:
YHBaseViewController
{
enum
RowType
{
case
customer
(
_
title
:
String
,
_
detail
:
String
)
case
info
(
_
title
:
String
,
_
detail
:
String
,
_
topMargin
:
CGFloat
=
18
,
_
bottomMargin
:
CGFloat
=
18
)
case
remark
(
_
title
:
String
,
_
detail
:
String
)
case
edit
(
_
title
:
String
)
}
private
var
datas
:
[[
RowType
]]
=
[]
private
lazy
var
tableView
:
UITableView
=
{
let
view
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
view
.
estimatedSectionHeaderHeight
=
16.0
...
...
@@ -25,16 +34,22 @@ class YHHKRecordsContentVC: YHBaseViewController {
view
.
backgroundColor
=
.
clear
view
.
rowHeight
=
52
view
.
tableFooterView
=
UITableViewHeaderFooterView
()
view
.
register
(
YHResignDocumentHeaderCell
.
self
,
forCellReuseIdentifier
:
YHResignDocumentHeaderCell
.
cellReuseIdentifier
)
view
.
register
(
YHResignDocumentContentCell
.
self
,
forCellReuseIdentifier
:
YHResignDocumentContentCell
.
cellReuseIdentifier
)
view
.
register
(
YHHKRecordsCustomerItemCell
.
self
,
forCellReuseIdentifier
:
YHHKRecordsCustomerItemCell
.
cellReuseIdentifier
)
view
.
register
(
YHHKRecordsInfoItemCell
.
self
,
forCellReuseIdentifier
:
YHHKRecordsInfoItemCell
.
cellReuseIdentifier
)
view
.
register
(
YHHKRecordsRemarkCell
.
self
,
forCellReuseIdentifier
:
YHHKRecordsRemarkCell
.
cellReuseIdentifier
)
view
.
register
(
YHHKRecordsEditButtonCell
.
self
,
forCellReuseIdentifier
:
YHHKRecordsEditButtonCell
.
cellReuseIdentifier
)
return
view
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setupUI
()
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
setupData
()
}
}
extension
YHHKRecordsContentVC
{
...
...
@@ -50,6 +65,11 @@ extension YHHKRecordsContentVC {
}
tableView
.
tableFooterView
=
UIView
(
frame
:
CGRect
.
init
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
kMargin
))
}
private
func
setupData
()
{
datas
=
[[
.
customer
(
"客户"
,
"2023-12-13 12:00:00"
),
.
info
(
"逗留人员:"
,
"张三丰、章一刀"
,
18
,
9
),
.
info
(
"出入境时间:"
,
"2023-10-04 ~ 2023-12-04"
,
9
,
2
),
.
remark
(
"备注:"
,
"这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息这里是备注信息"
),
.
edit
(
"编辑"
)],
[
.
customer
(
"客户"
,
"2023-12-13 12:00:00"
),
.
info
(
"逗留人员:"
,
"张三丰、章一刀"
,
18
,
9
),
.
info
(
"出入境时间:"
,
"2023-10-04 ~ 2023-12-04"
,
9
,
18
),
.
edit
(
"编辑"
)]]
tableView
.
reloadData
()
}
}
extension
YHHKRecordsContentVC
:
JXSegmentedListContainerViewListDelegate
{
...
...
@@ -60,19 +80,85 @@ extension YHHKRecordsContentVC: JXSegmentedListContainerViewListDelegate {
extension
YHHKRecordsContentVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
0
return
datas
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
0
guard
datas
.
count
>
section
else
{
return
0
}
let
sectionArr
=
datas
[
section
]
return
sectionArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
guard
datas
.
count
>
indexPath
.
section
else
{
return
UITableViewCell
()
}
let
sectionArr
=
datas
[
indexPath
.
section
]
guard
sectionArr
.
count
>
indexPath
.
row
else
{
return
UITableViewCell
()
}
let
row
=
sectionArr
[
indexPath
.
row
]
switch
row
{
case
let
.
customer
(
title
,
detail
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHKRecordsCustomerItemCell
.
cellReuseIdentifier
)
as?
YHHKRecordsCustomerItemCell
{
cell
.
setupCellInfo
(
title
:
title
,
detail
:
detail
)
return
cell
}
case
let
.
info
(
title
,
detail
,
top
,
bottom
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHKRecordsInfoItemCell
.
cellReuseIdentifier
)
as?
YHHKRecordsInfoItemCell
{
cell
.
setupCellInfo
(
title
:
title
,
detail
:
detail
,
topMargin
:
top
,
bottomMargin
:
bottom
)
return
cell
}
case
let
.
remark
(
title
,
detail
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHKRecordsRemarkCell
.
cellReuseIdentifier
)
as?
YHHKRecordsRemarkCell
{
cell
.
setupCellInfo
(
title
:
title
,
detail
:
detail
)
return
cell
}
case
let
.
edit
(
title
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHKRecordsEditButtonCell
.
cellReuseIdentifier
)
as?
YHHKRecordsEditButtonCell
{
cell
.
setupCellInfo
(
title
:
title
)
return
cell
}
}
return
UITableViewCell
()
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
//
guard
datas
.
count
>
indexPath
.
section
else
{
return
}
let
sectionArr
=
datas
[
indexPath
.
section
]
guard
sectionArr
.
count
>
indexPath
.
row
else
{
return
}
let
row
=
sectionArr
[
indexPath
.
row
]
if
case
.
edit
=
row
{
let
vc
=
YHHKRecordsEditContentVC
()
navigationController
?
.
pushViewController
(
vc
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
guard
datas
.
count
>
indexPath
.
section
else
{
return
0
}
let
sectionArr
=
datas
[
indexPath
.
section
]
guard
sectionArr
.
count
>
indexPath
.
row
else
{
return
0
}
let
row
=
sectionArr
[
indexPath
.
row
]
switch
row
{
case
.
customer
:
return
52
case
.
info
:
return
UITableView
.
automaticDimension
case
.
remark
:
return
146
case
.
edit
:
return
52
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsEditButtonCell.swift
View file @
a3107efb
...
...
@@ -15,7 +15,7 @@ class YHHKRecordsEditButtonCell: YHResignDocumentCell {
private
lazy
var
centerLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
.
PFSC_M
(
ofSize
:
14
)
label
.
textColor
=
UIColor
(
hexString
:
"#222222"
)
label
.
textColor
=
.
brandMainColor
return
label
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsRemarkCell.swift
View file @
a3107efb
...
...
@@ -27,12 +27,10 @@ class YHHKRecordsRemarkCell: YHResignDocumentCell {
view
.
textColor
=
.
mainTextColor
view
.
tintColor
=
.
mainTextColor
view
.
backgroundColor
=
.
contentBkgColor
view
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
)
view
.
returnKeyType
=
.
default
view
.
enablesReturnKeyAutomatically
=
true
view
.
delegate
=
self
view
.
addObserver
(
self
,
forKeyPath
:
"attributedText"
,
options
:
.
new
,
context
:
nil
)
view
.
textContainerInset
=
UIEdgeInsets
.
zero
view
.
textContainerInset
=
UIEdgeInsets
(
top
:
10
,
left
:
12
,
bottom
:
10
,
right
:
12
)
view
.
textContainer
.
lineFragmentPadding
=
0
return
view
}()
...
...
@@ -77,8 +75,8 @@ extension YHHKRecordsRemarkCell {
}
remarkTextView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
infoTitleLabel
)
make
.
right
.
equalToSuperview
()
.
offset
(
18
)
make
.
height
.
equalTo
(
8
8
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
height
.
equalTo
(
8
6
)
make
.
top
.
equalTo
(
infoTitleLabel
.
snp
.
bottom
)
.
offset
(
8
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
...
...
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