Commit 7a9aecf9 by zhouzy

1

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