Commit 6650997c by 张卓

引客渠道埋点

parent 76f23ffe
......@@ -10,7 +10,7 @@ console.log(process.env,'-----------------config------')
},
//POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录
addRecord(data) {
return requestPOST(`${process.env.OLSHOP_URL}/scanCodeCustomerRecord/addRecord`, {data});
return requestPOST(`${process.env.OLSHOP_URL}/scanCodeCustomerRecord/addRecord`, data);
},
}
\ No newline at end of file
......@@ -48,8 +48,6 @@ export default {
};
},
onLoad(options) {
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','')
Object.assign(this.$data, this.$options.data());
console.log(
options,
......@@ -135,6 +133,8 @@ export default {
this.page = options.backpath;
this.params += "&" + serialize(options.params);
} else if (options.scene) {
console.log(options)
console.log(222222)
if(options.scene.indexOf('_') == -1){
//新二维码扫码进入
indexApi.getShareSceneRecord(options.scene).then(res=>{
......@@ -154,6 +154,8 @@ export default {
newRegisterFlag: 0,
}
).then(ele=>{
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','')
})
}
let params = '';
......
......@@ -150,7 +150,9 @@ export default {
});
},
addRecord(flag) {
console.log(flag,99999999,wx.getStorageSync('attractingCustomerChannelId'),this.openid)
console.log(wx.getStorageSync('attractingCustomerChannelId'))
console.log(this.openid)
console.log(99999)
//埋点引客渠道
if(wx.getStorageSync('attractingCustomerChannelId')) {
indexApi.addRecord(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment