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
283f852c
Commit
283f852c
authored
Jun 03, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 证件列表页类型和所属人分两行显示
parent
1f701c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
YHCertificateInfoCell.swift
...(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
+4
-8
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateInfoCell.swift
View file @
283f852c
...
...
@@ -57,6 +57,7 @@ class YHCertificateInfoCell: UITableViewCell {
statusLabel
.
text
=
title
statusLabel
.
textColor
=
titleColor
}
var
infoStr
=
""
var
typeStr
=
"无"
var
ownerStr
=
"无"
...
...
@@ -67,19 +68,13 @@ class YHCertificateInfoCell: UITableViewCell {
ownerStr
=
model
.
nameExtra
.
applicant
}
infoStr
=
"类型:
\(
typeStr
)
|
所属人:
\(
ownerStr
)
"
infoStr
=
"类型:
\(
typeStr
)
\n
所属人:
\(
ownerStr
)
"
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
12
),
.
foregroundColor
:
UIColor
.
labelTextColor2
]
let
attrString
=
NSMutableAttributedString
(
string
:
infoStr
,
attributes
:
attributes
)
if
let
separatorRange
=
infoStr
.
range
(
of
:
String
(
"|"
))
{
let
range
=
NSRange
(
separatorRange
,
in
:
infoStr
)
attrString
.
addAttribute
(
NSAttributedString
.
Key
.
foregroundColor
,
value
:
UIColor
(
hex
:
0xF0F0F0
),
range
:
range
)
}
infoLabel
.
attributedText
=
attrString
var
result
:
ASAttributedString
=
.
init
(
string
:
""
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
mustTag
:
ASAttributedString
=
.
init
(
"*"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
16
)),
.
foreground
(
UIColor
.
failColor
))
...
...
@@ -148,6 +143,8 @@ class YHCertificateInfoCell: UITableViewCell {
infoLabel
.
textAlignment
=
.
left
infoLabel
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
11
)
infoLabel
.
numberOfLines
=
0
infoLabel
.
setContentHuggingPriority
(
.
required
,
for
:
.
vertical
)
infoLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
vertical
)
whiteView
.
addSubview
(
infoLabel
)
statusLabel
=
UILabel
()
...
...
@@ -176,7 +173,6 @@ class YHCertificateInfoCell: UITableViewCell {
make
.
right
.
equalTo
(
nameTextView
)
make
.
top
.
equalTo
(
nameTextView
.
snp
.
bottom
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
12
)
make
.
height
.
equalTo
(
20
)
}
statusLabel
.
snp
.
makeConstraints
{
make
in
...
...
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