...
|
...
|
@@ -15,6 +15,11 @@ class GoodsShowYasRpter { |
|
|
this.reportCtl();
|
|
|
});
|
|
|
};
|
|
|
window.ontouchend = () => {
|
|
|
window.requestAnimationFrame(() => {
|
|
|
this.reportCtl();
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
|
|
reportCtl() {
|
...
|
...
|
@@ -66,8 +71,6 @@ class GoodsShowYasRpter { |
|
|
}
|
|
|
|
|
|
report() {
|
|
|
let cacheTheShowSkns = []; // 暂存此次上报的商品,上报后复制给 lastReportSkns
|
|
|
|
|
|
$('.item-wrapper').each((i, itemElement) => {
|
|
|
let $item = $(itemElement);
|
|
|
let goodsRawArr = []; // 当前楼层的商品
|
...
|
...
|
@@ -101,14 +104,12 @@ class GoodsShowYasRpter { |
|
|
I_INDEX,
|
|
|
PRD_SKN,
|
|
|
});
|
|
|
cacheTheShowSkns.push(PRD_SKN);
|
|
|
this.lastShowSkns.push(PRD_SKN);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.lastShowSkns = cacheTheShowSkns;
|
|
|
|
|
|
setTimeout(() => {
|
|
|
if (
|
|
|
typeof window._yas !== 'undefined' &&
|
...
|
...
|
|