/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
return {
title: "分享标题",
path: "",
imageUrl: ""
};
},
// //配置分享到朋友圈
onShareTimeline() {
console.log(this.data.videoUrl)
let videoUrl = this.data.videoUrl
return {
title: "分享标题",
query: 'a=1111',
};
},
query 赋值换成路径试试