onShareAppMessage: function (fenxiangtuihui) {
console.log(fenxiangtuihui);
var shipindi = fenxiangtuihui.target.dataset.id;
var that = this;
var userid =wx.getStorageSync('userid')
that.setData({
shareid: fenxiangtuihui.target.dataset.id
});
return {
title: '转发标题',
path: 'pages/b/a?userid=' + fenxiangtuihui.target.dataset.id,
imageUrl:'/image/1123.jpg',
success: function(zhuanfachenggong) {
console.log(zhuanfachenggong);
//转发成功,无法添加Php数据库,体验版好用,正式上线就不好用。
wx.request({
url: url + 'php/zhuanfa',
method: 'get',
header: {'content-type': 'application/x-www-form-urlencoded'},
data: { userid: userid, videoid: shipindi},
success: function() {
wx.redirectTo({
url: "/pages/yijingzhuanfa/yijingzhuanfa"
});
},
});
},
}
},
微信小程序开发问题解答
微信小程序开发者回答:
已经没有转发回调了
https://developers.weixin.qq.com/community/develop/doc/0000447a5b431807af57249a551408
本文网址:http://www.91bianli.com/kaifazhinan/78543.html