From 77b77cd25b2456af294474b994509ef82d98f6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 14 Jul 2025 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=A2=9E=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B=E7=9A=84=E6=9C=AA=E8=AF=BB=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contact/index/components/ContactMenus.vue | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pages/contact/index/components/ContactMenus.vue b/pages/contact/index/components/ContactMenus.vue index 60fb15b..30b951d 100644 --- a/pages/contact/index/components/ContactMenus.vue +++ b/pages/contact/index/components/ContactMenus.vue @@ -13,6 +13,25 @@ {{ item.title }} + + @@ -50,6 +69,12 @@ export default { return {}; }, computed: { + ...mapGetters([ + "storeRecvFriendApplications" + ]), + ContactMenuTypes() { + return ContactMenuTypes; + }, getMenus() { return [ { @@ -84,6 +109,11 @@ export default { }, ]; }, + // 新增未处理好友申请数量 + unreadNewFriendCount() { + if (!this.storeRecvFriendApplications) return 0; + return this.storeRecvFriendApplications.filter(item => item.handleResult === 0).length; + }, }, methods: { menuClick({ type }) {