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

// 我的界面 未读红点显示逻辑

parent e38529d9
...@@ -237,10 +237,13 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -237,10 +237,13 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
[weak self] success, error in [weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
DispatchQueue.main.async { DispatchQueue.main.async {
let count = self.msgViewModel.unreadTotalCount var unreadCount = self.msgViewModel.unreadTotalCount
if YHButlerServiceManager.shared.isUatAllowed() {
unreadCount = self.msgViewModel.unreadTotalCount + YHButlerServiceManager.shared.unreadCount
}
for item in self.items { for item in self.items {
if item.type == .myMessage { if item.type == .myMessage {
item.isShowRedPoint = count > 0 item.isShowRedPoint = unreadCount > 0
break break
} }
} }
......
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