Commit 9f53bf9b authored by Alex朱枝文's avatar Alex朱枝文

首页银河管家样式更改

parent 3cc4e40c
...@@ -91,7 +91,6 @@ class YHHomePageViewController: YHBaseViewController { ...@@ -91,7 +91,6 @@ class YHHomePageViewController: YHBaseViewController {
} }
YHHUD.hide() YHHUD.hide()
if success { if success {
// YHButlerServiceManager.shared.clearUnreadCount()
// 需要回到页面再刷新已读,因为不在当前页 // 需要回到页面再刷新已读,因为不在当前页
self.needUpdateMgrItem = true self.needUpdateMgrItem = true
} }
...@@ -113,10 +112,13 @@ private extension YHHomePageViewController { ...@@ -113,10 +112,13 @@ private extension YHHomePageViewController {
} }
needUpdateMgrItem = false needUpdateMgrItem = false
let showButler = true let showButler = true
let serviceMessage = YHButlerServiceManager.shared.getLastMessage() // 不获取最新消息内容了
// let serviceMessage = YHButlerServiceManager.shared.getLastMessage()
let serviceMessage = YHButlerServiceMessage()
serviceMessage.content = "一对一专属服务"
// 因为七鱼的消息有bug,某些消息不处理未读状态,目前根据未读数量unreadCount来处理红点 // 因为七鱼的消息有bug,某些消息不处理未读状态,目前根据未读数量unreadCount来处理红点
serviceMessage?.isRead = YHButlerServiceManager.shared.unreadCount == 0 serviceMessage.isRead = YHButlerServiceManager.shared.unreadCount == 0
self.homeHeaderView.orderTipsView.customerServiceMessage = YHButlerServiceHomeInfoMessage(showButler: showButler, serviceMessage: serviceMessage) self.homeHeaderView.orderTipsView.customerServiceMessage = YHButlerServiceHomeInfoMessage(showButler: showButler, serviceMessage: serviceMessage)
} }
...@@ -325,7 +327,9 @@ private extension YHHomePageViewController { ...@@ -325,7 +327,9 @@ private extension YHHomePageViewController {
} }
func setupNotification() { func setupNotification() {
NotificationCenter.default.addObserver(self, selector: #selector(didQiYuReceiveNewMsg), name: YhConstant.YhNotification.didQiYuReceiveNewMsgNotification, object: nil) // 改为不监听消息到来,而是未读消息数量改变
// NotificationCenter.default.addObserver(self, selector: #selector(didQiYuReceiveNewMsg), name: YhConstant.YhNotification.didQiYuReceiveNewMsgNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didQiYuReceiveNewMsg), name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didRevUatParam), name: YhConstant.YhNotification.didRevUatParam, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(didRevUatParam), name: YhConstant.YhNotification.didRevUatParam, object: nil)
} }
} }
......
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