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
af29f083
Commit
af29f083
authored
Mar 22, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件清单 接口
parent
59c46a9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
16 deletions
+40
-16
YHFileListViewController.swift
...ice(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
+17
-0
YHFileListHeaerView.swift
...tService(服务中心)/FileList(文件清单)/V/YHFileListHeaerView.swift
+23
-16
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHFileListViewController.swift
View file @
af29f083
...
@@ -50,6 +50,7 @@ class YHFileListViewController: YHBaseViewController {
...
@@ -50,6 +50,7 @@ class YHFileListViewController: YHBaseViewController {
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
loadData
()
loadData
()
loadData2
()
}
}
...
@@ -85,6 +86,22 @@ extension YHFileListViewController {
...
@@ -85,6 +86,22 @@ extension YHFileListViewController {
}
}
}
}
func
loadData2
()
{
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
{
let
param
=
[
"order_id"
:
orderID
,
"node"
:
"1"
,
"state"
:
"1"
]
certificateReqVM
.
getCertificateStatisticData
(
params
:
param
)
{
success
,
error
in
if
success
==
true
{
self
.
headView
.
dataModel
=
self
.
certificateReqVM
.
certificateEntryModel
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
}
}
}
else
{
printLog
(
"error : orderID 为空"
)
}
}
func
setupUI
()
{
func
setupUI
()
{
gk_navTitle
=
"文件清单"
gk_navTitle
=
"文件清单"
gk_navBarAlpha
=
1.0
gk_navBarAlpha
=
1.0
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/V/YHFileListHeaerView.swift
View file @
af29f083
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
import
UIKit
import
UIKit
import
AttributedString
class
YHFileListHeaerView
:
UIView
{
class
YHFileListHeaerView
:
UIView
{
static
let
viewH
:
CGFloat
=
312
static
let
viewH
:
CGFloat
=
312
...
@@ -46,7 +47,7 @@ class YHFileListHeaerView: UIView {
...
@@ -46,7 +47,7 @@ class YHFileListHeaerView: UIView {
//待提交
//待提交
private
lazy
var
waitSubmitLable
:
UILabel
=
{
private
lazy
var
waitSubmitLable
:
UILabel
=
{
let
imagV
=
UILabel
()
let
imagV
=
UILabel
()
imagV
.
text
=
"您有
-
项待提交"
imagV
.
text
=
"您有 项待提交"
imagV
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
imagV
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
imagV
.
textColor
=
UIColor
.
white
imagV
.
textColor
=
UIColor
.
white
return
imagV
return
imagV
...
@@ -55,26 +56,17 @@ class YHFileListHeaerView: UIView {
...
@@ -55,26 +56,17 @@ class YHFileListHeaerView: UIView {
//重传
//重传
private
lazy
var
reuploadLable
:
UILabel
=
{
private
lazy
var
reuploadLable
:
UILabel
=
{
let
imagV
=
UILabel
()
let
imagV
=
UILabel
()
imagV
.
text
=
"您有
-
项需重传"
imagV
.
text
=
"您有
项需重传"
imagV
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
imagV
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
imagV
.
textColor
=
UIColor
.
white
imagV
.
textColor
=
UIColor
.
white
return
imagV
return
imagV
}()
}()
var
dataModel
:
YHCertificateEntryModel
?
{
didSet
{
updateUI
()
}
}
}
}
...
@@ -171,4 +163,19 @@ private extension YHFileListHeaerView {
...
@@ -171,4 +163,19 @@ private extension YHFileListHeaerView {
}
}
}
}
func
updateUI
()
{
guard
let
dataModel
=
dataModel
else
{
return
}
let
a
:
ASAttributedString
=
.
init
(
"您有 "
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
white
))
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
String
(
dataModel
.
to_be_submit_num
)),
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
warnColor
))
let
aaa
:
ASAttributedString
=
.
init
(
" 项待提交"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
white
))
waitSubmitLable
.
attributed
.
text
=
a
+
aa
+
aaa
let
bb
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
String
(
dataModel
.
reject_num
)),
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
15
)),
.
foreground
(
UIColor
.
warnColor
))
let
bbb
:
ASAttributedString
=
.
init
(
" 项需重传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
white
))
reuploadLable
.
attributed
.
text
=
a
+
bb
+
bbb
}
}
}
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