..
This commit is contained in:
@@ -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,'群信息。。。。。')
|
||||
|
||||
Reference in New Issue
Block a user