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
7db2e755
Commit
7db2e755
authored
Jun 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 首页UI展示不对的问题
parent
3782f95f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
14 deletions
+32
-14
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+32
-14
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
7db2e755
...
@@ -116,20 +116,23 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -116,20 +116,23 @@ class YHHomePageViewController: YHBaseViewController {
// DispatchQueue.main.async {
// DispatchQueue.main.async {
// self.showOrderTipsView(isShow)
// self.showOrderTipsView(isShow)
// }
// }
}
self
.
viewModel
.
getLastTwoMessagesForSigner
{
success
,
error
in
if
success
{
self
.
viewModel
.
getLastTwoMessagesForSigner
{
success
,
error
in
if
success
{
self
.
homeHeaderView
.
orderTipsView
.
arrLastTwoMessage
=
self
.
viewModel
.
arrLastTwoMessages
self
.
homeHeaderView
.
orderTipsView
.
arrLastTwoMessage
=
self
.
viewModel
.
arrLastTwoMessages
}
else
{
}
else
{
}
DispatchQueue
.
main
.
async
{
self
.
showOrderTipsView
(
isShow
)
}
}
}
// DispatchQueue.main.async {
// self.showOrderTipsView(isShow)
// }
}
}
}
else
{
}
else
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
self
.
showOrderTipsView
(
isShow
)
self
.
showOrderTipsView
(
isShow
)
...
@@ -147,16 +150,29 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -147,16 +150,29 @@ class YHHomePageViewController: YHBaseViewController {
homeHeaderView
.
isNeedHideOrderTipsView
=
!
show
homeHeaderView
.
isNeedHideOrderTipsView
=
!
show
homeCollectView
.
contentInset
=
UIEdgeInsets
(
top
:
homeHeaderViewHeight
,
left
:
0
,
bottom
:
0
,
right
:
0
)
homeCollectView
.
contentInset
=
UIEdgeInsets
(
top
:
homeHeaderViewHeight
,
left
:
0
,
bottom
:
0
,
right
:
0
)
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
false
)
let
tmpHeadView
=
homeCollectView
.
es
.
addYHPullToRefresh
{
let
tmpHeadView
=
homeCollectView
.
es
.
addYHPullToRefresh
{
self
.
getData
()
self
.
getData
()
}
}
var
r
=
homeCollectView
.
frame
r
.
origin
.
y
=
r
.
origin
.
y
-
homeHeaderViewHeight
var
r
=
homeCollectView
.
frame
//for test hjl
r
.
origin
.
y
=
-
homeHeaderViewHeight
-
81
r
.
origin
.
x
=
0
r
.
size
.
width
=
KScreenWidth
r
.
size
.
height
=
81.0
tmpHeadView
.
frame
=
r
tmpHeadView
.
frame
=
r
printLog
(
tmpHeadView
.
frame
)
// tmpHeadView.backgroundColor = .systemPink //for test hjl
homeCollectView
.
es
.
addInfiniteScrolling
{
homeCollectView
.
es
.
addInfiniteScrolling
{
self
.
loadMoreData
()
self
.
loadMoreData
()
}
}
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
false
)
}
}
}
}
...
@@ -333,6 +349,8 @@ private extension YHHomePageViewController {
...
@@ -333,6 +349,8 @@ private extension YHHomePageViewController {
r
.
origin
.
y
=
r
.
origin
.
y
-
YHHomeHeadView
.
fixViewH
r
.
origin
.
y
=
r
.
origin
.
y
-
YHHomeHeadView
.
fixViewH
tmpHeadView
.
frame
=
r
tmpHeadView
.
frame
=
r
printLog
(
tmpHeadView
.
frame
)
homeCollectView
.
showsHorizontalScrollIndicator
=
false
homeCollectView
.
showsHorizontalScrollIndicator
=
false
homeCollectView
.
showsVerticalScrollIndicator
=
false
homeCollectView
.
showsVerticalScrollIndicator
=
false
homeCollectView
.
es
.
addInfiniteScrolling
{
homeCollectView
.
es
.
addInfiniteScrolling
{
...
...
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