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
3b76634f
Commit
3b76634f
authored
Aug 07, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务中心卡片逻辑
parent
46c75308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
YHServiceOrderProgressTableViewCell.swift
...Service(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
+66
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
View file @
3b76634f
...
...
@@ -173,6 +173,72 @@ extension YHServiceOrderProgressTableViewCell {
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
if
model
.
type
==
11
{
titleLabel
.
text
=
"港府获批结果"
messageLabel
.
text
=
"正在等待原则批结果~"
buttonLabel
.
text
=
"去查看"
buttonLabel
.
backgroundColor
=
UIColor
.
brandMainColor
messageLabel
.
textColor
=
UIColor
.
yhGreyColor50
progress
.
changeColor
(
UIColor
.
brandMainColor
)
progressImageView
.
image
=
UIImage
(
named
:
"service_progress_normal"
)
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
}
if
model
.
type
==
12
{
titleLabel
.
text
=
"港府获批结果"
messageLabel
.
text
=
"正在进行原则批补件~"
buttonLabel
.
text
=
"去查看"
buttonLabel
.
backgroundColor
=
UIColor
.
brandMainColor
messageLabel
.
textColor
=
UIColor
.
yhGreyColor50
progress
.
changeColor
(
UIColor
.
brandMainColor
)
progressImageView
.
image
=
UIImage
(
named
:
"service_progress_normal"
)
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
}
if
model
.
type
==
13
{
titleLabel
.
text
=
"港府获批结果"
messageLabel
.
text
=
"恭喜您,原则批已获批~"
buttonLabel
.
text
=
"去查看"
buttonLabel
.
backgroundColor
=
UIColor
.
brandMainColor
messageLabel
.
textColor
=
UIColor
.
yhGreyColor50
progress
.
changeColor
(
UIColor
.
brandMainColor
)
progressImageView
.
image
=
UIImage
(
named
:
"service_progress_start"
)
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
}
if
model
.
type
==
14
{
titleLabel
.
text
=
"港府获批结果"
messageLabel
.
text
=
"很遗憾,您未获批准~"
buttonLabel
.
text
=
"去查看"
buttonLabel
.
backgroundColor
=
UIColor
(
hex
:
0x55cba0
)
messageLabel
.
textColor
=
UIColor
.
yhGreyColor50
progress
.
changeColor
(
UIColor
(
hex
:
0x55cba0
))
progressImageView
.
image
=
UIImage
(
named
:
"service_progress_end"
)
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
}
if
model
.
type
==
15
{
titleLabel
.
text
=
"港府获批结果"
messageLabel
.
text
=
"恭喜您,正式批已获批~"
buttonLabel
.
text
=
"去查看"
buttonLabel
.
backgroundColor
=
UIColor
(
hex
:
0x55cba0
)
messageLabel
.
textColor
=
UIColor
.
yhGreyColor50
progress
.
changeColor
(
UIColor
(
hex
:
0x55cba0
))
progressImageView
.
image
=
UIImage
(
named
:
"service_progress_end"
)
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"
\(
model
.
percentage
)
"
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
24
)
!
),
.
foreground
(
UIColor
.
mainTextColor
))
let
bb
:
ASAttributedString
=
.
init
(
"%"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
10
)),
.
foreground
(
UIColor
.
mainTextColor
.
withAlphaComponent
(
0.3
)))
progressLabel
.
attributed
.
text
=
b
+
bb
}
}
if
model
.
status
==
3
{
titleLabel
.
textColor
=
UIColor
.
mainTextColor
...
...
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