Commit 0fa7761a authored by Alex朱枝文's avatar Alex朱枝文

解决首页高度获取错误

parent 4cf98c18
...@@ -48,7 +48,7 @@ class YHHomeHeadView: UIView { ...@@ -48,7 +48,7 @@ class YHHomeHeadView: UIView {
var orderTipsViewClickEvent: (() -> Void)? var orderTipsViewClickEvent: (() -> Void)?
func getHomeHeadViewH(headStyle : YHHomeHeadViewStyleType) -> CGFloat { func getHomeHeadViewH(headStyle : YHHomeHeadViewStyleType) -> CGFloat {
return YHHomeHeadView.fixViewH + headStyle.getHeight(orderTipsView.height) + YHHomeHeadView.topMargin return YHHomeHeadView.fixViewH + headStyle.getHeight(orderTipsView.orderTipsViewStyle.getHeight()) + YHHomeHeadView.topMargin
} }
override init(frame: CGRect) { override init(frame: CGRect) {
......
...@@ -34,7 +34,7 @@ class YHOrderTipsView: UIView { ...@@ -34,7 +34,7 @@ class YHOrderTipsView: UIView {
fileprivate static let viewH3 : CGFloat = 218.0 fileprivate static let viewH3 : CGFloat = 218.0
var buttonClickEvent: (() -> Void)? var buttonClickEvent: (() -> Void)?
private var orderTipsViewStyle: YHOrderTipsViewStyleType = .none { var orderTipsViewStyle: YHOrderTipsViewStyleType = .none {
didSet { didSet {
guard oldValue != orderTipsViewStyle else { guard oldValue != orderTipsViewStyle else {
return return
......
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