Commit 47bedda9 authored by Steven杜宇's avatar Steven杜宇

// 我的页面

parent cad4fc55
......@@ -165,9 +165,14 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
NotificationCenter.default.addObserver(self, selector: #selector(loginSuccess), name: YhConstant.YhNotification.didLoginSuccessNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(clearUnreadBadge), name: YhConstant.YhNotification.didMarkAllMessagesReadedNotifiction, object: nil)
}
deinit {
NotificationCenter.default.removeObserver(self)
}
func requestLikeCollectionCount() {
if YHLoginManager.shared.isLogin() {
self.likeViewModel.getLikeCollectionRecentScanCountInfo {
......@@ -196,9 +201,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
self.tableView .reloadData()
}
}
}
}
@objc func clearUnreadBadge() {
DispatchQueue.main.async {
for item in self.items {
if item.type == .myMessage {
item.isShowRedPoint = false
break
}
}
self.tableView .reloadData()
}
}
}
......
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