评论

小程序分享朋友圈

小程序分享朋友圈

1.要求基础库2.11以上

onShow() {
this.onLoad()
this.ANNN()
},
ANNN() {
wx.showShareMenu({
withShareTicket: true,
menus: [‘shareAppMessage’, ‘shareTimeline’]
})
},
onShareAppMessage() {
let openid = this.data.openid

return {
  title: '话费石化油卡充值',
  imageUrl: "/images/1.png",
  path: '/HF/home/home?TG=' + openid
}

},
onShareTimeline() {
let openid = this.data.openid

return {
  title: '话费石化油卡充值',
  imageUrl: "/images/1.png",
  path: '/HF/home/home?TG=' + openid
}

},
3.效果

最后一次编辑于  2020-12-27  
点赞 0
收藏
评论

1 个评论

登录 后发表内容