Commit 7db2e755 authored by David黄金龙's avatar David黄金龙

修改 首页UI展示不对的问题

parent 3782f95f
......@@ -116,7 +116,8 @@ class YHHomePageViewController: YHBaseViewController {
// DispatchQueue.main.async {
// self.showOrderTipsView(isShow)
// }
}
self.viewModel.getLastTwoMessagesForSigner { success, error in
if success {
......@@ -126,10 +127,12 @@ class YHHomePageViewController: YHBaseViewController {
}
// DispatchQueue.main.async {
// self.showOrderTipsView(isShow)
// }
DispatchQueue.main.async {
self.showOrderTipsView(isShow)
}
}
}
} else {
DispatchQueue.main.async {
self.showOrderTipsView(isShow)
......@@ -147,16 +150,29 @@ class YHHomePageViewController: YHBaseViewController {
homeHeaderView.isNeedHideOrderTipsView = !show
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 {
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
printLog(tmpHeadView.frame)
// tmpHeadView.backgroundColor = .systemPink //for test hjl
homeCollectView.es.addInfiniteScrolling {
self.loadMoreData()
}
self.homeCollectView.setContentOffset(CGPoint(x: 0, y: -homeHeaderViewHeight), animated: false)
}
}
......@@ -333,6 +349,8 @@ private extension YHHomePageViewController {
r.origin.y = r.origin.y - YHHomeHeadView.fixViewH
tmpHeadView.frame = r
printLog(tmpHeadView.frame)
homeCollectView.showsHorizontalScrollIndicator = false
homeCollectView.showsVerticalScrollIndicator = false
homeCollectView.es.addInfiniteScrolling {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment