Commit 00d07a4d authored by zhangyanni's avatar zhangyanni

注册用户埋点

parent ac441f0d
......@@ -120,7 +120,10 @@
registerChannel:this.channelData.channelId,
registerPcOrApp:1,
registerSource:1,
registerType:0
registerType:0,
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
};
this.fullscreenLoading = true;
api.resultUserRegisterAxios(params).then((res)=>{
......
......@@ -155,7 +155,10 @@
registerPcOrApp:0,
registerSource:this.$route.query.refereesId>0?2:
this.$route.query.registerChannel>0?1:0,
registerType:1
registerType:1,
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
},params1 = this.$route.query.isEmail?this.outSideParams:null;
this.fullscreenLoading = true;
api.resultUserRegisterAxios(params,params1).then((res)=>{
......
......@@ -149,7 +149,9 @@
registerPcOrApp:0,
registerSource:this.$route.query.refereesId>0?2:
this.$route.query.registerChannel>0?1:0,
// registerType:0
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
},params1 = this.$route.query.isEmail?this.outSideParams:null;
this.fullscreenLoading = true;
api.resultUserRegisterAxios(params,params1).then((res)=>{
......
......@@ -363,7 +363,17 @@
this.applyVisible= false;
this.getDetailInfo();
},
setCookieFunc(){
if(this.$route.query.rTargetType){
this.publicFun.setUserInfoCookie("rTargetType",this.$route.query.rTargetType);
}
if(this.$route.query.rDeviceId){
this.publicFun.setUserInfoCookie("rDeviceId",this.$route.query.rDeviceId);
}
if(this.$route.query.rEmpId){
this.publicFun.setUserInfoCookie("rEmpId",this.$route.query.rEmpId);
}
}
},
created(){
......@@ -372,6 +382,11 @@
},
mounted(){
this.getDetailInfo();
if(this.$route.query.rTargetType){
this.publicFun.setUserInfoCookie("rTargetType",this.$route.query.rTargetType);
}
this.setCookieFunc();
}
}
</script>
......
......@@ -163,7 +163,10 @@
accountName: this.yzCodeForm.phone,
code: this.yzCodeForm.code,
appId:"wx725d0e129f703106",
openid:this.$route.query.id
openid:this.$route.query.id,
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
}
this.fullscreenLoading = true;
......
......@@ -144,7 +144,10 @@
registerPcOrApp:1,
registerSource:this.$route.query.refereesId>0?2:
this.$route.query.registerChannel>0?1:0,
registerType:1
registerType:1,
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
},params1 = this.$route.query.isEmail?this.outSideParams:null;
this.fullscreenLoading = true;
api.resultUserRegisterAxios(params,params1).then((res)=>{
......
......@@ -146,7 +146,9 @@
registerPcOrApp:1,
registerSource:this.$route.query.refereesId>0?2:
this.$route.query.registerChannel>0?1:0,
// registerType:0
rDeviceId:this.publicFun.getCookie("rDeviceId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rDeviceId"))) : null,
rEmpId:this.publicFun.getCookie("rEmpId") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rEmpId"))) : null,
rTargetType:this.publicFun.getCookie("rTargetType") ? JSON.parse(this.Base64.decode(this.publicFun.getCookie("rTargetType"))) : null
},params1 = this.$route.query.isEmail?this.outSideParams:null;
this.fullscreenLoading = true;
api.resultUserRegisterAxios(params,params1).then((res)=>{
......
......@@ -784,6 +784,17 @@
}, 1);
}
},
setCookieFunc(){
if(this.$route.query.rTargetType){
this.publicFun.setUserInfoCookie("rTargetType",this.$route.query.rTargetType);
}
if(this.$route.query.rDeviceId){
this.publicFun.setUserInfoCookie("rDeviceId",this.$route.query.rDeviceId);
}
if(this.$route.query.rEmpId){
this.publicFun.setUserInfoCookie("rEmpId",this.$route.query.rEmpId);
}
}
},
mounted(){
// ES6 标准
......@@ -801,6 +812,7 @@
globalMsg.$on("scrollToTop",()=>{
this.checkWxScroll();
})
this.setCookieFunc();
// this.publicFun.setUserInfoCookie("projecttype",0);
},
beforeRouteLeave(to,from,next){
......
......@@ -989,11 +989,23 @@
this.$toast(err);
})
},
setCookieFunc(){
if(this.$route.query.rTargetType){
this.publicFun.setUserInfoCookie("rTargetType",this.$route.query.rTargetType);
}
if(this.$route.query.rDeviceId){
this.publicFun.setUserInfoCookie("rDeviceId",this.$route.query.rDeviceId);
}
if(this.$route.query.rEmpId){
this.publicFun.setUserInfoCookie("rEmpId",this.$route.query.rEmpId);
}
}
},
mounted(){
this.getProjectDetail();
this.setCookieFunc();
globalMsg.$on("scrollToTop",()=>{
this.checkWxScroll();
})
......
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