关于iPhone转发的问题

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

关于转发的问题,在安卓的button和menu均正常,在IOS的menu中也正常,但到了ios的button则出现有执行onShareAppMessage函数,return后设备假死。

wsml:

<button class=‘jump’ open-type=‘share’ bindtap=‘back’>分享</button>

js:

onShareAppMessage: function (res) {

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

        console.log(res.target)

    }

    return {

        title: title,

        imageUrl: ‘https:’ + image,

        path: ‘pages/jumpprogram/jumpprogram?she=“2”&goods_id=’ + goods_id + ‘&weshop_id=’ + weshop_id

    }

}

所有参数均正常,console无报错

测试环境:远程调试环境

2 回复
wren
wren1 楼6 年前

麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

taoyao
taoyao2 楼5 年前

遇到同样的问题…