diff --git a/.DS_Store b/.DS_Store index 0451fa5..c1a2c05 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/pages/im/components/groupUserList.vue b/pages/im/components/groupUserList.vue index 5a3cfcf..20d07e2 100644 --- a/pages/im/components/groupUserList.vue +++ b/pages/im/components/groupUserList.vue @@ -3,13 +3,16 @@ - + + + 管理 + 群主 + {{ item.name }} - 管理 - 群主 - + 邀请好友 @@ -58,21 +61,25 @@ currentUser: {}, avatarSize: 40 } - }, - computed: { - contact() { - return function(targetId) { - return this.$store.getters.contactInfo(targetId) - } - } + }, + computed: { + contact() { + return function(targetId) { + return this.$store.getters.contactInfo(targetId) + } + } }, created() { - this.avatarSize = 126 / 750 * wx.getSystemInfoSync().windowWidth - console.log(this.avatarSize) + this.avatarSize = 90 / 750 * wx.getSystemInfoSync().windowWidth }, mounted() { this.initGroupInfo() - this.initUsers() + getGroupUsers(this.targetId, this.count).then(res => { + this.users = res + res.map(item => { + this.$store.dispatch('updateContact', item) + }) + }) }, methods: { initGroupInfo() { @@ -86,7 +93,6 @@ initUsers() { getGroupUsers(this.targetId, this.count).then(res => { this.users = res - console.log('群成员列表', res); }) }, hideAction(item) { @@ -237,7 +243,6 @@ } -