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
17a3af89
Commit
17a3af89
authored
Mar 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证书
parent
d865a790
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
+21
-7
YHCertificateListVC.swift
...ce(服务中心)/MyCertificates(我的证书)/C/YHCertificateListVC.swift
+3
-0
YHCertificateSearchViewController.swift
...tificates(我的证书)/C/YHCertificateSearchViewController.swift
+2
-1
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+4
-3
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+3
-2
YHCertificateViewModel.swift
...务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
+9
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateListVC.swift
View file @
17a3af89
...
@@ -274,10 +274,13 @@ extension YHCertificateListVC {
...
@@ -274,10 +274,13 @@ extension YHCertificateListVC {
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
print
(
"
\(
size
)
"
)
print
(
"
\(
size
)
"
)
// 先OSS上传得到URL
// 先OSS上传得到URL
YHHUD
.
show
(
.
progress
(
message
:
"上传中..."
))
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
[
weak
self
]
successUrl
,
error
in
[
weak
self
]
successUrl
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
// 再调用业务接口
// 再调用业务接口
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
let
fileName
=
successUrl
.
lastPathComponent
let
fileName
=
successUrl
.
lastPathComponent
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateSearchViewController.swift
View file @
17a3af89
...
@@ -287,10 +287,11 @@ extension YHCertificateSearchViewController {
...
@@ -287,10 +287,11 @@ extension YHCertificateSearchViewController {
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
print
(
"
\(
size
)
"
)
print
(
"
\(
size
)
"
)
// 先OSS上传得到URL
// 先OSS上传得到URL
YHHUD
.
show
(
.
progress
(
message
:
"上传中..."
))
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
[
weak
self
]
successUrl
,
error
in
[
weak
self
]
successUrl
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
// 再调用业务接口
// 再调用业务接口
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
let
fileName
=
successUrl
.
lastPathComponent
let
fileName
=
successUrl
.
lastPathComponent
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
17a3af89
...
@@ -116,8 +116,8 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
...
@@ -116,8 +116,8 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
@objc
func
didClickUploadBtn
()
{
@objc
func
didClickUploadBtn
()
{
if
items
.
count
>=
100
{
if
items
.
count
>=
99
{
YHHUD
.
flash
(
message
:
"
最多上传100
张图片或文件"
)
YHHUD
.
flash
(
message
:
"
已达上限,最多上传99
张图片或文件"
)
return
return
}
}
let
sheetView
=
YHCertificateUploadSheetView
.
sheetView
()
let
sheetView
=
YHCertificateUploadSheetView
.
sheetView
()
...
@@ -544,10 +544,11 @@ extension YHCertificateUploadContentListVC {
...
@@ -544,10 +544,11 @@ extension YHCertificateUploadContentListVC {
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
let
size
=
String
(
format
:
"%.2fM"
,
Double
(
fileData
.
count
)
/
(
1024.0
*
1024.0
))
print
(
"
\(
size
)
"
)
print
(
"
\(
size
)
"
)
// 先OSS上传得到URL
// 先OSS上传得到URL
YHHUD
.
show
(
.
progress
(
message
:
"上传中..."
))
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
self
.
viewModel
.
uploadFile
(
fileUrl
.
absoluteString
)
{
[
weak
self
]
successUrl
,
error
in
[
weak
self
]
successUrl
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
// 再调用业务接口
// 再调用业务接口
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
let
fileName
=
successUrl
.
lastPathComponent
let
fileName
=
successUrl
.
lastPathComponent
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
17a3af89
...
@@ -63,8 +63,8 @@ class YHCertificateInfoCell: UITableViewCell {
...
@@ -63,8 +63,8 @@ class YHCertificateInfoCell: UITableViewCell {
if
!
model
.
typeName
.
isEmpty
{
if
!
model
.
typeName
.
isEmpty
{
typeStr
=
model
.
typeName
typeStr
=
model
.
typeName
}
}
if
!
model
.
nameExtra
.
userName
.
isEmpty
{
if
!
model
.
nameExtra
.
applicant
.
isEmpty
{
ownerStr
=
model
.
nameExtra
.
userName
ownerStr
=
model
.
nameExtra
.
applicant
}
}
infoLabel
.
text
=
"类型:
\(
typeStr
)
所属人:
\(
ownerStr
)
"
infoLabel
.
text
=
"类型:
\(
typeStr
)
所属人:
\(
ownerStr
)
"
...
@@ -124,6 +124,7 @@ class YHCertificateInfoCell: UITableViewCell {
...
@@ -124,6 +124,7 @@ class YHCertificateInfoCell: UITableViewCell {
templateButton
.
clipsToBounds
=
true
templateButton
.
clipsToBounds
=
true
templateButton
.
backgroundColor
=
.
brandMainColor8
templateButton
.
backgroundColor
=
.
brandMainColor8
templateButton
.
addTarget
(
self
,
action
:
#selector(
didTemplateBtnClicked
)
,
for
:
.
touchUpInside
)
templateButton
.
addTarget
(
self
,
action
:
#selector(
didTemplateBtnClicked
)
,
for
:
.
touchUpInside
)
templateButton
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
20
,
left
:
20
,
bottom
:
20
,
right
:
20
)
nameTextView
.
attributed
.
text
=
"""
nameTextView
.
attributed
.
text
=
"""
\(
"资料名称"
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
\(
.
view
(
templateButton
,
.
original
(
.
center
))
)
)
\(
"资料名称"
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
\(
.
view
(
templateButton
,
.
original
(
.
center
))
)
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
View file @
17a3af89
...
@@ -225,7 +225,15 @@ class YHCertificateViewModel: YHBaseViewModel {
...
@@ -225,7 +225,15 @@ class YHCertificateViewModel: YHBaseViewModel {
"operation"
:
operation
,
"operation"
:
operation
,
]
]
YHHUD
.
show
(
.
progress
(
message
:
"数据加载中..."
))
var
msg
=
""
if
operation
==
"add"
{
msg
=
"上传中"
}
else
if
operation
==
"del"
{
msg
=
"删除中"
}
else
if
operation
==
"rename"
{
msg
=
"重命名中"
}
YHHUD
.
show
(
.
progress
(
message
:
msg
))
self
.
updateCertificates
(
params
:
params
)
{
self
.
updateCertificates
(
params
:
params
)
{
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
...
...
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