blue
12 months ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with
10 additions and
2 deletions
-
im-uniapp/pages/friend/friend.vue
-
im-uniapp/pages/group/group.vue
|
|
|
@ -8,7 +8,7 @@ |
|
|
|
placeholder="点击搜索好友"></uni-search-bar> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="friend-tip" v-if="friendIdx.length == 0"> |
|
|
|
<view class="friend-tip" v-if="!hasFriends"> |
|
|
|
温馨提示:您现在还没有任何好友,快点击右上方'+'按钮添加好友吧~ |
|
|
|
</view> |
|
|
|
<view class="friend-items" v-else> |
|
|
|
@ -94,6 +94,9 @@ export default { |
|
|
|
}, |
|
|
|
friendGroups() { |
|
|
|
return Array.from(this.friendGroupMap.values()); |
|
|
|
}, |
|
|
|
hasFriends() { |
|
|
|
return this.friendStore.friends.some(f => !f.deleted); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
placeholder="点击搜索群聊"></uni-search-bar> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="group-tip" v-if="groupStore.groups.length == 0"> |
|
|
|
<view class="group-tip" v-if="!hasGroups"> |
|
|
|
温馨提示:您现在还没有加入任何群聊,点击右上方'+'按钮可以创建群聊哦~ |
|
|
|
</view> |
|
|
|
<view class="group-items" v-else> |
|
|
|
@ -38,6 +38,11 @@ export default { |
|
|
|
url: "/pages/group/group-edit" |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
hasGroups() { |
|
|
|
return this.groupStore.groups.some((g) => !g.quit); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|