Commit f47888de authored by David黄金龙's avatar David黄金龙

修改 首页 跳转

parent 1cd63921
......@@ -126,6 +126,9 @@ class YHCommunityViewController: YHBaseViewController {
make.edges.equalToSuperview()
}
NotificationCenter.default.addObserver(self, selector: #selector(goActivityVC), name: YhConstant.YhNotification.goActivityVCNotifiction, object: nil)
for i in 0..<arrItemTitles.count {
if i != 0 {
let vc = YHActivityListViewController()
......@@ -203,6 +206,10 @@ class YHCommunityViewController: YHBaseViewController {
self.unreadCount = 0
}
}
@objc func goActivityVC() {
segmentedView.selectItemAt(index: 1)
}
}
extension YHCommunityViewController: JXSegmentedViewDelegate {
......
......@@ -73,6 +73,15 @@ extension YHAiRadarAreaView {
@objc func tapButton(gestureRecognizer:UITapGestureRecognizer) {
goTabBarBy(tabType: .community)
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25, execute: {
// NotificationCenter.default.post(name: YhConstant.YhNotification.goActivityVCNotifiction, object: nil)
// })
DispatchQueue.main.async {
NotificationCenter.default.post(name: YhConstant.YhNotification.goActivityVCNotifiction, object: nil)
}
}
func setupUI() {
......
......@@ -246,6 +246,10 @@ extension YhConstant {
// 点击文件清单空视图返回服务tab页
public static let didClickFileListBackToServiceTabNotifiction = Notification.Name(rawValue: "com.yinhe.certificate.backToService")
// 跳转 社区的活动页
public static let goActivityVCNotifiction = Notification.Name(rawValue: "com.yinhe.goActivityVCNotifiction")
}
}
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