微信小程序转发以后好友点进来以后如何才能获取参数
<button open-type=“share”>转发</button>
onShareAppMessage: function (res) {
var shareId= “12312312312”;
return {
title: ‘自定义转发标题’,
path: ‘/pages/index/index?shareId=’ + shareId,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
}
}
},