小程序
小游戏
企业微信
微信支付
扫描小程序码分享
转发的时候带上转发者的用户ID,当别人注册的时候作为参数传给后台,这样就可以统计谁分享了多少了
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
pages/index/index?userID=1 这样不就可以了?
注册的页面获取这个ID 在注册的时候在传给后台接口就可以统计了
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
onShareAppMessage: function(res) {
const title = "找场馆";
const imageUrl = this.data.url
var path = 'pages/findLoc/nIndex/nIndex';
if (wx.getStorageSync("user_id")) {
const fronUser = wx.getStorageSync("user_id");
path = path + '?fronUser=' + fronUser;
}
call.myPageShare(res, title, path, imageUrl)
我的path已经带了,但是我用另外一个手机测试,打开这个分享的时候,没有获取到这个options.fronUser
获取不到 肯定是你那个if不成立啊 没有带参数就转发出去了
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
pages/index/index?userID=1 这样不就可以了?
注册的页面获取这个ID 在注册的时候在传给后台接口就可以统计了
onShareAppMessage: function(res) {
const title = "找场馆";
const imageUrl = this.data.url
var path = 'pages/findLoc/nIndex/nIndex';
if (wx.getStorageSync("user_id")) {
const fronUser = wx.getStorageSync("user_id");
path = path + '?fronUser=' + fronUser;
}
call.myPageShare(res, title, path, imageUrl)
}
我的path已经带了,但是我用另外一个手机测试,打开这个分享的时候,没有获取到这个options.fronUser
获取不到 肯定是你那个if不成立啊 没有带参数就转发出去了