Commit f76c9b09 by 王志慧

commit

1 parent 028ba3d0
......@@ -61,25 +61,42 @@ export default {
mounted() {
this.showLoading()
let { id } = this.getQuery()
console.log('id',id)
// id = '1103'
console.log(id)
// id = '1127'
if (id) {
this.chatId = id
this.initData(id)
this.hideLoading()
} else {
wxConfig.init(['getCurExternalContact']).then(() => {
wxConfig.init(['getContext', 'getCurExternalChat']).then(() => {
wxConfig
.getCurExternalContact()
.then(chatId => {
this.chatId = chatId
this.initData(id)
.getContext()
.then(data => {
if (data.entry == 'group_chat_tools') {
wxConfig
.getCurExternalChat()
.then(chatId => {
this.chatId = chatId
this.initData(id)
})
.catch(e => {
this.hideLoading()
Dialog.alert({
title: '提示',
message: '该功能暂不支持在单聊侧边栏打开',
confirmButtonText: '知道了',
confirmButtonColor: '#3975c6'
}).then(() => {
wx.closeWindow()
})
})
}
})
.catch(e => {
this.hideLoading()
Dialog.alert({
title: '提示',
message: '该功能暂不支持在群侧边栏打开',
message: '该功能暂不支持在单聊侧边栏打开',
confirmButtonText: '知道了',
confirmButtonColor: '#3975c6'
}).then(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!