Commit 7a9aecf9 by zhouzy

1

1 parent 103d79b7
......@@ -95,7 +95,7 @@ export default {
templateId: '',
serialVersionUID: '',
chatId: '',
userId: ''
externalUserId: ''
},
addGroupParams: {
externalUserIds: [],
......@@ -121,16 +121,18 @@ export default {
addGroup() {
window.$wx.openEnterpriseChat(this.addGroupParams).then(res => {
this.insertParams.chatId = res.chatId
this.insertParams.userId = this.userId
this.insertParams.externalUserId = this.userId
this.insertParams.templateId = this.templateId
// console.log(this.insertParams, '99999999')
// 打开已有群聊
window.$wx.openExistedChatWithMsg({ chatId: res.chatId }).then(res => {
console.log(res,'ok');
})
//保存新群
groupChat.addChat(this.insertParams).then(res => {
console.log(res, '???')
//打开已有群聊
window.$wx.openExistedChatWithMsg({ chatId: res.chatId }).then(res => {
console.log(this.addGroupParams.chatId, '55555')
if (this.addGroupParams.chatId == '') {
//保存新群
groupChat.addChat(this.insertParams).then(res => {
console.log(res, '???')
})
}
})
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!