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
0b5b04b9
Commit
0b5b04b9
authored
Mar 23, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件
parent
6f7fee28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+8
-1
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+4
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
0b5b04b9
...
@@ -114,7 +114,12 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
...
@@ -114,7 +114,12 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
}
}
@objc
func
didClickUploadBtn
()
{
@objc
func
didClickUploadBtn
()
{
let
sheetView
=
YHCertificateUploadSheetView
.
sheetView
if
items
.
count
>=
100
{
YHHUD
.
flash
(
message
:
"最多上传100张图片或文件"
)
return
}
let
sheetView
=
YHCertificateUploadSheetView
.
sheetView
()
sheetView
.
templateInfo
=
supplementInfo
.
templateInfo
sheetView
.
templateInfo
=
supplementInfo
.
templateInfo
sheetView
.
uploadFilesBlock
=
{
sheetView
.
uploadFilesBlock
=
{
[
weak
self
]
fileUrl
in
[
weak
self
]
fileUrl
in
...
@@ -483,6 +488,8 @@ extension YHCertificateUploadContentListVC {
...
@@ -483,6 +488,8 @@ extension YHCertificateUploadContentListVC {
items
.
append
(
contentsOf
:
item
.
contentUrl
)
items
.
append
(
contentsOf
:
item
.
contentUrl
)
}
}
}
}
self
.
uploadBtn
.
alpha
=
(
items
.
count
>=
100
?
0.5
:
1.0
)
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
0b5b04b9
...
@@ -31,7 +31,10 @@ enum YHCertificateUploadType: Int {
...
@@ -31,7 +31,10 @@ enum YHCertificateUploadType: Int {
class
YHCertificateUploadSheetView
:
UIView
{
class
YHCertificateUploadSheetView
:
UIView
{
static
let
sheetView
=
YHCertificateUploadSheetView
(
frame
:
UIScreen
.
main
.
bounds
)
static
func
sheetView
()
->
YHCertificateUploadSheetView
{
let
view
=
YHCertificateUploadSheetView
(
frame
:
UIScreen
.
main
.
bounds
)
return
view
}
func
calculateHeight
()
->
CGFloat
{
func
calculateHeight
()
->
CGFloat
{
guard
let
templateInfo
=
templateInfo
else
{
return
0.0
}
guard
let
templateInfo
=
templateInfo
else
{
return
0.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