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 }) {