
onShareAppMessage: function (res) {
const that = this
const thingDetail = that.data.thingDetail
// const userId = that.data.userId===‘none’ ? that.data.userInfo._id : that.data.userId
let userId
if(that.data.userId===‘none’){
userId = that.data.userInfo._id
}else{
userId = that.data.userId
}
return {
title: thingDetail.thingTitle,
path: ‘/pages/detail/detail?isByShere=true&userId=’+ userId + ‘&_id=’ + thingDetail._id+"&category=" + thingDetail.categoryName,
imageUrl: thingDetail.tempImages[0],
fail: function(res){
that.showPrompt(‘暂时无法分享’)
}
}
}
这是为什么呀,我不知道我哪里有问题呀,真机调试只要点了分享就有这个