创建群组的提示
This commit is contained in:
@@ -74,7 +74,12 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initGroupInfo()
|
this.initGroupInfo()
|
||||||
this.initUsers()
|
getGroupUsers(this.targetId, this.count).then(res => {
|
||||||
|
this.users = res
|
||||||
|
res.map(item => {
|
||||||
|
this.$store.dispatch('updateContact', item)
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initGroupInfo() {
|
initGroupInfo() {
|
||||||
@@ -88,7 +93,6 @@
|
|||||||
initUsers() {
|
initUsers() {
|
||||||
getGroupUsers(this.targetId, this.count).then(res => {
|
getGroupUsers(this.targetId, this.count).then(res => {
|
||||||
this.users = res
|
this.users = res
|
||||||
console.log('群成员列表', res);
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
hideAction(item) {
|
hideAction(item) {
|
||||||
|
|||||||
@@ -63,13 +63,14 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '创建成功'
|
title: '创建成功'
|
||||||
})
|
})
|
||||||
this.initData()
|
|
||||||
this.onHideModal()
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: err
|
title: err.message
|
||||||
})
|
})
|
||||||
|
}).finally(() => {
|
||||||
|
this.initData()
|
||||||
|
this.onHideModal()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toGroup(targetId) {
|
toGroup(targetId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user