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
28001214
Commit
28001214
authored
Feb 14, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的
parent
e9e38729
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
4 deletions
+35
-4
YHMyNewViewController.swift
...xy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
+0
-0
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-0
YHMyFunctionGroup2Cell.swift
...y/Classes/Modules/Mine(我的)/V/YHMyFunctionGroup2Cell.swift
+9
-2
YHMySectionGroupCell.swift
...axy/Classes/Modules/Mine(我的)/V/YHMySectionGroupCell.swift
+8
-2
YHMyUserInfoView.swift
.../galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
+17
-0
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyNewViewController.swift
View file @
28001214
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
28001214
...
@@ -18,6 +18,7 @@ enum YHPersonalModuleItemType: Int {
...
@@ -18,6 +18,7 @@ enum YHPersonalModuleItemType: Int {
case
myProgress
case
myProgress
case
myActivity
case
myActivity
case
scoreCenter
case
scoreCenter
case
inviteFriends
case
recommend
case
recommend
case
myPoster
case
myPoster
case
myTestCode
case
myTestCode
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMyFunctionGroup2Cell.swift
View file @
28001214
...
@@ -12,6 +12,9 @@ class YHMyFunctionGroup2Cell: UITableViewCell {
...
@@ -12,6 +12,9 @@ class YHMyFunctionGroup2Cell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHMyFunctionGroup2Cell"
static
let
cellReuseIdentifier
=
"YHMyFunctionGroup2Cell"
static
let
itemHeight
=
74.0
static
let
itemHeight
=
74.0
var
clickItem
:((
PersonalModuleItem
)
->
())?
func
updateGroup
(
_
group
:
YHFunctionGroupInfo
)
{
func
updateGroup
(
_
group
:
YHFunctionGroupInfo
)
{
groupArr
=
group
.
arr
groupArr
=
group
.
arr
}
}
...
@@ -105,7 +108,11 @@ extension YHMyFunctionGroup2Cell: UICollectionViewDelegate, UICollectionViewData
...
@@ -105,7 +108,11 @@ extension YHMyFunctionGroup2Cell: UICollectionViewDelegate, UICollectionViewData
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
groupArr
.
count
{
let
item
:
PersonalModuleItem
=
groupArr
[
indexPath
.
item
]
if
let
click
=
clickItem
{
click
(
item
)
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMySectionGroupCell.swift
View file @
28001214
...
@@ -12,6 +12,8 @@ class YHMySectionGroupCell: UITableViewCell {
...
@@ -12,6 +12,8 @@ class YHMySectionGroupCell: UITableViewCell {
static
let
cellReuseIdentifier
=
"YHMySectionGroupCell"
static
let
cellReuseIdentifier
=
"YHMySectionGroupCell"
var
clickItem
:((
PersonalModuleItem
)
->
())?
func
updateGroup
(
_
group
:
YHFunctionGroupInfo
)
{
func
updateGroup
(
_
group
:
YHFunctionGroupInfo
)
{
titleLabel
.
text
=
group
.
title
titleLabel
.
text
=
group
.
title
groupArr
=
group
.
arr
groupArr
=
group
.
arr
...
@@ -134,7 +136,11 @@ extension YHMySectionGroupCell: UICollectionViewDelegate, UICollectionViewDataSo
...
@@ -134,7 +136,11 @@ extension YHMySectionGroupCell: UICollectionViewDelegate, UICollectionViewDataSo
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
groupArr
.
count
{
let
item
:
PersonalModuleItem
=
groupArr
[
indexPath
.
item
]
if
let
click
=
clickItem
{
click
(
item
)
}
}
}
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
View file @
28001214
...
@@ -19,6 +19,7 @@ class YHMyUserInfoView: UIView {
...
@@ -19,6 +19,7 @@ class YHMyUserInfoView: UIView {
var
likeClick
:(()
->
Void
)?
var
likeClick
:(()
->
Void
)?
var
collectClick
:(()
->
Void
)?
var
collectClick
:(()
->
Void
)?
var
recentScanClick
:(()
->
Void
)?
var
recentScanClick
:(()
->
Void
)?
var
enterClick
:(()
->
Void
)?
lazy
var
contentView
:
UIView
=
{
lazy
var
contentView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
@@ -111,6 +112,12 @@ class YHMyUserInfoView: UIView {
...
@@ -111,6 +112,12 @@ class YHMyUserInfoView: UIView {
return
imgV
return
imgV
}()
}()
lazy
var
enterBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
addTarget
(
self
,
action
:
#selector(
enterBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
self
.
clipsToBounds
=
true
self
.
clipsToBounds
=
true
...
@@ -140,6 +147,7 @@ class YHMyUserInfoView: UIView {
...
@@ -140,6 +147,7 @@ class YHMyUserInfoView: UIView {
contentView
.
addSubview
(
line2View
)
contentView
.
addSubview
(
line2View
)
contentView
.
addSubview
(
arrowImgView
)
contentView
.
addSubview
(
arrowImgView
)
contentView
.
addSubview
(
enterBtn
)
contentView
.
snp
.
makeConstraints
{
make
in
contentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
...
@@ -210,12 +218,21 @@ class YHMyUserInfoView: UIView {
...
@@ -210,12 +218,21 @@ class YHMyUserInfoView: UIView {
make
.
right
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
}
}
enterBtn
.
snp
.
makeConstraints
{
make
in
make
.
right
.
top
.
bottom
.
equalToSuperview
()
make
.
width
.
equalTo
(
enterBtn
.
snp
.
height
)
}
update
(
count
:
0
,
label
:
likeLabel
)
update
(
count
:
0
,
label
:
likeLabel
)
update
(
count
:
0
,
label
:
collectLabel
)
update
(
count
:
0
,
label
:
collectLabel
)
update
(
count
:
0
,
label
:
scanLabel
)
update
(
count
:
0
,
label
:
scanLabel
)
}
}
@objc
func
enterBtnClicked
()
{
enterClick
?()
}
func
updateAvatar
()
{
func
updateAvatar
()
{
let
headImgName
=
YHLoginManager
.
shared
.
isLogin
()
?
"people_head_default"
:
"mine_head_logout"
let
headImgName
=
YHLoginManager
.
shared
.
isLogin
()
?
"people_head_default"
:
"mine_head_logout"
avarImgView
.
image
=
UIImage
(
named
:
headImgName
)
avarImgView
.
image
=
UIImage
(
named
:
headImgName
)
...
...
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