This commit is contained in:
yanran200730
2023-03-31 17:40:09 +08:00
parent c8981d640f
commit fbb39b6d50

View File

@@ -163,25 +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.wx.invoke(['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 => { }, e => {
console.log(e) console.log(e)
this.isShow = false this.isShow = false
}]) })
} else { } else {
this.wx.invoke(['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 => { }, e => {
console.log(e) console.log(e)
this.isShow = false this.isShow = false
}]) })
} }
} }
} }