|
@@ -3,10 +3,12 @@ const util = require('@/utils/util.js').default;
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ locusValue:"",
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.warn("---mounted---",this.pvId,this.$route.meta.keepAlive)
|
|
|
+ this.locusValue = this.$route.query.locusValue || "";
|
|
|
+ console.warn("---mounted---",this.pvId,this.$route.meta.keepAlive,this.locusValue)
|
|
|
if(this.pvId && !this.$route.meta.keepAlive){
|
|
|
window.removeEventListener('beforeunload', this.pvCloseHandle);
|
|
|
window.removeEventListener('visibilitychange', this.visibilitychange);
|
|
@@ -14,14 +16,17 @@ export default {
|
|
|
if(this.starRender && typeof(this.starRender)==='function'){
|
|
|
this.starRender()
|
|
|
}
|
|
|
- let param = {
|
|
|
- type: 'PV',
|
|
|
- pvId: this.pvId,
|
|
|
- locusBehaviorName: this.locusBehaviorName,
|
|
|
- pvCurPageName: this.pvCurPageName,
|
|
|
- locusValue: this.$route.query.locusValue || "",
|
|
|
- };
|
|
|
- util.trackRequest(param);//发送统一PV埋点
|
|
|
+ if(this.pvId != "p_2cmina_23080401"){
|
|
|
+ let param = {
|
|
|
+ type: 'PV',
|
|
|
+ pvId: this.pvId,
|
|
|
+ locusBehaviorName: this.locusBehaviorName,
|
|
|
+ pvCurPageName: this.pvCurPageName,
|
|
|
+ locusValue: this.$route.query.locusValue || "",
|
|
|
+ };
|
|
|
+ util.trackRequest(param);//发送统一PV埋点
|
|
|
+ }
|
|
|
+
|
|
|
window.addEventListener('beforeunload', this.pvCloseHandle);
|
|
|
window.addEventListener('visibilitychange', this.visibilitychange);
|
|
|
}
|
|
@@ -80,6 +85,7 @@ export default {
|
|
|
pvId: this.pvId,
|
|
|
locusBehaviorName: this.locusBehaviorName,
|
|
|
pvCurPageName: this.pvCurPageName,
|
|
|
+ locusValue: this.locusValue,
|
|
|
};
|
|
|
util.trackRequest(param);//发送统一PV埋点
|
|
|
window.addEventListener('beforeunload', this.pvCloseHandle);
|
|
@@ -108,6 +114,7 @@ export default {
|
|
|
pvId: this.pvId,
|
|
|
locusBehaviorName: this.locusBehaviorName,
|
|
|
pvCurPageName: this.pvCurPageName,
|
|
|
+ locusValue: this.locusValue,
|
|
|
};
|
|
|
util.trackRequest(param);//发送统一PV埋点
|
|
|
}
|