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
051c2c34
Commit
051c2c34
authored
Feb 25, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员中心调整
parent
9f1810d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
YHMemberCenterViewController.swift
...ses/Modules/Mine(我的)/C/YHMemberCenterViewController.swift
+2
-2
YHMemberCenterHeaderView.swift
...Classes/Modules/Mine(我的)/V/YHMemberCenterHeaderView.swift
+8
-0
YHMemberCenterMyPrivilegeCell.swift
...es/Modules/Mine(我的)/V/YHMemberCenterMyPrivilegeCell.swift
+3
-2
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMemberCenterViewController.swift
View file @
051c2c34
...
@@ -387,9 +387,9 @@ extension YHMemberCenterViewController: UITableViewDelegate, UITableViewDataSour
...
@@ -387,9 +387,9 @@ extension YHMemberCenterViewController: UITableViewDelegate, UITableViewDataSour
cell
.
setupCell
(
mid
:
"
\(
level
.
description
)
拥有特权
\(
count
)
项"
,
isOverLevel
:
isOverLevel
)
cell
.
setupCell
(
mid
:
"
\(
level
.
description
)
拥有特权
\(
count
)
项"
,
isOverLevel
:
isOverLevel
)
return
cell
return
cell
}
}
case
let
.
myPrivilege
(
_
,
count
,
redeemCount
,
redeemedCount
,
isShowBottom
):
case
let
.
myPrivilege
(
level
,
count
,
redeemCount
,
redeemedCount
,
isShowBottom
):
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHMemberCenterMyPrivilegeCell
.
cellReuseIdentifier
)
as?
YHMemberCenterMyPrivilegeCell
{
if
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHMemberCenterMyPrivilegeCell
.
cellReuseIdentifier
)
as?
YHMemberCenterMyPrivilegeCell
{
cell
.
setupCell
(
right
:
"
\(
count
)
项"
,
redeemCount
:
redeemCount
,
redeemedCount
:
redeemedCount
,
needShowBottom
:
isShowBottom
)
cell
.
setupCell
(
mid
:
"我的
\(
level
.
description
)
特权"
,
right
:
"
\(
count
)
项"
,
redeemCount
:
redeemCount
,
redeemedCount
:
redeemedCount
,
needShowBottom
:
isShowBottom
)
return
cell
return
cell
}
}
case
let
.
action
(
title
,
detail
,
imageStr
,
ratio
,
buttonStr
,
buttonState
,
id
,
service
):
case
let
.
action
(
title
,
detail
,
imageStr
,
ratio
,
buttonStr
,
buttonState
,
id
,
service
):
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMemberCenterHeaderView.swift
View file @
051c2c34
...
@@ -183,6 +183,14 @@ class YHMemberCenterHeaderView: UIView {
...
@@ -183,6 +183,14 @@ class YHMemberCenterHeaderView: UIView {
return
BannerData
(
level
:
level
,
levelString
:
levelString
,
tips
:
tips
,
upgradeTitle
:
upgradeTitle
,
showProgress
:
showProgress
,
ratioString
:
ratioString
,
ratio
:
ratio
,
showRatio
:
showRatio
,
showTips
:
showTips
)
return
BannerData
(
level
:
level
,
levelString
:
levelString
,
tips
:
tips
,
upgradeTitle
:
upgradeTitle
,
showProgress
:
showProgress
,
ratioString
:
ratioString
,
ratio
:
ratio
,
showRatio
:
showRatio
,
showTips
:
showTips
)
})
})
bannerView
.
reloadData
()
bannerView
.
reloadData
()
if
let
index
=
datas
.
firstIndex
(
where
:
{
data
in
data
.
level
.
rawValue
==
memberCenterInfo
.
currentLevel
})
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.25
)
{
self
.
bannerView
.
scrollToItem
(
at
:
index
,
animated
:
false
)
self
.
scrollToIndexEvent
?(
self
.
datas
[
index
]
.
level
)
}
}
}
}
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMemberCenterMyPrivilegeCell.swift
View file @
051c2c34
...
@@ -19,7 +19,7 @@ class YHMemberCenterMyPrivilegeCell: YHResignDocumentCell {
...
@@ -19,7 +19,7 @@ class YHMemberCenterMyPrivilegeCell: YHResignDocumentCell {
private
lazy
var
midLabel
:
UILabel
=
{
private
lazy
var
midLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
text
=
"我的
大众
会员特权"
label
.
text
=
"我的
xx
会员特权"
label
.
textColor
=
UIColor
.
mainTextColor
label
.
textColor
=
UIColor
.
mainTextColor
label
.
font
=
.
PFSC_M
(
ofSize
:
16
)
label
.
font
=
.
PFSC_M
(
ofSize
:
16
)
return
label
return
label
...
@@ -72,7 +72,8 @@ class YHMemberCenterMyPrivilegeCell: YHResignDocumentCell {
...
@@ -72,7 +72,8 @@ class YHMemberCenterMyPrivilegeCell: YHResignDocumentCell {
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
func
setupCell
(
right
:
String
,
redeemCount
:
Int
,
redeemedCount
:
Int
,
needShowBottom
:
Bool
)
{
func
setupCell
(
mid
:
String
,
right
:
String
,
redeemCount
:
Int
,
redeemedCount
:
Int
,
needShowBottom
:
Bool
)
{
midLabel
.
text
=
mid
rightLabel
.
text
=
right
rightLabel
.
text
=
right
bottomContainerView
.
isHidden
=
!
needShowBottom
bottomContainerView
.
isHidden
=
!
needShowBottom
if
needShowBottom
{
if
needShowBottom
{
...
...
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