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
db256a5f
Commit
db256a5f
authored
Sep 21, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在港记录相关
parent
b28739e6
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
10 deletions
+41
-10
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHHKImmigrationRecordsVC.swift
...migrationRecords(在港记录管理)/C/YHHKImmigrationRecordsVC.swift
+2
-1
YHHKRecordsContentVC.swift
...ngImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
+1
-1
YHHKRecordsEditContentVC.swift
...migrationRecords(在港记录管理)/C/YHHKRecordsEditContentVC.swift
+0
-0
YHHKRecordsEditPersonnelModel.swift
...tionRecords(在港记录管理)/M/YHHKRecordsEditPersonnelModel.swift
+14
-0
YHHKRecordsPersonnelSelectCell.swift
...ionRecords(在港记录管理)/V/YHHKRecordsPersonnelSelectCell.swift
+2
-1
YHHKRecordsStayingPersonnelCell.swift
...onRecords(在港记录管理)/V/YHHKRecordsStayingPersonnelCell.swift
+5
-4
YHHKRecordsTimeSelectCell.swift
...igrationRecords(在港记录管理)/V/YHHKRecordsTimeSelectCell.swift
+11
-2
YHResignDocumentTipsCell.swift
...cumentManagement(续签文书管理)/V/YHResignDocumentTipsCell.swift
+2
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
db256a5f
...
@@ -594,6 +594,7 @@
...
@@ -594,6 +594,7 @@
04F2436C2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436B2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift */
;
};
04F2436C2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436B2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift */
;
};
04F2436E2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436D2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift */
;
};
04F2436E2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436D2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift */
;
};
04F243702C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436F2C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift */
;
};
04F243702C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F2436F2C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift */
;
};
04F243722C9EC90C00DF2C74
/* YHHKRecordsEditPersonnelModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F243712C9EC90C00DF2C74
/* YHHKRecordsEditPersonnelModel.swift */
;
};
04F316442C3568F000024164
/* YHAboutGalaxyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
;
};
04F316442C3568F000024164
/* YHAboutGalaxyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
;
};
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
;
};
04F4B76B2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
;
};
04F5F86A2C1A95BB004A463C
/* YHOtherServiceViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F8692C1A95BB004A463C
/* YHOtherServiceViewController.swift */
;
};
04F5F86A2C1A95BB004A463C
/* YHOtherServiceViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F5F8692C1A95BB004A463C
/* YHOtherServiceViewController.swift */
;
};
...
@@ -1441,6 +1442,7 @@
...
@@ -1441,6 +1442,7 @@
04F2436B2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentCompleteModel.swift
;
sourceTree
=
"<group>"
;
};
04F2436B2C9D9A3A00DF2C74
/* YHResignDocumentCompleteModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentCompleteModel.swift
;
sourceTree
=
"<group>"
;
};
04F2436D2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentSignatureModel.swift
;
sourceTree
=
"<group>"
;
};
04F2436D2C9E5D8D00DF2C74
/* YHResignDocumentSignatureModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentSignatureModel.swift
;
sourceTree
=
"<group>"
;
};
04F2436F2C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentPreviewModel.swift
;
sourceTree
=
"<group>"
;
};
04F2436F2C9E788200DF2C74
/* YHResignDocumentPreviewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentPreviewModel.swift
;
sourceTree
=
"<group>"
;
};
04F243712C9EC90C00DF2C74
/* YHHKRecordsEditPersonnelModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHKRecordsEditPersonnelModel.swift
;
sourceTree
=
"<group>"
;
};
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutGalaxyViewController.swift
;
sourceTree
=
"<group>"
;
};
04F316432C3568F000024164
/* YHAboutGalaxyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAboutGalaxyViewController.swift
;
sourceTree
=
"<group>"
;
};
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateTemplateSheetView.swift
;
sourceTree
=
"<group>"
;
};
04F4B76A2BAA7E1E00D13284
/* YHCertificateTemplateSheetView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateTemplateSheetView.swift
;
sourceTree
=
"<group>"
;
};
04F5F8692C1A95BB004A463C
/* YHOtherServiceViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherServiceViewController.swift
;
sourceTree
=
"<group>"
;
};
04F5F8692C1A95BB004A463C
/* YHOtherServiceViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHOtherServiceViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -3549,6 +3551,7 @@
...
@@ -3549,6 +3551,7 @@
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
04F243402C9AFBAB00DF2C74
/* YHHKRecordItemDetailType.swift */
,
04F243402C9AFBAB00DF2C74
/* YHHKRecordItemDetailType.swift */
,
04F243712C9EC90C00DF2C74
/* YHHKRecordsEditPersonnelModel.swift */
,
);
);
path
=
M
;
path
=
M
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -5436,6 +5439,7 @@
...
@@ -5436,6 +5439,7 @@
A5ACE9562B4564F7002C94D2
/* YHBouncesContentView.swift in Sources */
,
A5ACE9562B4564F7002C94D2
/* YHBouncesContentView.swift in Sources */
,
A554A5122B99715000EA5973
/* YHConstantArrayData.swift in Sources */
,
A554A5122B99715000EA5973
/* YHConstantArrayData.swift in Sources */
,
045EEE962B9F171A0022A143
/* YHPreviewInfoCertificatePictureItemsView.swift in Sources */
,
045EEE962B9F171A0022A143
/* YHPreviewInfoCertificatePictureItemsView.swift in Sources */
,
04F243722C9EC90C00DF2C74
/* YHHKRecordsEditPersonnelModel.swift in Sources */
,
044EE2362C92916600A2FE3A
/* YHResignCertificateListViewController.swift in Sources */
,
044EE2362C92916600A2FE3A
/* YHResignCertificateListViewController.swift in Sources */
,
04F243412C9AFBAB00DF2C74
/* YHHKRecordItemDetailType.swift in Sources */
,
04F243412C9AFBAB00DF2C74
/* YHHKRecordItemDetailType.swift in Sources */
,
04256DDE2C72DA3B00A37BA4
/* YHCertificateAppointViewController.swift in Sources */
,
04256DDE2C72DA3B00A37BA4
/* YHCertificateAppointViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKImmigrationRecordsVC.swift
View file @
db256a5f
...
@@ -122,7 +122,8 @@ extension YHHKImmigrationRecordsVC {
...
@@ -122,7 +122,8 @@ extension YHHKImmigrationRecordsVC {
}
}
@objc
private
func
clickAddNewButton
()
{
@objc
private
func
clickAddNewButton
()
{
//
let
vc
=
YHHKRecordsEditContentVC
(
pageType
:
.
add
)
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsContentVC.swift
View file @
db256a5f
...
@@ -135,7 +135,7 @@ extension YHHKRecordsContentVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -135,7 +135,7 @@ extension YHHKRecordsContentVC: UITableViewDelegate, UITableViewDataSource {
}
}
let
row
=
sectionArr
[
indexPath
.
row
]
let
row
=
sectionArr
[
indexPath
.
row
]
if
case
.
edit
=
row
{
if
case
.
edit
=
row
{
let
vc
=
YHHKRecordsEditContentVC
()
let
vc
=
YHHKRecordsEditContentVC
(
pageType
:
.
edit
)
navigationController
?
.
pushViewController
(
vc
)
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/C/YHHKRecordsEditContentVC.swift
View file @
db256a5f
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/M/YHHKRecordsEditPersonnelModel.swift
0 → 100644
View file @
db256a5f
//
// YHHKRecordsEditPersonnelModel.swift
// galaxy
//
// Created by alexzzw on 2024/9/21.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
Foundation
struct
YHHKRecordsEditPersonnelModel
{
var
name
:
String
=
""
var
isSelected
:
Bool
=
false
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsPersonnelSelectCell.swift
View file @
db256a5f
...
@@ -89,8 +89,9 @@ class YHHKRecordsPersonnelSelectCell: UICollectionViewCell {
...
@@ -89,8 +89,9 @@ class YHHKRecordsPersonnelSelectCell: UICollectionViewCell {
}
}
}
}
func
setupCellInfo
(
_
text
:
String
?)
{
func
setupCellInfo
(
_
text
:
String
?
,
isSelected
:
Bool
)
{
tagLabel
.
text
=
text
tagLabel
.
text
=
text
self
.
isSelected
=
isSelected
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsStayingPersonnelCell.swift
View file @
db256a5f
...
@@ -15,9 +15,9 @@ class YHHKRecordsStayingPersonnelCell: YHResignDocumentCell {
...
@@ -15,9 +15,9 @@ class YHHKRecordsStayingPersonnelCell: YHResignDocumentCell {
private
static
let
minimumLineSpacing
:
CGFloat
=
12
private
static
let
minimumLineSpacing
:
CGFloat
=
12
private
static
let
minimumInteritemSpacing
:
CGFloat
=
8
private
static
let
minimumInteritemSpacing
:
CGFloat
=
8
var
selectItemAction
:
((
String
?)
->
Void
)?
var
selectItemAction
:
((
YHHKRecordsEditPersonnelModel
?)
->
Void
)?
var
collectionData
:
[
String
]
=
[]
{
var
collectionData
:
[
YHHKRecordsEditPersonnelModel
]
=
[]
{
didSet
{
didSet
{
infoCollectionView
.
reloadData
()
infoCollectionView
.
reloadData
()
}
}
...
@@ -91,6 +91,7 @@ extension YHHKRecordsStayingPersonnelCell {
...
@@ -91,6 +91,7 @@ extension YHHKRecordsStayingPersonnelCell {
subContainerView
.
addSubview
(
asteriskIcon
)
subContainerView
.
addSubview
(
asteriskIcon
)
subContainerView
.
addSubview
(
infoTitleLabel
)
subContainerView
.
addSubview
(
infoTitleLabel
)
subContainerView
.
addSubview
(
bottomLineView
)
subContainerView
.
addSubview
(
bottomLineView
)
subContainerView
.
addSubview
(
infoCollectionView
)
asteriskIcon
.
snp
.
makeConstraints
{
make
in
asteriskIcon
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
...
@@ -129,7 +130,7 @@ extension YHHKRecordsStayingPersonnelCell: UICollectionViewDelegate, UICollectio
...
@@ -129,7 +130,7 @@ extension YHHKRecordsStayingPersonnelCell: UICollectionViewDelegate, UICollectio
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
if
collectionData
.
count
>
indexPath
.
item
,
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHHKRecordsPersonnelSelectCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as?
YHHKRecordsPersonnelSelectCell
{
if
collectionData
.
count
>
indexPath
.
item
,
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHHKRecordsPersonnelSelectCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as?
YHHKRecordsPersonnelSelectCell
{
let
data
=
collectionData
[
indexPath
.
item
]
let
data
=
collectionData
[
indexPath
.
item
]
cell
.
setupCellInfo
(
data
)
cell
.
setupCellInfo
(
data
.
name
,
isSelected
:
data
.
isSelected
)
return
cell
return
cell
}
}
return
UICollectionViewCell
()
return
UICollectionViewCell
()
...
@@ -138,7 +139,7 @@ extension YHHKRecordsStayingPersonnelCell: UICollectionViewDelegate, UICollectio
...
@@ -138,7 +139,7 @@ extension YHHKRecordsStayingPersonnelCell: UICollectionViewDelegate, UICollectio
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
sizeForItemAt
indexPath
:
IndexPath
)
->
CGSize
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
sizeForItemAt
indexPath
:
IndexPath
)
->
CGSize
{
if
collectionData
.
count
>
indexPath
.
item
{
if
collectionData
.
count
>
indexPath
.
item
{
let
data
=
collectionData
[
indexPath
.
item
]
let
data
=
collectionData
[
indexPath
.
item
]
let
attrString
=
NSAttributedString
(
string
:
data
,
attributes
:
[
.
font
:
YHHKRecordsPersonnelSelectCell
.
labelFont
])
let
attrString
=
NSAttributedString
(
string
:
data
.
name
,
attributes
:
[
.
font
:
YHHKRecordsPersonnelSelectCell
.
labelFont
])
var
width
=
attrString
.
yh_width
(
containerHeight
:
YHHKRecordsPersonnelSelectCell
.
cellHeight
)
+
2
*
YHHKRecordsPersonnelSelectCell
.
offsetX
var
width
=
attrString
.
yh_width
(
containerHeight
:
YHHKRecordsPersonnelSelectCell
.
cellHeight
)
+
2
*
YHHKRecordsPersonnelSelectCell
.
offsetX
if
width
<
minWidth
{
if
width
<
minWidth
{
width
=
minWidth
width
=
minWidth
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/HongKongImmigrationRecords(在港记录管理)/V/YHHKRecordsTimeSelectCell.swift
View file @
db256a5f
...
@@ -11,6 +11,8 @@ import UIKit
...
@@ -11,6 +11,8 @@ import UIKit
class
YHHKRecordsTimeSelectCell
:
YHResignDocumentCell
{
class
YHHKRecordsTimeSelectCell
:
YHResignDocumentCell
{
static
let
cellReuseIdentifier
=
"YHHKRecordsTimeSelectCell"
static
let
cellReuseIdentifier
=
"YHHKRecordsTimeSelectCell"
private
let
placeholderColor
=
UIColor
.
mainTextColor30
private
let
selectedColor
=
UIColor
.
mainTextColor
private
lazy
var
asteriskIcon
:
UIImageView
=
{
private
lazy
var
asteriskIcon
:
UIImageView
=
{
let
view
=
UIImageView
()
let
view
=
UIImageView
()
...
@@ -53,9 +55,16 @@ class YHHKRecordsTimeSelectCell: YHResignDocumentCell {
...
@@ -53,9 +55,16 @@ class YHHKRecordsTimeSelectCell: YHResignDocumentCell {
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
func
setupCellInfo
(
title
:
String
?,
detail
:
String
?)
{
func
setupCellInfo
(
title
:
String
?,
detail
:
String
?
,
placeholder
:
String
)
{
infoTitleLabel
.
text
=
title
infoTitleLabel
.
text
=
title
infoDetailLabel
.
text
=
detail
if
let
detail
=
detail
{
infoDetailLabel
.
text
=
detail
infoDetailLabel
.
textColor
=
selectedColor
}
else
{
infoDetailLabel
.
text
=
placeholder
infoDetailLabel
.
textColor
=
placeholderColor
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignDocumentManagement(续签文书管理)/V/YHResignDocumentTipsCell.swift
View file @
db256a5f
...
@@ -49,8 +49,9 @@ class YHResignDocumentTipsCell: YHResignDocumentCell {
...
@@ -49,8 +49,9 @@ class YHResignDocumentTipsCell: YHResignDocumentCell {
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
func
setupCellInfo
(
title
:
String
?,
detail
:
NSAttributedString
?)
{
func
setupCellInfo
(
title
:
String
?,
detail
:
NSAttributedString
?
,
detailColor
:
UIColor
=
.
mainTextColor50
)
{
infoTitleLabel
.
text
=
title
infoTitleLabel
.
text
=
title
infoDetailLabel
.
textColor
=
detailColor
infoDetailLabel
.
attributedText
=
detail
infoDetailLabel
.
attributedText
=
detail
}
}
}
}
...
...
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