微信小程序带参数转发
onShareAppMessage(ops) {
if (ops.from === 'button') {
console.log(ops.target)
}
return {
title: '请帮我砍一刀',
path: 'pages/bargaindetail/?tenantid=' + app.globalData.id+
"&avatarUrl=" + this.data.userInfo.avatarUrl +
"&nickName=" + this.data.userInfo.nickName,
success: function(res) {
// 转发成功
console.log("转发成功:" + JSON.stringify(res));
},
fail: function(res) {
// 转发失败
console.log("转发失败:" + JSON.stringify(res));
}
}
},