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