优化闪烁

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

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

Loading…
Cancel
Save