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
3dcb7f17
Commit
3dcb7f17
authored
Oct 24, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动
parent
e9c2d350
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
21 deletions
+49
-21
YHActivitySignSuccessViewController.swift
.../Activity(活动)/C/YHActivitySignSuccessViewController.swift
+18
-21
YHSignPrizeCell.swift
...odules/Community(社区)/Activity(活动)/V/YHSignPrizeCell.swift
+9
-0
Contents.json
...ssets.xcassets/Salon/salon_sign_bg.imageset/Contents.json
+22
-0
Rectangle 346241096-1.png
...ts/Salon/salon_sign_bg.imageset/Rectangle 346241096-1.png
+0
-0
Rectangle 346241096.png
...sets/Salon/salon_sign_bg.imageset/Rectangle 346241096.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/C/YHActivitySignSuccessViewController.swift
View file @
3dcb7f17
...
...
@@ -23,19 +23,6 @@ class YHActivitySignSuccessViewController: YHBaseViewController {
return
v
}()
lazy
var
bottomLogoView
:
UIView
=
{
let
v
=
UIView
()
let
logoImgV
:
UIImageView
=
UIImageView
(
image
:
UIImage
(
named
:
"salon_logo"
))
v
.
addSubview
(
logoImgV
)
logoImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
133
)
make
.
height
.
equalTo
(
26
)
make
.
centerX
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
16
)
}
return
v
}()
lazy
var
signFailBgView
:
UIView
=
{
let
v
=
UIView
()
let
imgV
=
UIImageView
(
image
:
UIImage
(
named
:
"salon_fail_icon"
))
...
...
@@ -92,18 +79,12 @@ class YHActivitySignSuccessViewController: YHBaseViewController {
tableView
.
register
(
YHSignPrizeCell
.
self
,
forCellReuseIdentifier
:
YHSignPrizeCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHSignActivityInfoCell
.
self
,
forCellReuseIdentifier
:
YHSignActivityInfoCell
.
cellReuseIdentifier
)
view
.
addSubview
(
tableView
)
view
.
addSubview
(
bottomLogoView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomLogoView
.
snp
.
top
)
}
bottomLogoView
.
snp
.
makeConstraints
{
make
in
make
.
height
.
equalTo
(
58
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
())
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
backImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
backImgV
.
snp
.
width
)
.
multipliedBy
(
422.0
/
375.0
)
...
...
@@ -201,4 +182,20 @@ extension YHActivitySignSuccessViewController: UITableViewDelegate, UITableViewD
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
83
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
v
=
UIView
()
let
logoImgV
:
UIImageView
=
UIImageView
(
image
:
UIImage
(
named
:
"salon_logo"
))
v
.
addSubview
(
logoImgV
)
logoImgV
.
snp
.
makeConstraints
{
make
in
make
.
width
.
equalTo
(
133
)
make
.
height
.
equalTo
(
26
)
make
.
centerX
.
equalToSuperview
()
}
return
v
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
58
}
}
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHSignPrizeCell.swift
View file @
3dcb7f17
...
...
@@ -20,6 +20,7 @@ class YHSignPrizeCell: UITableViewCell {
private
let
instructionLabel
=
UILabel
()
private
let
prizeImageView
=
UIImageView
()
private
let
overlayButton
=
UIButton
()
private
let
backImgV
:
UIImageView
=
UIImageView
()
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
...
...
@@ -38,6 +39,9 @@ class YHSignPrizeCell: UITableViewCell {
containerView
.
layer
.
cornerRadius
=
6
contentView
.
addSubview
(
containerView
)
backImgV
.
image
=
UIImage
(
named
:
"salon_sign_bg"
)
containerView
.
addSubview
(
backImgV
)
greetingLabel
.
font
=
.
PFSC_B
(
ofSize
:
18
)
greetingLabel
.
textColor
=
.
brandGrayColor8
containerView
.
addSubview
(
greetingLabel
)
...
...
@@ -59,6 +63,11 @@ class YHSignPrizeCell: UITableViewCell {
make
.
bottom
.
equalToSuperview
()
.
offset
(
0
)
}
backImgV
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
118
)
}
greetingLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
28
)
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
...
...
galaxy/galaxy/Res/Assets.xcassets/Salon/salon_sign_bg.imageset/Contents.json
0 → 100644
View file @
3dcb7f17
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Rectangle 346241096.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Rectangle 346241096-1.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/Salon/salon_sign_bg.imageset/Rectangle 346241096-1.png
0 → 100644
View file @
3dcb7f17
61.3 KB
galaxy/galaxy/Res/Assets.xcassets/Salon/salon_sign_bg.imageset/Rectangle 346241096.png
0 → 100644
View file @
3dcb7f17
38.9 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