Commit bfc7bb83 authored by DavidHuang's avatar DavidHuang

处理 tabbar上 view不消失的场景

parent 1520a182
......@@ -283,13 +283,6 @@ extension YHHomeHoldViewPageViewController {
extension YHHomeHoldViewPageViewController: JXSegmentedViewDelegate {
func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) {
navigationController?.interactivePopGestureRecognizer?.isEnabled = (segmentedView.selectedIndex == 0)
if segmentedView.selectedIndex != 1 {
var model = TabBarShareModel()
model.showFlag = false
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
}
self.segmentedView.reloadDataWithoutListContainer()
}
}
......
......@@ -157,6 +157,19 @@ class YHHomeIdentityViewController: YHBaseViewController {
make.top.equalTo(headImgView.snp.bottom).offset(8.0)
}
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
hideBottomOnTabbar()
}
func hideBottomOnTabbar() {
//隐藏
var model = TabBarShareModel()
model.showFlag = false
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
}
}
extension YHHomeIdentityViewController: JXSegmentedViewDelegate {
......@@ -245,9 +258,7 @@ extension YHHomeIdentityViewController: UIScrollViewDelegate {
if self.isShowBottomView {
self.isShowBottomView = false
printLog("ABC hide: \(self.scrollContentY)")
var model = TabBarShareModel()
model.showFlag = false
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
hideBottomOnTabbar()
}
}
}
......
......@@ -83,6 +83,8 @@ extension YHUatHelper {
//获取功能模块的展示状态
func getUatModuleStatusBy(module : YHUatModules) -> Bool {
return true
}
}
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