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
3ad19e16
Commit
3ad19e16
authored
May 22, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除服务中心多余代码
parent
e0deb693
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+0
-20
YHProgressView.swift
...s/Modules/IntelligentService(服务中心)/V/YHProgressView.swift
+0
-5
YHServiceOrderProgressTableViewCell.swift
...Service(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterMainViewController.swift
View file @
3ad19e16
...
...
@@ -239,27 +239,7 @@ extension YHServiceCenterMainViewController {
vc
.
orderID
=
orderId
vc
.
mobile
=
mobile
vc
.
loadData
()
vc
.
block
=
{[
weak
self
]
type
,
count
in
guard
let
self
=
self
else
{
return
}
if
type
==
0
{
arrItemTitles
[
0
]
=
"全部(
\(
count
)
)"
}
else
if
type
==
2
{
arrItemTitles
[
1
]
=
"进行中(
\(
count
)
)"
}
else
if
type
==
1
{
arrItemTitles
[
2
]
=
"待开始(
\(
count
)
)"
}
else
if
type
==
3
{
arrItemTitles
[
3
]
=
"已完成(
\(
count
)
)"
}
self
.
updata
()
}
}
segmentedView
.
dataSource
=
segmentedDataSource
segmentedView
.
reloadData
()
getStep
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHProgressView.swift
View file @
3ad19e16
...
...
@@ -54,11 +54,6 @@ class YHProgressView: UIView {
}
func
setProgress
(
_
progress
:
Float
,
animated
:
Bool
)
{
let
animation
=
CABasicAnimation
(
keyPath
:
"strokeEnd"
)
animation
.
fromValue
=
progressLayer
.
strokeEnd
animation
.
toValue
=
progress
animation
.
duration
=
animated
?
1.0
:
0
progressLayer
.
strokeEnd
=
CGFloat
(
progress
)
progressLayer
.
add
(
animation
,
forKey
:
"progressAnimation"
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceOrderProgressTableViewCell.swift
View file @
3ad19e16
...
...
@@ -255,6 +255,7 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel
.
attributed
.
text
=
b
+
bb
}
if
model
.
percentage
==
0
{
progress
.
setProgress
(
0
,
animated
:
false
)
progress
.
isHidden
=
true
}
else
{
progress
.
setProgress
(
Float
(
CGFloat
(
model
.
percentage
))
/
100.0
,
animated
:
false
)
...
...
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