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
e4b24b73
Commit
e4b24b73
authored
Jun 24, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 专享icon的位置
parent
a5f83945
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
10 deletions
+53
-10
YHActivityTitleItemView.swift
...ommunity(社区)/Activity(活动)/V/YHActivityTitleItemView.swift
+31
-10
Contents.json
...assets/Activity/activity_vip_icon2.imageset/Contents.json
+22
-0
v专享@2x.png
....xcassets/Activity/activity_vip_icon2.imageset/v专享@2x.png
+0
-0
v专享@3x.png
....xcassets/Activity/activity_vip_icon2.imageset/v专享@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHActivityTitleItemView.swift
View file @
e4b24b73
...
...
@@ -21,13 +21,26 @@ class YHActivityTitleItemView: UIView {
lazy
var
nameLabel
:
UILabel
=
{
let
nameLabel
=
UILabel
()
nameLabel
.
textColor
=
UIColor
.
mainTextColor
nameLabel
.
textAlignment
=
.
left
nameLabel
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
24
)
nameLabel
.
text
=
"哈佛爸爸线下教育沙龙"
return
nameLabel
// lazy var nameLabel:UILabel = {
// let nameLabel = UILabel()
// nameLabel.textColor = UIColor.mainTextColor
// nameLabel.textAlignment = .left
// nameLabel.font = UIFont.PFSC_B(ofSize:24)
// nameLabel.text = "哈佛爸爸线下教育沙龙哈佛爸爸线下教育沙龙"
// return nameLabel
// }()
private
lazy
var
nameTextView
:
UITextView
=
{
let
lable0
=
UITextView
()
lable0
.
textColor
=
UIColor
.
mainTextColor
lable0
.
textAlignment
=
.
left
lable0
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
24
)
lable0
.
isScrollEnabled
=
false
lable0
.
isEditable
=
false
lable0
.
isSelectable
=
false
return
lable0
}()
...
...
@@ -83,20 +96,21 @@ class YHActivityTitleItemView: UIView {
extension
YHActivityTitleItemView
{
func
setupUI
()
{
addSubview
(
nameLabel
)
// addSubview(nameLabel)
addSubview
(
nameTextView
)
addSubview
(
timeStaticLable
)
addSubview
(
timeLable
)
addSubview
(
addressStaticLable
)
addSubview
(
addressLable
)
addSubview
(
navAddressLable
)
name
Label
.
snp
.
makeConstraints
{
make
in
name
TextView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
}
timeStaticLable
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
make
.
top
.
equalTo
(
name
Label
.
snp
.
bottom
)
.
offset
(
24
)
make
.
top
.
equalTo
(
name
TextView
.
snp
.
bottom
)
.
offset
(
24
)
make
.
height
.
equalTo
(
20
)
make
.
width
.
equalTo
(
28
)
}
...
...
@@ -129,5 +143,12 @@ extension YHActivityTitleItemView {
make
.
bottom
.
equalToSuperview
()
}
nameTextView
.
attributed
.
text
=
"""
\(
"哈佛爸爸线哈 "
,
.
foreground
(
UIColor
.
mainTextColor
),
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
24
))
)\(
.
image
(
UIImage
(
named
:
"activity_vip_icon2"
)
!
,
.
custom
(
.
offset
(
CGPoint
(
x
:
0
,
y
:
-
7
)),
size
:
.
init
(
width
:
44
,
height
:
34
)))
)
"""
}
}
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_vip_icon2.imageset/Contents.json
0 → 100644
View file @
e4b24b73
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"v专享@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"v专享@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_vip_icon2.imageset/v专享@2x.png
0 → 100644
View file @
e4b24b73
4.36 KB
galaxy/galaxy/Res/Assets.xcassets/Activity/activity_vip_icon2.imageset/v专享@3x.png
0 → 100644
View file @
e4b24b73
8.29 KB
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