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
591a900a
Commit
591a900a
authored
Apr 11, 2024
by
David黄金龙
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无数据
parent
ad0c0604
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+11
-0
YHHomePageViewModel.swift
...axy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
591a900a
...
...
@@ -77,6 +77,12 @@ private extension YHHomePageViewController {
viewModel
.
getHomeNewsList
(
firstPageFlag
:
false
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
homeCollectView
.
es
.
stopLoadingMore
()
if
self
.
viewModel
.
hasMoreForHomeNews
==
false
{
homeCollectView
.
es
.
noticeNoMoreData
()
}
self
.
homeCollectView
.
reloadData
()
}
}
...
...
@@ -85,6 +91,11 @@ private extension YHHomePageViewController {
viewModel
.
getHomeNewsList
(
firstPageFlag
:
true
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
homeCollectView
.
es
.
stopPullToRefresh
()
if
self
.
viewModel
.
hasMoreForHomeNews
==
false
{
homeCollectView
.
es
.
noticeNoMoreData
()
}
self
.
homeCollectView
.
reloadData
()
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
View file @
591a900a
...
...
@@ -19,7 +19,7 @@ class YHHomePageViewModel : YHBaseViewModel {
private
var
curPageIndex
:
Int
=
1
private
var
page_Size
:
Int
=
10
private
var
totalCount
:
Int
=
0
private
var
hasMoreForHomeNews
:
Bool
=
true
var
hasMoreForHomeNews
:
Bool
=
true
}
//接口
...
...
pete谢兆麟
@pete
mentioned in commit
032a33a9
·
Apr 11, 2024
mentioned in commit
032a33a9
mentioned in commit 032a33a989f1fa0d0c04cf28c891515260cb4857
Toggle commit list
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