feat:群聊问题修复+相关项目文档更新

This commit is contained in:
bujinyuan
2026-03-05 09:24:49 +08:00
parent 4f55ef6de0
commit 8ee870636c
29 changed files with 1155 additions and 225 deletions

View File

@@ -8,7 +8,7 @@
功能
- 底部导航栏4 Tab消息 / 联系人 / 会议 / 我的
- 选中态使用 filled 图标 + Primary 未选中态使用轮廓图标 + Muted
- 消息 Tab 支持未读消息 badge
- 消息 Tab 支持未读消息 badge联系人 Tab 支持好友申请未读 badge
- 使用 switchTab 跳转
-->
<template>
@@ -43,9 +43,11 @@
* 功能:
* - 跳转使用 uni.switchTab确保与 pages.json tabBar 配置的页面一致
* - 消息 Tabindex=0显示全局未读消息 badge
* - 联系人 Tabindex=1显示待处理好友申请 badge
* - 选中态使用 filled 图标变体以增强视觉区分
*/
import { useChatStore } from '@/store/chat'
import { useContactStore } from '@/store/contact'
export default {
name: 'CustomTabBar',
@@ -91,6 +93,10 @@ export default {
const chatStore = useChatStore()
return chatStore.totalUnread
}
if (index === 1) {
const contactStore = useContactStore()
return contactStore.pendingCount
}
return 0
}
}