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
0f61032c
Commit
0f61032c
authored
Mar 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证书
parent
3714728a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
37 deletions
+55
-37
YHCertificateResourceUploadVC.swift
...yCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
+2
-21
YHUploadContentVC.swift
...vice(服务中心)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
+37
-0
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+16
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+0
-16
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateResourceUploadVC.swift
View file @
0f61032c
...
...
@@ -66,7 +66,8 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
item
=
items
[
indexPath
.
section
]
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificateInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHCertificateInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHCertificateInfoCell
cell
.
updateModel
(
item
)
return
cell
}
...
...
@@ -76,26 +77,6 @@ extension YHCertificateResourceUploadVC: UITableViewDelegate, UITableViewDataSou
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
// if true {
//
// selectUploadFileFromICouldDrive()
// return
// }
if
true
{
YHCertificateUploadSheetView
.
sheetView
.
show
{
[
weak
self
]
actionType
in
guard
let
self
=
self
else
{
return
}
print
(
"%d"
,
actionType
.
rawValue
)
}
return
}
YHCertificateFilterView
.
sheetView
.
show
()
return
print
(
"ZZZ"
)
let
vc
=
YHUploadContentVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHUploadContentVC.swift
View file @
0f61032c
...
...
@@ -11,6 +11,9 @@ import IQKeyboardManagerSwift
class
YHUploadContentVC
:
YHBaseViewController
{
var
orderId
:
Int
?
var
viewModel
:
YHCertificateViewModel
=
YHCertificateViewModel
()
var
items
:[
String
]
=
[
"1"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
,
"2"
]
var
renameInputView
:
YHFileRenameInputView
=
{
...
...
@@ -270,3 +273,37 @@ extension YHUploadContentVC {
}
}
}
extension
YHUploadContentVC
{
func
requestList
()
{
let
params
=
[
"order_id"
:
orderId
??
0
,
"node"
:
"1"
,
"state"
:
"1"
,
"category_id"
:
"20"
,
"status_all"
:
""
,
"keywork"
:
""
,
"template_cate_id"
:
""
,
"supplement_ids"
:
[]]
as
[
String
:
Any
]
// state: 3:待上传 2:已驳回 1:已通过 0:审核中
viewModel
.
getCertificateList
(
params
:
params
)
{
[
weak
self
]
listInfo
,
error
in
guard
let
self
=
self
else
{
return
}
// items.removeAll()
// if let listInfo = listInfo {
// let arr = listInfo.supplementList
// items.append(contentsOf: arr)
// self.tableView.reloadData()
// }
//
// if let errorMsg = error?.errorMsg, errorMsg.count > 0 {
// YHHUD.flash(message: errorMsg, duration:3)
// }
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
0f61032c
...
...
@@ -65,6 +65,22 @@ class YHCertificateInfoCell: UITableViewCell {
}
}
func
updateModel
(
_
model
:
YHSupplementInfo
)
{
if
model
.
templateInfo
.
materialPath
.
isEmpty
{
nameTextView
.
attributed
.
text
=
"""
\(
model
.
name
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
"""
}
else
{
nameTextView
.
attributed
.
text
=
"""
\(
model
.
name
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
))
)
\(
.
view
(
templateLabel
,
.
original
(
.
center
))
)
"""
}
infoLabel
.
text
=
"类型:
\(
model
.
typeName
)
所属人:
\(
model
.
nameExtra
.
userName
)
"
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
0f61032c
...
...
@@ -160,22 +160,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
if
(
indexPath
.
row
>=
items
.
count
)
{
return
}
if
true
{
// YHCertificateUploadFailTipsView.tipsView().show()
// let vc = YHUploadContentVC()
// self.navigationController?.pushViewController(vc)
let
vc
=
YHMaterialListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
if
!
checkLogin
()
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginViewController
())
vc
.
modalPresentationStyle
=
.
custom
...
...
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