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
f695370a
Commit
f695370a
authored
Apr 16, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新单行
parent
988d0309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+9
-6
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
f695370a
...
...
@@ -21,7 +21,7 @@ class YHHomePageViewController: YHBaseViewController {
let
flowLayout
=
YHHomeCollectionLayout
()
flowLayout
.
minimumInteritemSpacing
=
7.0
flowLayout
.
minimumColumnSpacing
=
10.0
flowLayout
.
sectionInset
=
UIEdgeInsets
(
top
:
0
,
left
:
20
,
bottom
:
0
,
right
:
20
)
flowLayout
.
sectionInset
=
UIEdgeInsets
(
top
:
0
,
left
:
20
,
bottom
:
2
0
,
right
:
20
)
let
collectinoView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
flowLayout
)
collectinoView
.
backgroundColor
=
.
white
...
...
@@ -84,7 +84,9 @@ private extension YHHomePageViewController {
if
self
.
viewModel
.
hasMoreForHomeNews
==
false
{
homeCollectView
.
es
.
noticeNoMoreData
()
}
self
.
homeCollectView
.
reloadData
()
// self.homeCollectView.reloadData()
self
.
homeCollectView
.
reloadItems
(
at
:
[
IndexPath
(
index
:
0
)])
}
}
...
...
@@ -96,9 +98,9 @@ private extension YHHomePageViewController {
if
self
.
viewModel
.
hasMoreForHomeNews
==
false
{
homeCollectView
.
es
.
noticeNoMoreData
()
}
UIView
.
performWithoutAnimation
{
self
.
homeCollectView
.
reloadData
()
}
self
.
homeCollectView
.
reloadItems
(
at
:
[
IndexPath
(
index
:
0
)])
// self.homeCollectView.reloadData()
}
}
...
...
@@ -116,8 +118,9 @@ private extension YHHomePageViewController {
view
.
addSubview
(
homeCollectView
)
homeCollectView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
searchView
.
snp
.
bottom
)
.
offset
(
6
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
k_Height_TabBar
)
}
homeHeaderView
.
frame
=
CGRect
(
x
:
20
,
y
:
-
YHHomeHeadView
.
viewH
,
width
:
KScreenWidth
-
40
,
height
:
YHHomeHeadView
.
viewH
)
...
...
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