...
|
...
|
@@ -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);
|
|
|
}
|
|
|
}
|
...
|
...
|
|