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
85138dfa
Commit
85138dfa
authored
Jun 13, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理首页数据刷新的问题
parent
776a9910
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+6
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
85138dfa
...
@@ -47,6 +47,9 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -47,6 +47,9 @@ class YHHomePageViewController: YHBaseViewController {
homeHeaderView
.
homeBannerView
.
dataArr
=
getCacheDataForBanner
()
homeHeaderView
.
homeBannerView
.
dataArr
=
getCacheDataForBanner
()
getCacheDataForHomeNewsData
()
getCacheDataForHomeNewsData
()
requestOrder
()
//2、请求新的数据
//2、请求新的数据
getData
()
getData
()
}
}
...
@@ -57,7 +60,7 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -57,7 +60,7 @@ class YHHomePageViewController: YHBaseViewController {
//获取OSS密钥
//获取OSS密钥
YHOSSManager
.
share
.
getOSSID
()
YHOSSManager
.
share
.
getOSSID
()
updateDefaultSearchKeyWord
()
updateDefaultSearchKeyWord
()
requestOrder
()
}
}
lazy
var
searchView
:
YHHomeSearchView
=
{
lazy
var
searchView
:
YHHomeSearchView
=
{
...
@@ -295,10 +298,12 @@ private extension YHHomePageViewController {
...
@@ -295,10 +298,12 @@ private extension YHHomePageViewController {
}
}
@objc
func
loginSuccess
()
{
@objc
func
loginSuccess
()
{
requestOrder
()
getData
()
getData
()
}
}
@objc
func
logoutSuccess
()
{
@objc
func
logoutSuccess
()
{
showOrderTipsView
(
false
)
getData
()
getData
()
}
}
}
}
...
...
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