Authored by 李奇

商品曝光组件修改

@@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
74 } 74 }
75 }); 75 });
76 76
77 - let timer = setInterval(() => { 77 + setInterval(() => {
78 this.$scrollEl = window; 78 this.$scrollEl = window;
79 this.scrollEvent = util.throttle(50, this.checkReport); 79 this.scrollEvent = util.throttle(50, this.checkReport);
80 if (this.$scrollEl) { 80 if (this.$scrollEl) {
@@ -82,8 +82,7 @@ @@ -82,8 +82,7 @@
82 } 82 }
83 83
84 if (this.$children.length) { 84 if (this.$children.length) {
85 - clearInterval(timer);  
86 - this.checkReport(void 0, true); 85 + this.checkReport();
87 } 86 }
88 }, 500); 87 }, 500);
89 88