// 监视动态埋点
observerPoint() {
let options = {
thresholds: [1],
observeAll: true
};
//曝光埋点
let observer = wx.createIntersectionObserver(this, options);
observer.relativeToViewport().observe(".companyPhoneCard", res => {
if (res.intersectionRatio == 1) {
if (this.type == "delearList") {
this.$addPoint({ deed: 3, oid: 5315 });
}
if (this.type == "detailList") {
this.$addPoint({ deed: 3, oid: 6121 });
}
}
});
}
小程序节点监视IntersectionObserver
最新推荐文章于 2024-10-24 12:10:38 发布