Commit 04fe0d27 by pierce

fixed bugs

parent 145cb9f4
...@@ -183,7 +183,7 @@ class GDFriendApplyView: BaseView { ...@@ -183,7 +183,7 @@ class GDFriendApplyView: BaseView {
if self?.rechargeHandler != nil { if self?.rechargeHandler != nil {
self?.rechargeHandler?() self?.rechargeHandler?()
} else { } else {
if let vc = self?.viewController { if let vc = UIViewController.topViewController() {
GDRouter.Payment?.showRechargeVC(rootVC: vc) GDRouter.Payment?.showRechargeVC(rootVC: vc)
} }
} }
......
...@@ -130,8 +130,6 @@ class GDZoneContentMomentCommentView: BaseView { ...@@ -130,8 +130,6 @@ class GDZoneContentMomentCommentView: BaseView {
} }
} }
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(16) make.top.equalTo(titleLabel.snp.bottom).offset(16)
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
......
...@@ -152,7 +152,7 @@ class GDZoneContentMomentView: GDZoneContentPublicMomentView { ...@@ -152,7 +152,7 @@ class GDZoneContentMomentView: GDZoneContentPublicMomentView {
if self?.viewModel.fid == GDRouter.UserRouter?.uid { if self?.viewModel.fid == GDRouter.UserRouter?.uid {
self?.viewHeight.accept(size?.height ?? 0.0 + GDScreen.SafeArea.bottom + 80) self?.viewHeight.accept(size?.height ?? 0.0 + GDScreen.SafeArea.bottom + 80)
} else { } else {
self?.viewHeight.accept(size?.height ?? 0.0) self?.viewHeight.accept((size?.height ?? 0.0) + 40)
} }
}).disposed(by: disposeBag) }).disposed(by: disposeBag)
......
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 sign in to comment