This commit is contained in:
2022-02-18 17:45:52 +08:00
parent a290ad8df8
commit ae7b9ead46
3 changed files with 29 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="container">
<view class="members u-border-bottom">
<group-user-list :targetId="targetId" :count="14" />
<group-user-list ref="userList" :targetId="targetId" :count="14" />
</view>
<u-cell-group class="cells" :border="false" >
@@ -94,11 +94,15 @@
})
this.initData()
uni.$on('groupAnnouncementCreated', this.initData)
uni.$on('groupInvitedUser', this.updateUserList)
},
onUnload() {
uni.$off('groupAnnouncementCreated')
},
methods: {
updateUserList() {
this.$refs.userList.initUsers()
},
initData() {
getGroupInfo(this.targetId).then(res => {
console.log(res,'群信息。。。。。')