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
6d832289
Commit
6d832289
authored
Feb 18, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// vip
parent
77ccb901
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
4 deletions
+20
-4
YHMyUserInfoView.swift
.../galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
+18
-2
Contents.json
...cassets/People/people_head_default.imageset/Contents.json
+2
-2
Group 2033194042@2x.png
...ople/people_head_default.imageset/Group 2033194042@2x.png
+0
-0
Group 2033194042@3x.png
...ople/people_head_default.imageset/Group 2033194042@3x.png
+0
-0
默认头像图@2x.png
...xcassets/People/people_head_default.imageset/默认头像图@2x.png
+0
-0
默认头像图@3x.png
...xcassets/People/people_head_default.imageset/默认头像图@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
View file @
6d832289
...
...
@@ -14,6 +14,22 @@ class YHMyUserInfoView: UIView {
static
let
collectTag
=
9528
static
let
scanTag
=
9529
var
vipLevel
:
YHUserVipLevel
=
.
none
{
didSet
{
var
vipImg
=
""
if
vipLevel
==
.
gold
{
vipImg
=
"mine_vip_1"
}
else
if
vipLevel
==
.
platinum
{
vipImg
=
"mine_vip_2"
}
else
if
vipLevel
==
.
diamond
{
vipImg
=
"mine_vip_3"
}
vipImgView
.
image
=
UIImage
(
named
:
vipImg
)
}
}
var
avatarClickBlock
:(()
->
Void
)?
var
nickNameClickBlock
:(()
->
Void
)?
var
likeClick
:(()
->
Void
)?
...
...
@@ -102,7 +118,6 @@ class YHMyUserInfoView: UIView {
lazy
var
vipImgView
:
UIImageView
=
{
let
imgV
=
UIImageView
()
imgV
.
image
=
UIImage
(
named
:
"mine_vip_1"
)
return
imgV
}()
...
...
@@ -223,6 +238,7 @@ class YHMyUserInfoView: UIView {
make
.
width
.
equalTo
(
enterBtn
.
snp
.
height
)
}
vipLevel
=
.
none
update
(
count
:
0
,
label
:
likeLabel
)
update
(
count
:
0
,
label
:
collectLabel
)
update
(
count
:
0
,
label
:
scanLabel
)
...
...
@@ -248,7 +264,7 @@ class YHMyUserInfoView: UIView {
func
update
(
count
:
Int
,
label
:
UILabel
)
{
var
text
=
""
var
countStr
=
count
<
10000
?
String
(
count
)
:
String
(
format
:
"%.1fw"
,
Double
(
count
/
1000
)
/
10.0
)
let
countStr
=
count
<
10000
?
String
(
count
)
:
String
(
format
:
"%.1fw"
,
Double
(
count
/
1000
)
/
10.0
)
if
label
.
tag
==
Self
.
likeTag
{
text
=
"点赞"
...
...
galaxy/galaxy/Res/Assets.xcassets/People/people_head_default.imageset/Contents.json
View file @
6d832289
...
...
@@ -5,12 +5,12 @@
"scale"
:
"1x"
},
{
"filename"
:
"
默认头像图
@2x.png"
,
"filename"
:
"
Group 2033194042
@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"
默认头像图
@3x.png"
,
"filename"
:
"
Group 2033194042
@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
...
...
galaxy/galaxy/Res/Assets.xcassets/People/people_head_default.imageset/Group 2033194042@2x.png
0 → 100644
View file @
6d832289
10.2 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_head_default.imageset/Group 2033194042@3x.png
0 → 100644
View file @
6d832289
20.6 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_head_default.imageset/默认头像图@2x.png
deleted
100644 → 0
View file @
77ccb901
20.2 KB
galaxy/galaxy/Res/Assets.xcassets/People/people_head_default.imageset/默认头像图@3x.png
deleted
100644 → 0
View file @
77ccb901
38.8 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