This commit is contained in:
cansnow
2026-01-15 22:50:35 +08:00
parent dd16348558
commit db99bebcb4
26 changed files with 433 additions and 284 deletions
+25 -7
View File
@@ -14,9 +14,26 @@
<SearchbarPlace @click="toSearch">搜索</SearchbarPlace>
</view>
<uni-list class="contact_menus">
<uni-list-item title="新的好友" :showBadge="storeUnHandleFriendApplicationNum>0" :badgeText="storeUnHandleFriendApplicationNum+''" badgeType="error" thumbSize="lg" to="/pages/contact/applicationList/index?applicationType=NewFriend" thumb="/static/images/contact_new_friend.png"></uni-list-item>
<!-- <uni-list-item title="新的群组" thumbSize="lg" to="/pages/contact/applicationList/index?applicationType=NewGroup" thumb="/static/images/contact_new_group.png"></uni-list-item> -->
<uni-list-item title="群聊" thumbSize="lg" to="/pages/contact/groupList/index" thumb="/static/images/contact_my_group.png"></uni-list-item>
<uni-list-item title="新的好友"
:showBadge="storeUnHandleFriendApplicationNum>0"
:badgeText="storeUnHandleFriendApplicationNum+''"
badgeType="error"
thumbSize="lg"
to="/pages/contact/applicationList/index?applicationType=NewFriend"
thumb="/static/images/contact_new_friend.png"></uni-list-item>
<uni-list-item
title="新的群组"
:showBadge="storeUnHandleGroupApplicationNum>0"
:badgeText="storeUnHandleGroupApplicationNum+''"
badgeType="error"
thumbSize="lg"
to="/pages/contact/applicationList/index?applicationType=NewGroup"
thumb="/static/images/contact_new_group.png"></uni-list-item>
<uni-list-item
title="群聊"
thumbSize="lg"
to="/pages/contact/groupList/index"
thumb="/static/images/contact_my_group.png"></uni-list-item>
</uni-list>
<choose-index-list v-if="getIndexData.dataList.length > 0" @itemClick="userClick" :height="`${listHeight}px`"
@@ -46,7 +63,11 @@
};
},
computed: {
...mapGetters(["storeFriendList",'storeUnHandleFriendApplicationNum']),
...mapGetters([
"storeFriendList",
'storeUnHandleFriendApplicationNum',
'storeUnHandleGroupApplicationNum'
]),
getIndexData() {
return formatChooseData(this.storeFriendList);
},
@@ -54,9 +75,6 @@
mounted() {
this.getListHeight();
},
async onShow() {
//await this.getFriendList();
},
methods: {
...mapActions('contact',['getFriendList']),
toSearch(){