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
49b497c6
Commit
49b497c6
authored
Oct 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批进度
parent
b3a7a9f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
YHPrinciplePhotoListCell.swift
...客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
+34
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrinciplePhotoListCell.swift
View file @
49b497c6
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
import
UIKit
import
UIKit
import
AttributedString
class
YHPrinciplePhotoListCell
:
UITableViewCell
{
class
YHPrinciplePhotoListCell
:
UITableViewCell
{
...
@@ -68,6 +69,17 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -68,6 +69,17 @@ class YHPrinciplePhotoListCell: UITableViewCell {
return
label
return
label
}()
}()
lazy
var
clickQueryLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"进度更新延迟? "
),
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
"点击查询"
),
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
13
)),
.
foreground
(
UIColor
.
brandMainColor
),
.
underline
([
.
single
],
color
:
UIColor
.
brandMainColor
),
.
action
{
})
label
.
attributed
.
text
=
a
+
b
return
label
}()
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
super
.
init
(
coder
:
coder
)
}
}
...
@@ -110,6 +122,8 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -110,6 +122,8 @@ class YHPrinciplePhotoListCell: UITableViewCell {
whiteView
.
removeSubviews
()
whiteView
.
removeSubviews
()
whiteView
.
addSubview
(
collectView
)
whiteView
.
addSubview
(
collectView
)
whiteView
.
addSubview
(
timeLabel
)
whiteView
.
addSubview
(
timeLabel
)
whiteView
.
addSubview
(
clickQueryLabel
)
whiteView
.
snp
.
remakeConstraints
{
make
in
whiteView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
16.0
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
16.0
)
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
...
@@ -133,9 +147,19 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -133,9 +147,19 @@ class YHPrinciplePhotoListCell: UITableViewCell {
make
.
left
.
equalTo
(
16.0
)
make
.
left
.
equalTo
(
16.0
)
make
.
right
.
equalTo
(
-
16.0
)
make
.
right
.
equalTo
(
-
16.0
)
make
.
top
.
equalTo
(
collectView
.
snp
.
bottom
)
.
offset
(
-
10.0
)
make
.
top
.
equalTo
(
collectView
.
snp
.
bottom
)
.
offset
(
-
10.0
)
make
.
bottom
.
equalTo
(
-
16
)
}
}
let
isShowClickQuery
=
true
clickQueryLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
16.0
)
make
.
right
.
equalTo
(
-
16.0
)
make
.
top
.
equalTo
(
timeLabel
.
snp
.
bottom
)
.
offset
(
isShowClickQuery
?
12.0
:
0.0
)
if
!
isShowClickQuery
{
make
.
height
.
equalTo
(
0.0
)
}
make
.
bottom
.
equalTo
(
-
16
)
}
self
.
setNeedsLayout
()
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
self
.
layoutIfNeeded
()
}
}
...
@@ -152,6 +176,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -152,6 +176,7 @@ class YHPrinciplePhotoListCell: UITableViewCell {
contentView
.
addSubview
(
whiteView
)
contentView
.
addSubview
(
whiteView
)
whiteView
.
addSubview
(
collectView
)
whiteView
.
addSubview
(
collectView
)
whiteView
.
addSubview
(
timeLabel
)
whiteView
.
addSubview
(
timeLabel
)
whiteView
.
addSubview
(
clickQueryLabel
)
iconImgView
.
snp
.
makeConstraints
{
make
in
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
...
@@ -191,6 +216,14 @@ class YHPrinciplePhotoListCell: UITableViewCell {
...
@@ -191,6 +216,14 @@ class YHPrinciplePhotoListCell: UITableViewCell {
make
.
top
.
equalTo
(
collectView
.
snp
.
bottom
)
make
.
top
.
equalTo
(
collectView
.
snp
.
bottom
)
make
.
height
.
equalTo
(
0.0
)
make
.
height
.
equalTo
(
0.0
)
}
}
clickQueryLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16.0
)
make
.
right
.
equalTo
(
-
16.0
)
make
.
top
.
equalTo
(
timeLabel
.
snp
.
bottom
)
make
.
height
.
equalTo
(
0.0
)
make
.
bottom
.
equalTo
(
-
16
)
}
}
}
}
}
...
...
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