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
65c02626
Commit
65c02626
authored
Nov 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改几处bug
parent
9389de9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
YHOtherSingleChoiceItemView.swift
...therInformation(其他信息)/V/YHOtherSingleChoiceItemView.swift
+27
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/OtherInformation(其他信息)/V/YHOtherSingleChoiceItemView.swift
View file @
65c02626
...
...
@@ -7,6 +7,7 @@
//
import
UIKit
import
AttributedString
class
YHOtherSingleChoiceItemView
:
UIView
{
override
init
(
frame
:
CGRect
)
{
...
...
@@ -101,6 +102,32 @@ extension YHOtherSingleChoiceItemView {
isSelected
=
model
.
select
setViewSelected
()
if
!
model
.
subname
.
isEmpty
,
!
model
.
highlight
.
isEmpty
{
if
#available(iOS 16.0, *)
{
let
arr
=
model
.
subname
.
split
(
separator
:
model
.
highlight
)
if
arr
.
count
==
2
{
let
aa
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
String
(
arr
[
0
])),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
init
(
hex
:
0x8993A2
)))
let
bb
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
model
.
highlight
),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
failColor
))
let
cc
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
String
(
arr
[
1
])),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
init
(
hex
:
0x8993A2
)))
descLabel
.
attributed
.
text
=
aa
+
bb
+
cc
}
else
{
descLabel
.
attributed
.
text
=
nil
descLabel
.
text
=
model
.
subname
}
}
else
{
descLabel
.
attributed
.
text
=
nil
descLabel
.
text
=
model
.
subname
}
}
else
{
}
}
func
setViewSelected
()
{
...
...
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