Commit a6780245 authored by Steven杜宇's avatar Steven杜宇

// 方案

parent 5cd7a42b
......@@ -307,6 +307,8 @@ extension YHHomeHoldViewPageViewController {
NotificationCenter.default.addObserver(self, selector: #selector(didRefreshMessageCount), name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didJumpToIdentityTab), name: YhConstant.YhNotification.didJumpToHomePageIdentityTabNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didJumpToNewsTab), name: YhConstant.YhNotification.didJumpToHomePageNewsTabNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didJumpToLifeTab), name: YhConstant.YhNotification.didJumpToHomePageLifeTabNotification, object: nil)
......@@ -368,6 +370,10 @@ extension YHHomeHoldViewPageViewController {
jumpToItemIndex(itemIndex: 2)
}
@objc func didJumpToIdentityTab() {
jumpToItemIndex(itemIndex: 1)
}
@objc func didLoadYhManager() {
if needShowManagerTipsView {
needShowManagerTipsView = false
......
......@@ -182,7 +182,7 @@ class YHImproveSchemeViewController: YHBaseViewController {
[weak self] success, error in
guard let self = self else { return }
items.removeAll()
items.append(contentsOf: viewModel.improveDetailModel.comprehensive_evaluation)
items.append(contentsOf: viewModel.improveDetailModel.improvePlanItem)
tableView.reloadData()
greetLabel.text = "尊敬的\(viewModel.improveDetailModel.username)\(viewModel.improveDetailModel.sex)"
}
......@@ -232,7 +232,11 @@ extension YHImproveSchemeViewController : UITableViewDelegate, UITableViewDataSo
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if indexPath.row == 1 {
UIViewController.current?.navigationController?.popToRootViewController(animated: false)
goTabBarBy(tabType: .home)
NotificationCenter.default.post(name: YhConstant.YhNotification.didJumpToHomePageIdentityTabNotification, object: nil)
}
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
......
......@@ -125,7 +125,7 @@ class YHImproveHKView: UIView {
@objc func didRightBtnClicked() {
let view = YHImproveSchemeTemplateListView.listView()
view.arr = item.templates
view.items = item.templates
view.show()
}
......
......@@ -300,6 +300,10 @@ extension YhConstant {
// 跳转到首页生活tab
public static let didJumpToHomePageLifeTabNotification = Notification.Name(rawValue: "com.yinhe.homePage.life")
// 跳转到首页身份tab
public static let didJumpToHomePageIdentityTabNotification = Notification.Name(rawValue: "com.yinhe.homePage.identity")
// 跳转到首页生活tab - 教育
public static let didJumpToHomePageLifeEduTabNotification = Notification.Name(rawValue: "com.yinhe.homePage.life.edu")
......
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