...
|
...
|
@@ -87,23 +87,49 @@ class ResourceShowYasRpter { |
|
|
if ($.inviewport($theFloor, { threshold: 0 })) {
|
|
|
// 楼层可见
|
|
|
$theFloor.find('ul > li').each((aIndex, theA) => {
|
|
|
let $theA = $(theA);
|
|
|
let href = $theA.attr('data-href');
|
|
|
|
|
|
F_INDEX = $theFloor.data('id') + 1;
|
|
|
|
|
|
if ($.inviewport($theA, { threshold: 0 }) && href) {
|
|
|
floorsRawArr.push({
|
|
|
href: href,
|
|
|
I_INDEX: aIndex + 1,
|
|
|
F_INDEX,
|
|
|
F_ID,
|
|
|
F_NAME
|
|
|
});
|
|
|
if (F_NAME === 'focus') {
|
|
|
let len = $theFloor.data('num');
|
|
|
|
|
|
if (aIndex > 0 && aIndex < len + 1) { // 轮播loop会复制swiper元素 需截取
|
|
|
let $theA = $(theA);
|
|
|
let href = $theA.attr('data-href');
|
|
|
let iIndex = $theA.data('item-idx');
|
|
|
|
|
|
F_INDEX = $theFloor.data('id') + 1;
|
|
|
|
|
|
if ($.inviewport($theA, {
|
|
|
threshold: 0
|
|
|
}) && href) {
|
|
|
floorsRawArr.push({
|
|
|
href: href,
|
|
|
I_INDEX: iIndex + 1,
|
|
|
F_INDEX,
|
|
|
F_ID,
|
|
|
F_NAME
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
let $theA = $(theA);
|
|
|
let href = $theA.attr('data-href');
|
|
|
let iIndex = $theA.data('item-idx');
|
|
|
|
|
|
F_INDEX = $theFloor.data('id') + 1;
|
|
|
|
|
|
if ($.inviewport($theA, {
|
|
|
threshold: 0
|
|
|
}) && href) {
|
|
|
floorsRawArr.push({
|
|
|
href: href,
|
|
|
I_INDEX: iIndex + 1,
|
|
|
F_INDEX,
|
|
|
F_ID,
|
|
|
F_NAME
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// console.log('ssss', floorsRawArr)
|
|
|
$theFloor.find('.split-item').each((aIndex, theA) => {
|
|
|
let $theA = $(theA);
|
|
|
let href = $theA.data('href');
|
...
|
...
|
@@ -142,8 +168,6 @@ class ResourceShowYasRpter { |
|
|
F_NAME
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// console.log('prd', floorsRawArr)
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -166,7 +190,6 @@ class ResourceShowYasRpter { |
|
|
newParams.ACTION_URL = goodsRawObj.href;
|
|
|
}
|
|
|
this.reportParams.DATA.push(newParams);
|
|
|
console.log(this.reportParams.DATA);
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -219,7 +242,6 @@ class ResourceShowYasRpter { |
|
|
};
|
|
|
|
|
|
this.reportParams.DATA.push(newParams);
|
|
|
console.log(this.reportParams.DATA);
|
|
|
}
|
|
|
|
|
|
cacheTheShowSkns.push(goodsRawObj.PRD_SKN);
|
...
|
...
|
|