Authored by 李奇

修改页面上报名称

... ... @@ -55,7 +55,7 @@
fixIosTop: false,
// for yas report
pageName: 'FP_category_h5',
pageName: 'FP_BLK_Category_h5',
pageParam: locationQuery.sort || ''
};
... ...
... ... @@ -51,7 +51,7 @@
cartCount: 0,
// for yas report
pageName: 'FP_new_h5',
pageName: 'FP_BLK_New_h5',
pageParam: ''
};
},
... ...
... ... @@ -43,7 +43,7 @@
filter: {},
// for yas report
pageName: 'FP_search_h5',
pageName: 'FP_BLK_Search_h5',
};
},
computed: {
... ...
... ... @@ -94,7 +94,7 @@
cartCount: 0,
// for yas report
pageName: 'FP_brand_h5',
pageName: 'FP_BLK_Brand_h5',
pageParam: locationQuery.brandId || ''
};
},
... ...
... ... @@ -15,7 +15,12 @@ export default {
data() {
return {
componentStatus: {},
waiting: []
waiting: [],
pageNameMap: {
'channel.home': 'FP_BLK_Home_h5',
'channel.channelHome.channelMen': 'FP_BLK_MenHome_h5',
'channel.channelHome.channelWomen': 'FP_BLK_WomenHome_h5',
}
};
},
computed: {
... ... @@ -60,7 +65,12 @@ export default {
},
methods: {
report(param) {
console.log('<<<<<<<< report >>>>>>>>', param)
_.each(param, item => {
if (this.pageNameMap[item.P_NAME]) {
item.P_NAME = this.pageNameMap[item.P_NAME];
}
});
this.$store.dispatch(REPORT_YAS, {
params: {
appop: 'YB_SHOW_EVENT',
... ... @@ -133,7 +143,6 @@ export default {
}
if (param) {
console.log(`${reportData.template_name} push`);
_.isArray(param) ? (this.waiting = this.waiting.concat(param)) : this.waiting.push(param);
}
}
... ... @@ -143,8 +152,8 @@ export default {
const parentRect = $parent.getBoundingClientRect();
return ((parentRect.top >= rect.top && parentRect.top <= (rect.top + rect.height)) ||
((parentRect.top + parentRect.height) >= rect.top && (parentRect.top + parentRect.height) <= (rect.top + rect.height)) ||
(rect.top >= parentRect.top && (rect.top + rect.height) <= (parentRect.top + parentRect.height)));
((parentRect.top + parentRect.height) >= rect.top && (parentRect.top + parentRect.height) <= (rect.top + rect.height)) ||
(rect.top >= parentRect.top && (rect.top + rect.height) <= (parentRect.top + parentRect.height)));
},
checkReqFromChild(index) {
// 重置子组件显示状态方可重新记录
... ... @@ -153,7 +162,6 @@ export default {
},
focusComponentDataRecord(index, param) {
if (this.componentStatus[index]) {
console.log('focus push')
this.waiting.push(param);
}
}
... ...