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
77ccb901
Commit
77ccb901
authored
Feb 18, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// vip
parent
b356a990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
YHUserVipInfoView.swift
...galaxy/Classes/Modules/Mine(我的)/V/YHUserVipInfoView.swift
+20
-15
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHUserVipInfoView.swift
View file @
77ccb901
...
...
@@ -61,8 +61,10 @@ class YHUserVipFunctionInfoView: UIView {
fatalError
(
"init(coder:) has not been implemented"
)
}
func
update
(
titleColor
:
UIColor
,
descColor
:
UIColor
)
{
func
update
(
title
:
String
,
desc
:
String
,
titleColor
:
UIColor
,
descColor
:
UIColor
)
{
titleLabel
.
text
=
title
titleLabel
.
textColor
=
titleColor
descLabel
.
text
=
desc
descLabel
.
textColor
=
descColor
}
...
...
@@ -97,6 +99,7 @@ class YHUserVipFunctionInfoView: UIView {
class
YHUserVipInfoView
:
UIView
{
var
growValue
:
Int
=
0
var
vipLevel
:
YHUserVipLevel
=
.
none
{
didSet
{
updateVipLevel
(
vipLevel
)
...
...
@@ -223,8 +226,7 @@ class YHUserVipInfoView: UIView {
make
.
bottom
.
equalTo
(
0
)
}
self
.
vipLevel
=
.
none
self
.
update
(
growValue
:
0
,
vipLevel
:
self
.
vipLevel
)
self
.
update
(
growValue
:
0
,
vipLevel
:
.
none
)
}
func
updateVipLevel
(
_
vipLevel
:
YHUserVipLevel
)
{
...
...
@@ -235,9 +237,9 @@ class YHUserVipInfoView: UIView {
self
.
titleLabel
.
textColor
=
.
white
self
.
rightBtn
.
backgroundColor
=
UIColor
(
hex
:
0x5A2C0E
)
self
.
rightBtn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
function1View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function1View
.
update
(
title
:
"专属顾问"
,
desc
:
"8小时*5天专人"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
title
:
"专属积分"
,
desc
:
"消费累积享好礼"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
title
:
"奢华会客厅"
,
desc
:
"体验中心使用权"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
}
else
if
vipLevel
==
.
platinum
{
...
...
@@ -246,9 +248,9 @@ class YHUserVipInfoView: UIView {
self
.
titleLabel
.
textColor
=
.
white
self
.
rightBtn
.
backgroundColor
=
UIColor
(
hex
:
0x382F6B
)
self
.
rightBtn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
function1View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function1View
.
update
(
title
:
"专属顾问"
,
desc
:
"12小时*6天专人"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
title
:
"奢华会客厅"
,
desc
:
"体验中心使用权"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
title
:
"专属中港车"
,
desc
:
"专车接送服务"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
}
else
if
vipLevel
==
.
diamond
{
self
.
bgImgView
.
image
=
UIImage
(
named
:
"mine_member_bg_vip_3"
)
...
...
@@ -256,9 +258,9 @@ class YHUserVipInfoView: UIView {
self
.
titleLabel
.
textColor
=
.
init
(
hex
:
0xE0C9AF
)
self
.
rightBtn
.
backgroundColor
=
UIColor
(
hex
:
0xE0C9AF
)
self
.
rightBtn
.
setTitleColor
(
.
init
(
hex
:
0x12296F
),
for
:
.
normal
)
function1View
.
update
(
titleColor
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
function2View
.
update
(
titleColor
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
function3View
.
update
(
titleColor
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
function1View
.
update
(
title
:
"专属顾问"
,
desc
:
"24小时*7天专人"
,
title
Color
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
function2View
.
update
(
title
:
"专属中港车"
,
desc
:
"专车接送服务"
,
title
Color
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
function3View
.
update
(
title
:
"高端私董会"
,
desc
:
"共享商业洞见"
,
title
Color
:
UIColor
(
hex
:
0xE0C9AF
),
descColor
:
UIColor
(
hex
:
0xE0C9AF
,
alpha
:
0.6
))
}
else
{
self
.
bgImgView
.
image
=
UIImage
(
named
:
"mine_member_bg_vip_0"
)
...
...
@@ -266,14 +268,17 @@ class YHUserVipInfoView: UIView {
self
.
titleLabel
.
textColor
=
.
white
self
.
rightBtn
.
backgroundColor
=
UIColor
(
hex
:
0x323849
)
self
.
rightBtn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
function1View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
titleColor
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function1View
.
update
(
title
:
"AI港小宝"
,
desc
:
"聚焦香港的智能体"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function2View
.
update
(
title
:
"专属积分"
,
desc
:
"消费累积享好礼"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
function3View
.
update
(
title
:
"精品下午茶"
,
desc
:
"尊享精致茶点"
,
title
Color
:
.
white
,
descColor
:
UIColor
(
hex
:
0xFFFFFF
,
alpha
:
0.6
))
}
}
func
update
(
growValue
:
Int
,
vipLevel
:
YHUserVipLevel
)
{
self
.
growValue
=
growValue
self
.
vipLevel
=
vipLevel
let
text
=
"当前成长值"
let
count
=
"
\(
growValue
)
"
...
...
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