onShareAppMessage带参分享 onLoad里面获取参数不全
onShareAppMessage: async function (option) { let userinfo = await getUserInfo(); // 得到用户信息id path拼上id console.log( "分享地址111:" , `/pages/detailadv/detailadv?kk=123&uid=${ this .data.uid}&share=${userinfo.id}&name=520`); // path: `/pages/detailadv/detailadv?kk=123&uid=${this.data.uid}&share=${userinfo.id}&name=520`, return { title: "广告详情" , path: `/pages/detailadv/detailadv?kk=123&uid=${ this .data.uid}&share=${userinfo.id}&name=520`, imageUrl: undefined } }, |
然而在onLoad 里面参数只能获取到uid