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
031c54bf
Commit
031c54bf
authored
Aug 28, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 旅行证件准备
parent
c103ce70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
204 additions
and
1 deletion
+204
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHMyTestViewController.swift
...mentsPreparation(6 旅行证件准备)/C/YHMyTestViewController.swift
+13
-1
YHTravelCertificateUploadCell.swift
...eparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
+187
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
031c54bf
...
@@ -389,6 +389,7 @@
...
@@ -389,6 +389,7 @@
048058312C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
;
};
048058312C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
;
};
048058332C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
;
};
048058332C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
;
};
048058352C7DC7AC00502CAA
/* YHMyTestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058342C7DC7AC00502CAA
/* YHMyTestViewController.swift */
;
};
048058352C7DC7AC00502CAA
/* YHMyTestViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058342C7DC7AC00502CAA
/* YHMyTestViewController.swift */
;
};
048058372C7F03B500502CAA
/* YHTravelCertificateUploadCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048058362C7F03B500502CAA
/* YHTravelCertificateUploadCell.swift */
;
};
0480976B2BA15269000B9DCA
/* YHCertificateInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976A2BA15269000B9DCA
/* YHCertificateInfoCell.swift */
;
};
0480976B2BA15269000B9DCA
/* YHCertificateInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976A2BA15269000B9DCA
/* YHCertificateInfoCell.swift */
;
};
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
;
};
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
;
};
048097712BA18D66000B9DCA
/* YHCertificateSearchBar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
;
};
048097712BA18D66000B9DCA
/* YHCertificateSearchBar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
;
};
...
@@ -1160,6 +1161,7 @@
...
@@ -1160,6 +1161,7 @@
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTravelCertificateTipsView.swift
;
sourceTree
=
"<group>"
;
};
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTravelCertificateTipsView.swift
;
sourceTree
=
"<group>"
;
};
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTravelCertificateTipsCell.swift
;
sourceTree
=
"<group>"
;
};
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTravelCertificateTipsCell.swift
;
sourceTree
=
"<group>"
;
};
048058342C7DC7AC00502CAA
/* YHMyTestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyTestViewController.swift
;
sourceTree
=
"<group>"
;
};
048058342C7DC7AC00502CAA
/* YHMyTestViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyTestViewController.swift
;
sourceTree
=
"<group>"
;
};
048058362C7F03B500502CAA
/* YHTravelCertificateUploadCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTravelCertificateUploadCell.swift
;
sourceTree
=
"<group>"
;
};
0480976A2BA15269000B9DCA
/* YHCertificateInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateInfoCell.swift
;
sourceTree
=
"<group>"
;
};
0480976A2BA15269000B9DCA
/* YHCertificateInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateInfoCell.swift
;
sourceTree
=
"<group>"
;
};
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateListVC.swift
;
sourceTree
=
"<group>"
;
};
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateListVC.swift
;
sourceTree
=
"<group>"
;
};
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateSearchBar.swift
;
sourceTree
=
"<group>"
;
};
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateSearchBar.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -3499,6 +3501,7 @@
...
@@ -3499,6 +3501,7 @@
A598E9DB2C7CA52300F84739
/* YHTravelDocsPreparationTipsCell.swift */
,
A598E9DB2C7CA52300F84739
/* YHTravelDocsPreparationTipsCell.swift */
,
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
,
048058302C7DBDC900502CAA
/* YHTravelCertificateTipsView.swift */
,
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
,
048058322C7DC0CF00502CAA
/* YHTravelCertificateTipsCell.swift */
,
048058362C7F03B500502CAA
/* YHTravelCertificateUploadCell.swift */
,
);
);
path
=
V
;
path
=
V
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -4863,6 +4866,7 @@
...
@@ -4863,6 +4866,7 @@
A58037212BAD7B2A0031C312
/* YHMySchemeModel.swift in Sources */
,
A58037212BAD7B2A0031C312
/* YHMySchemeModel.swift in Sources */
,
0493B3DE2BA80C2300AF9393
/* YHCertificateFilterButton.swift in Sources */
,
0493B3DE2BA80C2300AF9393
/* YHCertificateFilterButton.swift in Sources */
,
04FA8B2B2C06F59D00ABE43F
/* YHAppleLoginManager.swift in Sources */
,
04FA8B2B2C06F59D00ABE43F
/* YHAppleLoginManager.swift in Sources */
,
048058372C7F03B500502CAA
/* YHTravelCertificateUploadCell.swift in Sources */
,
A567E5932BD7643D00D5D5A0
/* YHHomePageViewModel.swift in Sources */
,
A567E5932BD7643D00D5D5A0
/* YHHomePageViewModel.swift in Sources */
,
045EEE822B9F171A0022A143
/* YHPersonInfoIdentityCardModel.swift in Sources */
,
045EEE822B9F171A0022A143
/* YHPersonInfoIdentityCardModel.swift in Sources */
,
045EEE952B9F171A0022A143
/* YHPreviewInfoCertificateInformationItemsView.swift in Sources */
,
045EEE952B9F171A0022A143
/* YHPreviewInfoCertificateInformationItemsView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHMyTestViewController.swift
View file @
031c54bf
...
@@ -21,6 +21,9 @@ class YHMyTestViewController: YHBaseViewController {
...
@@ -21,6 +21,9 @@ class YHMyTestViewController: YHBaseViewController {
[
self
.
getTextWithType
(
type
:
3
),
[
self
.
getTextWithType
(
type
:
3
),
self
.
getTextWithType
(
type
:
4
)],
self
.
getTextWithType
(
type
:
4
)],
[
self
.
getTextWithType
(
type
:
3
),
self
.
getTextWithType
(
type
:
4
)],
]
]
}()
}()
...
@@ -37,6 +40,8 @@ class YHMyTestViewController: YHBaseViewController {
...
@@ -37,6 +40,8 @@ class YHMyTestViewController: YHBaseViewController {
tableView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F9FB
)
tableView
.
backgroundColor
=
UIColor
(
hex
:
0xF8F9FB
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHTravelCertificateTipsCell
.
self
,
forCellReuseIdentifier
:
YHTravelCertificateTipsCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHTravelCertificateTipsCell
.
self
,
forCellReuseIdentifier
:
YHTravelCertificateTipsCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHTravelCertificateUploadCell
.
self
,
forCellReuseIdentifier
:
YHTravelCertificateUploadCell
.
cellReuseIdentifier
)
return
tableView
return
tableView
}()
}()
...
@@ -92,7 +97,14 @@ extension YHMyTestViewController: UITableViewDelegate, UITableViewDataSource {
...
@@ -92,7 +97,14 @@ extension YHMyTestViewController: UITableViewDelegate, UITableViewDataSource {
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHTravelCertificateUploadCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHTravelCertificateUploadCell
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHTravelCertificateTipsCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHTravelCertificateTipsCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHTravelCertificateTipsCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHTravelCertificateTipsCell
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
sectionItems
.
count
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
sectionItems
.
count
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
0 → 100644
View file @
031c54bf
//
// YHTravelCertificateUploadCell.swift
// galaxy
//
// Created by edy on 2024/8/28.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHTravelCertificateUploadCell
:
UITableViewCell
{
static
let
cellReuseIdentifier
=
"YHTravelCertificateUploadCell"
lazy
var
whiteConentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
6.0
view
.
clipsToBounds
=
true
return
view
}()
lazy
var
titleView
:
UITextView
=
{
let
titleView
=
UITextView
()
titleView
.
textColor
=
UIColor
.
mainTextColor
titleView
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
titleView
.
isScrollEnabled
=
false
titleView
.
isEditable
=
false
titleView
.
isSelectable
=
false
return
titleView
}()
lazy
var
templateButton
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
48
,
height
:
16
)
btn
.
setTitle
(
"资料模版"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
.
PFSC_M
(
ofSize
:
10
)
btn
.
setTitleColor
(
.
brandMainColor
,
for
:
.
normal
)
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
clipsToBounds
=
true
btn
.
backgroundColor
=
.
brandMainColor8
btn
.
addTarget
(
self
,
action
:
#selector(
didTemplateBtnClicked
)
,
for
:
.
touchUpInside
)
btn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
return
btn
}()
lazy
var
lineView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
init
(
hex
:
0xF0F0F0
)
return
view
}()
lazy
var
rejectReasonLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
label
.
textColor
=
UIColor
.
failColor
label
.
text
=
"被驳回原因:你的证件不合格不合格不合格不合格"
return
label
}()
lazy
var
certificateFrontView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
red
return
view
}()
lazy
var
certificateBackView
:
YHCardUploadView
=
{
let
view
=
YHCardUploadView
(
frame
:
.
zero
)
view
.
backgroundColor
=
.
green
return
view
}()
lazy
var
selectPanelContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
yellow
return
view
}()
@objc
func
didTemplateBtnClicked
()
{
}
func
updateArr
(
_
arr
:
[
YHItemModel
])
{
selectPanelContentView
.
removeSubviews
()
var
lastItemView
:
YHItemView
?
=
nil
for
(
index
,
item
)
in
arr
.
enumerated
()
{
let
itemView
=
YHItemView
(
frame
:
.
zero
)
itemView
.
dataSource
=
item
selectPanelContentView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
}
}
}
func
updateModel
()
{
var
title
:
ASAttributedString
=
.
init
(
string
:
"港澳通行证 (逗留D签注)"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
mustTag
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
failColor
))
let
template
:
ASAttributedString
=
"
\(
.
view
(
templateButton
,
.
original
(
.
center
))
)
"
var
isMust
=
true
var
isShowTemplate
=
true
if
isMust
{
title
=
mustTag
+
title
}
if
isShowTemplate
{
title
+=
template
}
titleView
.
attributed
.
text
=
title
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
setupUI
()
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
contentView
.
addSubview
(
whiteConentView
)
whiteConentView
.
addSubview
(
titleView
)
whiteConentView
.
addSubview
(
lineView
)
whiteConentView
.
addSubview
(
rejectReasonLabel
)
whiteConentView
.
addSubview
(
certificateFrontView
)
whiteConentView
.
addSubview
(
certificateBackView
)
whiteConentView
.
addSubview
(
selectPanelContentView
)
updateModel
()
whiteConentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
0
)
}
titleView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
16
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
}
lineView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
titleView
.
snp
.
bottom
)
.
offset
(
12
)
make
.
height
.
equalTo
(
0.5
)
}
rejectReasonLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
lineView
.
snp
.
bottom
)
.
offset
(
18
)
}
certificateFrontView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
certificateBackView
.
snp
.
left
)
.
offset
(
-
10
)
make
.
width
.
equalTo
(
certificateBackView
.
snp
.
width
)
make
.
top
.
equalTo
(
rejectReasonLabel
.
snp
.
bottom
)
.
offset
(
18
)
make
.
height
.
equalTo
(
122
)
}
certificateBackView
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
certificateFrontView
)
make
.
height
.
equalTo
(
122
)
}
selectPanelContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
top
.
equalTo
(
certificateFrontView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
bottom
.
equalTo
(
0
)
make
.
height
.
equalTo
(
52.0
*
3.0
)
}
}
}
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