This commit is contained in:
liuye
2023-04-03 15:07:48 +08:00

View File

@@ -163,23 +163,27 @@ export default {
} }
if (data.tapIndex === 0 || data.tapIndex === 1) { if (data.tapIndex === 0 || data.tapIndex === 1) {
if (data.tapIndex === 0) { if (data.tapIndex === 0) {
this.wxInvoke(['shareAppMessage', { wx.invoke('shareAppMessage', {
title: this.info.title, title: this.info.title,
desc: this.info.tableExplain, desc: this.info.tableExplain,
link: this.linkUrl, link: this.linkUrl,
imgUrl: this.info.headPicture imgUrl: this.info.headPicture,
}, () => { enableIdTrans: 0
}, e => {
console.log(e)
this.isShow = false this.isShow = false
}]) })
} else { } else {
this.wxInvoke(['shareWechatMessage', { wx.invoke('shareWechatMessage', {
title: this.info.title, title: this.info.title,
desc: this.info.tableExplain, desc: this.info.tableExplain,
link: this.linkUrl, link: this.linkUrl,
imgUrl: this.info.headPicture imgUrl: this.info.headPicture,
}, () => { enableIdTrans: 0
}, e => {
console.log(e)
this.isShow = false this.isShow = false
}]) })
} }
} }
} }