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
685ba291
Commit
685ba291
authored
Jul 25, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 首页身份
parent
91fd43f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
YHHomeIdentityListVC.swift
...axy/Classes/Modules/Home(首页)/C/YHHomeIdentityListVC.swift
+1
-3
YHHomeIdentityViewController.swift
...ses/Modules/Home(首页)/C/YHHomeIdentityViewController.swift
+7
-0
YHHomeIdentityCell.swift
...alaxy/Classes/Modules/Home(首页)/V/YHHomeIdentityCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeIdentityListVC.swift
View file @
685ba291
...
...
@@ -263,14 +263,12 @@ extension YHHomeIdentityListVC {
case
.
failure
(
let
error
):
print
(
"image download failed:
\(
error
.
localizedDescription
)
"
)
}
self
.
tableView
.
reloadData
()
ossGroup
.
leave
()
}
}
ossGroup
.
notify
(
queue
:
.
main
)
{
self
.
tableView
.
reloadData
()
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.2
,
execute
:
{
self
.
tableView
.
setContentOffset
(
CGPointZero
,
animated
:
false
)
})
}
}
}
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeIdentityViewController.swift
View file @
685ba291
...
...
@@ -26,6 +26,13 @@ class YHHomeIdentityViewController: YHBaseViewController {
[
weak
self
]
index
,
item
in
guard
let
self
=
self
else
{
return
}
self
.
scrollView
.
setContentOffset
(
CGPointMake
(
KScreenWidth
*
Double
(
index
),
0
),
animated
:
false
)
if
0
<=
index
,
index
<
self
.
children
.
count
{
let
vc
=
self
.
children
[
index
]
if
vc
.
isKind
(
of
:
YHHomeIdentityListVC
.
self
)
{
(
vc
as!
YHHomeIdentityListVC
)
.
isShowBottomView
=
false
self
.
hideBottomOnTabbar
()
}
}
}
return
bar
}()
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeIdentityCell.swift
View file @
685ba291
...
...
@@ -38,8 +38,8 @@ class YHHomeIdentityCell: UITableViewCell {
}
func
setupUI
()
{
self
.
selectionStyle
=
.
none
self
.
contentView
.
addSubview
(
self
.
imgView
)
self
.
imgView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
...
...
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