优化闪烁

cyl/dev
jscyl13849007907 1 year ago
parent 08545fc759
commit 2a1907fd52

@ -744,7 +744,7 @@
</div>
</div>
</div>
<div class="loading-ing g_pt_20 g_pb_20" v-if="speed">
<div class="loading-ing g_pt_20 g_pb_20">
<div class="g_w_all g_text_c g_fs_14">
{{ speed == 1 ? '加载中' : '加载完成' }}
</div>
@ -873,7 +873,7 @@ export default {
data() {
return {
isFetching: false, //
speed:0,// 0 1 2
speed:1,// 0 1 2
isStop:false,//
jobMainList: [], //
jobNum:0,
@ -1191,7 +1191,7 @@ export default {
if (scrollTop + windowHeight >= scrollHeight - 100 && !this.isFetching && !this.isStop) { // 100
this.isFetching = true;
setTimeout(() => {
this.speed = 0;
this.speed = 1;
this.loadMoreData();
}, 300);
}

Loading…
Cancel
Save