open-type='share'无效

发布于 8 年前作者 dpeng13183 次浏览最后编辑 8 年前来自 ask

<button class=‘share’  open-type=‘share’>

<image   src=‘/img/share.png’></image>

</button>

onShareAppMessage:function(res){

if (res.from === ‘button’) {

// 来自页面内转发按钮

console.log(res.target)

}

console.log(‘转发’)

return {

title: ‘’,

path: ‘’

}

}

点击后在onShareAppMessage里面的log在控制台有显示,但是小程序没有其他任何反应

0 回复
暂无回复