Commit f76c9b09 by 王志慧

commit

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