Commit bfc7bb83 authored by DavidHuang's avatar DavidHuang

处理 tabbar上 view不消失的场景

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