|
|
|
@ -76,16 +76,16 @@ export const setTabUnread = (val): void => {
|
|
|
|
// console.log('store?.conversationStore.totalUnreadCount', store?.conversationStore.totalUnreadCount);
|
|
|
|
// console.log('store?.conversationStore.totalUnreadCount', store?.conversationStore.totalUnreadCount);
|
|
|
|
uni.$emit('newMessage', { count: store?.conversationStore.totalUnreadCount, type: 'message' })
|
|
|
|
uni.$emit('newMessage', { count: store?.conversationStore.totalUnreadCount, type: 'message' })
|
|
|
|
uni.setStorageSync("chat_info", { count: store?.conversationStore.totalUnreadCount, type: 'message' });
|
|
|
|
uni.setStorageSync("chat_info", { count: store?.conversationStore.totalUnreadCount, type: 'message' });
|
|
|
|
// if (unread === 0) {
|
|
|
|
if (unread === 0) {
|
|
|
|
// uni.hideTabBarRedDot({
|
|
|
|
uni.hideTabBarRedDot({
|
|
|
|
// //隐藏数字
|
|
|
|
//隐藏数字
|
|
|
|
// index: 3, //tabbar下标
|
|
|
|
index: 1, //tabbar下标
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// } else {
|
|
|
|
} else {
|
|
|
|
// uni.showTabBarRedDot({
|
|
|
|
uni.showTabBarRedDot({
|
|
|
|
// index: 3, //tabbar下标
|
|
|
|
index: 1, //tabbar下标
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const setContactTabUnread = (): void => {
|
|
|
|
export const setContactTabUnread = (): void => {
|
|
|
|
@ -103,7 +103,7 @@ export const setContactTabUnread = (): void => {
|
|
|
|
// 不是首页和聊天页,不需要设置tabbar的badge
|
|
|
|
// 不是首页和聊天页,不需要设置tabbar的badge
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const unread = uni.$UIKitStore?.sysMsgStore?.getTotalUnreadMsgsCount()
|
|
|
|
// const unread = uni.$UIKitStore?.sysMsgStore?.getTotalUnreadMsgsCount()
|
|
|
|
// if (unread === 0) {
|
|
|
|
// if (unread === 0) {
|
|
|
|
// uni.hideTabBarRedDot({
|
|
|
|
// uni.hideTabBarRedDot({
|
|
|
|
// //隐藏数字
|
|
|
|
// //隐藏数字
|
|
|
|
|