|
|
@ -52,7 +52,7 @@
|
|
|
|
//模块距离顶部高度
|
|
|
|
//模块距离顶部高度
|
|
|
|
let moduleTop = this.$refs.moduleRef ? this.$refs.moduleRef.offsetTop : 0;
|
|
|
|
let moduleTop = this.$refs.moduleRef ? this.$refs.moduleRef.offsetTop : 0;
|
|
|
|
//如果模块距离顶部高度 小于 可见区域底部高度 就视为可见
|
|
|
|
//如果模块距离顶部高度 小于 可见区域底部高度 就视为可见
|
|
|
|
if (moduleTop + 100 < visibleBottom) {
|
|
|
|
if (moduleTop + 5 < visibleBottom) {
|
|
|
|
//开始加载
|
|
|
|
//开始加载
|
|
|
|
this.url = this.getModuleUrl();
|
|
|
|
this.url = this.getModuleUrl();
|
|
|
|
}
|
|
|
|
}
|
|
|
|