给你点赞
onShareAppMessage自定义分享内容无效[代码]onShareAppMessage: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res.from);[代码][代码] [代码][代码]let _this = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]let shareObj = {[代码][代码] [代码][代码]title: [代码][代码]'自定义转发标题'[代码][代码],[代码][代码] [代码][代码]path: [代码][代码]'/pages/main/main'[代码][代码],[代码][代码] [代码][代码]//imageUrl: _this.cardPic,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]"转发成功!"[代码][代码]);[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]console.log(shareObj);[代码][代码] [代码][代码]return[代码] [代码]shareObj;[代码][代码]}[代码] 不管是点击右上角的分享,还是按钮设置 open-type="share" 都没有执行这个 onShareAppMessage 方法 基础库版本:154
2020-01-14