小程序分享朋友圈
发布于 3 年前 作者 tmao 342 次浏览 来自 分享

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.效果

1 回复

目前只支持Android手机

回到顶部