button open-type="share" 不写onShareAppMessage 能分享   写了onShareAppMessage 不触发

<button open-type="share" class='fenxiang'></button>

//分享

onShareAppMessage: function (res) {

console.log('123');

if (res.from === 'button') {

console.log(res.target)

}

return {

title: '123123',

path: '/pages/list/play/play?id='+this.data.playid,

success: function (res) {

},

fail: function (res) {

}

}

},

// 生命周期函数--监听页面显示

onShow: function() {


},


展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • 亚马逊河游客

    14人对此回答表示赞同

    问题未复现。请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段。

    展开
    14
    1回复
    发布于 6年前

    评论(1)

    收起评论

    • Shriya 2019-02-13 12:29

      已解决在app.js

      回复
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部