小程序
小游戏
企业微信
微信支付
扫描小程序码分享
分享出去的页面是有参数的,为啥接收不到参数?
5 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
shareKey 在哪里定义的 建议你logshareKey看一下
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
onShareAppMessage: function (res) { let that = this if (res.from === 'button') { // 来自页面内转发按钮 // console.log(res.target) } let path = '/pages/cart/new?shareKey=' + shareKey console.log(path) return { title: '购物车分享', path: path, } } onLoad: function (options) { console.log('options', options) } 手机打印会有这个initNativeTransServiceId. ntrans:object componentId :-961943802
分享的代码是怎么写的?当前页面有参数,分享的代码也需要把参数加上才行
代码怎么写的
参数走丢了
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
shareKey 在哪里定义的 建议你logshareKey看一下
onShareAppMessage: function (res) { let that = this if (res.from === 'button') { // 来自页面内转发按钮 // console.log(res.target) } let path = '/pages/cart/new?shareKey=' + shareKey console.log(path) return { title: '购物车分享', path: path, } } onLoad: function (options) { console.log('options', options) } 手机打印会有这个initNativeTransServiceId. ntrans:object componentId :-961943802
分享的代码是怎么写的?当前页面有参数,分享的代码也需要把参数加上才行
代码怎么写的
参数走丢了