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
6da816d0
Commit
6da816d0
authored
Feb 26, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// vip
parent
76afd086
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
YHMyNewViewController.swift
...xy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
+1
-1
YHUserVipInfoView.swift
...galaxy/Classes/Modules/Mine(我的)/V/YHUserVipInfoView.swift
+7
-3
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
View file @
6da816d0
...
...
@@ -110,7 +110,7 @@ class YHMyNewViewController: YHBaseViewController {
lazy
var
vipInfoView
:
YHUserVipInfoView
=
{
let
v
=
YHUserVipInfoView
(
frame
:
CGRectMake
(
0
,
0
,
tableView
.
width
,
113
))
v
.
rightButton
Event
=
{
[
weak
self
]
in
v
.
click
Event
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
!
checkLogin
()
{
return
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHUserVipInfoView.swift
View file @
6da816d0
...
...
@@ -99,7 +99,7 @@ class YHUserVipFunctionInfoView: UIView {
class
YHUserVipInfoView
:
UIView
{
var
rightButton
Event
:
(()
->
Void
)?
var
click
Event
:
(()
->
Void
)?
var
growValue
:
Int
=
0
var
vipLevel
:
YHUserVipLevel
=
.
none
{
...
...
@@ -158,7 +158,8 @@ class YHUserVipInfoView: UIView {
btn
.
setTitle
(
"更多权益"
,
for
:
.
normal
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
layer
.
cornerRadius
=
15.0
btn
.
addTarget
(
self
,
action
:
#selector(
rightButtonClicked
)
,
for
:
.
touchUpInside
)
btn
.
isUserInteractionEnabled
=
false
// btn.addTarget(self, action: #selector(rightButtonClicked), for: .touchUpInside)
return
btn
}()
...
...
@@ -182,6 +183,9 @@ class YHUserVipInfoView: UIView {
self
.
addSubview
(
function1View
)
self
.
addSubview
(
function2View
)
self
.
addSubview
(
function3View
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
rightButtonClicked
)
)
self
.
addGestureRecognizer
(
tap
)
bgImgView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
...
...
@@ -233,7 +237,7 @@ class YHUserVipInfoView: UIView {
}
@objc
func
rightButtonClicked
()
{
rightButton
Event
?()
click
Event
?()
}
func
updateVipLevel
(
_
vipLevel
:
YHUserVipLevel
)
{
...
...
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