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
312276c2
Commit
312276c2
authored
Mar 13, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 证件过滤组件
parent
2aee0be2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
301 additions
and
2 deletions
+301
-2
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-0
YHCertificateResourceUploadVC.swift
...yCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
+10
-0
YHUploadContentVC.swift
...rocess(流程)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
+2
-2
YHCertificateFilterItemCell.swift
.../MyCertificates(我的证书)/V/YHCertificateFilterItemCell.swift
+46
-0
YHCertificateFilterView.swift
...(流程)/MyCertificates(我的证书)/V/YHCertificateFilterView.swift
+235
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
312276c2
...
...
@@ -8,6 +8,8 @@
/* Begin PBXBuildFile section */
041B52872B5657B3007EBCEB
/* IMAppKey.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52862B5657B3007EBCEB
/* IMAppKey.swift */
;
};
044867B42BA1953B00DFAD4A
/* YHCertificateFilterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
;
};
044867B62BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
;
};
045EEE792B9F171A0022A143
/* YHPreviewViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
;
};
045EEE7A2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
;
};
045EEE7B2B9F171A0022A143
/* YHPersonInfoCellModel2.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045EED9D2B9F171A0022A143
/* YHPersonInfoCellModel2.swift */
;
};
...
...
@@ -346,6 +348,8 @@
/* Begin PBXFileReference section */
041B52862B5657B3007EBCEB
/* IMAppKey.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
IMAppKey.swift
;
sourceTree
=
"<group>"
;
};
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterView.swift
;
sourceTree
=
"<group>"
;
};
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateFilterItemCell.swift
;
sourceTree
=
"<group>"
;
};
045EED9A2B9F171A0022A143
/* YHPreviewViewModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewViewModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9C2B9F171A0022A143
/* YHPreviewForOtherInfoModel.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPreviewForOtherInfoModel.swift
;
sourceTree
=
"<group>"
;
};
045EED9D2B9F171A0022A143
/* YHPersonInfoCellModel2.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPersonInfoCellModel2.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1332,9 +1336,11 @@
04A671582B9F18C800C1FB91
/* YHCertificateUploadSheetView.swift */
,
04A671612BA058DE00C1FB91
/* YHCertificateEditSheetView.swift */
,
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
,
044867B32BA1953B00DFAD4A
/* YHCertificateFilterView.swift */
,
04A6715F2BA0280800C1FB91
/* YHFileRenameInputView.swift */
,
04A6715D2B9FFCA700C1FB91
/* YHCertificateNameCell.swift */
,
0480976A2BA15269000B9DCA
/* YHCertificateInfoCell.swift */
,
044867B52BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift */
,
);
path
=
V
;
sourceTree
=
"<group>"
;
...
...
@@ -2064,6 +2070,7 @@
045EEF1A2B9F171A0022A143
/* YHAddressViewController.swift in Sources */
,
A5C382CA2B5E1F4C00C5E65C
/* YHLoginTipsView.swift in Sources */
,
045EEEE92B9F171A0022A143
/* YHFamilyRequestViewModel.swift in Sources */
,
044867B42BA1953B00DFAD4A
/* YHCertificateFilterView.swift in Sources */
,
A5C5B3232B57BF8F00A7C5D1
/* YHDavidCell1.swift in Sources */
,
045EEEDF2B9F171A0022A143
/* YHCollegeSearchBar.swift in Sources */
,
A5C5B2FB2B5535DF00A7C5D1
/* YHHomeBannerView.swift in Sources */
,
...
...
@@ -2207,6 +2214,7 @@
045EEEAA2B9F171A0022A143
/* YHWorkExampleViewController.swift in Sources */
,
A5FD63C12B62616D00D1D9DA
/* YHInformationPerfectModel.swift in Sources */
,
045EEE912B9F171A0022A143
/* YHPreviewInfoCertificatePictureItemView.swift in Sources */
,
044867B62BA1A03800DFAD4A
/* YHCertificateFilterItemCell.swift in Sources */
,
045EEEE62B9F171A0022A143
/* YHMySignatureListViewController.swift in Sources */
,
A5C5B3292B57CCBE00A7C5D1
/* YHDavidCell4.swift in Sources */
,
045EEEE12B9F171A0022A143
/* YHMySignatureListViewModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
View file @
312276c2
...
...
@@ -95,6 +95,16 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
YHCertificateFilterView
.
sheetView
.
show
()
return
print
(
"ZZZ"
)
let
vc
=
YHUploadContentVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
14.0
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
View file @
312276c2
...
...
@@ -43,7 +43,7 @@ class YHUploadContentVC: YHBaseViewController {
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHCertificate
InfoCell
.
self
,
forCellReuseIdentifier
:
YHCertificateInfo
Cell
.
cellReuseIdentifier
)
tableView
.
register
(
YHCertificate
NameCell
.
self
,
forCellReuseIdentifier
:
YHCertificateName
Cell
.
cellReuseIdentifier
)
let
size
=
headView
.
systemLayoutSizeFitting
(
UIView
.
layoutFittingCompressedSize
)
let
rect
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
0
,
height
:
size
.
height
)
headView
.
frame
=
rect
...
...
@@ -146,7 +146,7 @@ extension YHUploadContentVC: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
item
=
items
[
indexPath
.
row
]
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificate
Info
Cell
.
cellReuseIdentifier
,
for
:
indexPath
)
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificate
Name
Cell
.
cellReuseIdentifier
,
for
:
indexPath
)
return
cell
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyCertificates(我的证书)/V/YHCertificateFilterItemCell.swift
0 → 100644
View file @
312276c2
//
// YHCertificateFilterItemCell.swift
// galaxy
//
// Created by edy on 2024/3/13.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHCertificateFilterItemCell
:
UICollectionViewCell
{
static
let
cellReuseIdentifier
=
"YHCertificateFilterItemCell"
lazy
var
contentBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setTitle
(
"证件"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
btn
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
btn
.
layer
.
cornerRadius
=
8.0
btn
.
addTarget
(
self
,
action
:
#selector(
didClickBtn
)
,
for
:
.
touchUpInside
)
return
btn
}()
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
createUI
()
{
contentView
.
addSubview
(
contentBtn
)
contentBtn
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
}
@objc
func
didClickBtn
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MyCertificates(我的证书)/V/YHCertificateFilterView.swift
0 → 100644
View file @
312276c2
//
// YHCertificateFilterView.swift
// galaxy
//
// Created by edy on 2024/3/13.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHCertificateFilterView
:
UIView
{
static
let
sheetView
=
YHCertificateFilterView
(
frame
:
UIScreen
.
main
.
bounds
)
var
items
:[
String
]
=
[
"adfa"
,
"adfas"
,
"adfadfasf"
]
lazy
var
collectionView
:
UICollectionView
=
{
// 设置布局方向
let
flowLayout
=
UICollectionViewFlowLayout
()
let
margin
=
18.0
let
gap
=
12.0
flowLayout
.
minimumInteritemSpacing
=
12.0
flowLayout
.
minimumLineSpacing
=
12.0
flowLayout
.
scrollDirection
=
.
vertical
collectionView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
collectionView
.
contentInset
=
UIEdgeInsets
(
top
:
0
,
left
:
margin
,
bottom
:
0
,
right
:
margin
)
collectionView
.
backgroundColor
=
UIColor
.
white
collectionView
.
register
(
YHCertificateFilterItemCell
.
self
,
forCellWithReuseIdentifier
:
YHCertificateFilterItemCell
.
cellReuseIdentifier
)
collectionView
.
delegate
=
self
collectionView
.
dataSource
=
self
return
collectionView
}()
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
view
.
backgroundColor
=
UIColor
(
hex
:
0x0F1214
,
alpha
:
0.5
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
dismiss
)
)
view
.
addGestureRecognizer
(
tap
)
return
view
}()
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
return
view
}()
lazy
var
topLine
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
lazy
var
bottomLine
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
separatorColor
return
view
}()
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textAlignment
=
.
center
label
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
17
)
label
.
text
=
"筛选资料"
return
label
}()
lazy
var
closeBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setImage
(
UIImage
(
named
:
"my_cer_sheet_close"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
dismiss
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
bottomView
:
UIView
=
{
let
view
=
UIView
()
return
view
}()
lazy
var
confirmBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setTitle
(
"确定"
.
local
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
hexString
:
"#4388FF"
)
btn
.
layer
.
cornerRadius
=
8.0
btn
.
addTarget
(
self
,
action
:
#selector(
didClickConfirmBtn
)
,
for
:
.
touchUpInside
)
return
btn
}()
lazy
var
resetBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setTitle
(
"重置"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
btn
.
setTitleColor
(
UIColor
.
mainTextColor
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
hexString
:
"#F8F9FB"
)
btn
.
layer
.
cornerRadius
=
8.0
btn
.
addTarget
(
self
,
action
:
#selector(
didClickResetBtn
)
,
for
:
.
touchUpInside
)
return
btn
}()
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
createUI
()
}
func
createUI
()
{
self
.
addSubview
(
blackMaskView
)
self
.
addSubview
(
whiteContentView
)
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
topLeft
.
rawValue
|
UIRectCorner
.
topRight
.
rawValue
)
let
path
=
UIBezierPath
(
roundedRect
:
bounds
,
byRoundingCorners
:
corner
,
cornerRadii
:
CGSizeMake
(
16.0
,
16.0
));
let
layer
=
CAShapeLayer
();
layer
.
frame
=
whiteContentView
.
bounds
;
layer
.
path
=
path
.
cgPath
;
whiteContentView
.
layer
.
mask
=
layer
;
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
closeBtn
)
whiteContentView
.
addSubview
(
topLine
)
whiteContentView
.
addSubview
(
bottomView
)
whiteContentView
.
addSubview
(
collectionView
)
bottomView
.
addSubview
(
bottomLine
)
bottomView
.
addSubview
(
resetBtn
)
bottomView
.
addSubview
(
confirmBtn
)
blackMaskView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
height
.
equalTo
(
450
+
k_Height_safeAreaInsetsBottom
())
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
52
)
make
.
left
.
right
.
top
.
equalToSuperview
()
}
closeBtn
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
titleLabel
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
width
.
height
.
equalTo
(
24
)
}
topLine
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
1
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
make
.
left
.
equalToSuperview
()
.
offset
(
21
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
21
)
}
collectionView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
topLine
.
snp
.
bottom
)
make
.
bottom
.
equalTo
(
bottomView
.
snp
.
top
)
}
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
68
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
k_Height_safeAreaInsetsBottom
())
}
bottomLine
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
1
)
make
.
top
.
left
.
right
.
equalToSuperview
()
}
resetBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
height
.
equalTo
(
44
)
make
.
width
.
equalTo
(
86
)
make
.
centerY
.
equalToSuperview
()
}
confirmBtn
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalToSuperview
()
make
.
left
.
equalTo
(
resetBtn
.
snp
.
right
)
.
offset
(
10
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
height
.
equalTo
(
44
)
make
.
centerY
.
equalToSuperview
()
}
}
}
extension
YHCertificateFilterView
{
func
show
()
{
UIApplication
.
shared
.
yhKeyWindow
()?
.
addSubview
(
self
)
}
@objc
func
dismiss
()
{
self
.
removeFromSuperview
()
}
@objc
func
didClickConfirmBtn
()
{
}
@objc
func
didClickResetBtn
()
{
}
}
extension
YHCertificateFilterView
:
UICollectionViewDataSource
,
UICollectionViewDelegate
,
UICollectionViewDelegateFlowLayout
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
return
items
.
count
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
sizeForItemAt
indexPath
:
IndexPath
)
->
CGSize
{
return
CGSize
(
width
:
74
,
height
:
36
)
}
// - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section {
//
// }
// func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection:
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
YHCertificateFilterItemCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHCertificateFilterItemCell
return
cell
}
}
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