Commit 241450f7 by 张卓

绑定手机埋点带文章Id

parent 1f6ee1b1
...@@ -293,14 +293,14 @@ export default { ...@@ -293,14 +293,14 @@ export default {
} }
//埋点未登录时进入文章 //埋点未登录时进入文章
if(!wx.getStorageSync("sessionid")&&this.params.indexOf('articleId')!=-1) { if(!wx.getStorageSync("sessionid")&&this.params.indexOf('articleId')!=-1) {
wx.setStorageSync('articleId',true) // wx.setStorageSync('articleId',true)
// var vars = this.params.split("&"); var vars = this.params.split("&");
// for (var i = 0; i < vars.length; i++) { for (var i = 0; i < vars.length; i++) {
// var pair = vars[i].split("="); var pair = vars[i].split("=");
// if (pair[0] == 'articleId') { if (pair[0] == 'articleId') {
// wx.setStorageSync('articleId',pair[1]) wx.setStorageSync('articleId',pair[1])
// } }
// } }
} }
console.log("url", this.link + this.page + this.params, wx.getStorageSync("openid")); console.log("url", this.link + this.page + this.params, wx.getStorageSync("openid"));
this.init(); this.init();
......
...@@ -355,7 +355,8 @@ export default { ...@@ -355,7 +355,8 @@ export default {
province: this.userInfo.province, province: this.userInfo.province,
city: this.userInfo.city, city: this.userInfo.city,
otherPhone: 0, otherPhone: 0,
customerSourceType: wx.getStorageSync("articleId")?8:'' customerSourceType: wx.getStorageSync("articleId")?8:'',
customerSourceId: wx.getStorageSync("articleId") || ''
}; };
if (this.$store.state.spokesmanGroupId != "") { if (this.$store.state.spokesmanGroupId != "") {
query.spokesmanRelId = this.$store.state.spokesmanRelId; query.spokesmanRelId = this.$store.state.spokesmanRelId;
......
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