Browse Source

!138 bug修复

Merge pull request !138 from blue/v_3.0.0
master
blue 12 months ago
committed by Gitee
parent
commit
35c690a82d
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
  1. 5
      im-uniapp/pages/friend/friend.vue
  2. 7
      im-uniapp/pages/group/group.vue

5
im-uniapp/pages/friend/friend.vue

@ -8,7 +8,7 @@
placeholder="点击搜索好友"></uni-search-bar> placeholder="点击搜索好友"></uni-search-bar>
</view> </view>
</view> </view>
<view class="friend-tip" v-if="friendIdx.length == 0"> <view class="friend-tip" v-if="!hasFriends">
温馨提示您现在还没有任何好友快点击右上方'+'按钮添加好友吧~ 温馨提示您现在还没有任何好友快点击右上方'+'按钮添加好友吧~
</view> </view>
<view class="friend-items" v-else> <view class="friend-items" v-else>
@ -94,6 +94,9 @@ export default {
}, },
friendGroups() { friendGroups() {
return Array.from(this.friendGroupMap.values()); return Array.from(this.friendGroupMap.values());
},
hasFriends() {
return this.friendStore.friends.some(f => !f.deleted);
} }
} }
} }

7
im-uniapp/pages/group/group.vue

@ -7,7 +7,7 @@
placeholder="点击搜索群聊"></uni-search-bar> placeholder="点击搜索群聊"></uni-search-bar>
</view> </view>
</view> </view>
<view class="group-tip" v-if="groupStore.groups.length == 0"> <view class="group-tip" v-if="!hasGroups">
温馨提示您现在还没有加入任何群聊点击右上方'+'按钮可以创建群聊哦~ 温馨提示您现在还没有加入任何群聊点击右上方'+'按钮可以创建群聊哦~
</view> </view>
<view class="group-items" v-else> <view class="group-items" v-else>
@ -38,6 +38,11 @@ export default {
url: "/pages/group/group-edit" url: "/pages/group/group-edit"
}) })
} }
},
computed: {
hasGroups() {
return this.groupStore.groups.some((g) => !g.quit);
}
} }
} }
</script> </script>

Loading…
Cancel
Save