Commit 6650997c by 张卓

引客渠道埋点

parent 76f23ffe
...@@ -10,7 +10,7 @@ console.log(process.env,'-----------------config------') ...@@ -10,7 +10,7 @@ console.log(process.env,'-----------------config------')
}, },
//POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录 //POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录
addRecord(data) { 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 { ...@@ -48,8 +48,6 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','')
Object.assign(this.$data, this.$options.data()); Object.assign(this.$data, this.$options.data());
console.log( console.log(
options, options,
...@@ -135,6 +133,8 @@ export default { ...@@ -135,6 +133,8 @@ export default {
this.page = options.backpath; this.page = options.backpath;
this.params += "&" + serialize(options.params); this.params += "&" + serialize(options.params);
} else if (options.scene) { } else if (options.scene) {
console.log(options)
console.log(222222)
if(options.scene.indexOf('_') == -1){ if(options.scene.indexOf('_') == -1){
//新二维码扫码进入 //新二维码扫码进入
indexApi.getShareSceneRecord(options.scene).then(res=>{ indexApi.getShareSceneRecord(options.scene).then(res=>{
...@@ -154,6 +154,8 @@ export default { ...@@ -154,6 +154,8 @@ export default {
newRegisterFlag: 0, newRegisterFlag: 0,
} }
).then(ele=>{ ).then(ele=>{
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','')
}) })
} }
let params = ''; let params = '';
......
...@@ -150,7 +150,9 @@ export default { ...@@ -150,7 +150,9 @@ export default {
}); });
}, },
addRecord(flag) { 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')) { if(wx.getStorageSync('attractingCustomerChannelId')) {
indexApi.addRecord( 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