cyl/dev
jscyl13849007907 1 year ago
parent 288524e2f2
commit a1e079149c

@ -619,6 +619,7 @@
<!-- </div> --> <!-- </div> -->
<div v-if="!isspinning" style="border-radius: 6px;overflow: hidden;"> <div v-if="!isspinning" style="border-radius: 6px;overflow: hidden;">
<div>
<div <div
class="subset" class="subset"
v-for="(item, index) in jobMainList" v-for="(item, index) in jobMainList"
@ -743,6 +744,24 @@
</div> </div>
</div> </div>
</div> </div>
<div class="loading-ing g_pt_20 g_pb_20" v-if="speed">
<div class="g_w_all g_text_c g_fs_14">
{{ speed == 1 ? '加载中' : '加载完成' }}
</div>
<div class="b-footer">
<div>
<span>
Powered by
<svg class="svg_icon ml4" style="font-size: 46px; margin-top: -2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" />
</svg>
Copyright © 2015-2023 Bocai. All Rights Reserved.
</span>
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">豫ICP备2023001993号-25A</a>
</div>
</div>
</div>
</div>
<div class="pagecontainer f40" v-if="false"> <div class="pagecontainer f40" v-if="false">
<a-pagination :current="+formvalue.pageNum" :default-current="1" :defaultPageSize="8" :total="formvalue.total" @change="pageChange" /> <a-pagination :current="+formvalue.pageNum" :default-current="1" :defaultPageSize="8" :total="formvalue.total" @change="pageChange" />
<div class="ant-pagination-options-quick-jumper"> <div class="ant-pagination-options-quick-jumper">
@ -854,6 +873,8 @@ export default {
data() { data() {
return { return {
isFetching: false, // isFetching: false, //
speed:0,// 0 1 2
isStop:false,//
jobMainList: [], // jobMainList: [], //
jobNum:0, jobNum:0,
recordShow: false, recordShow: false,
@ -1167,9 +1188,12 @@ export default {
const windowHeight = document.documentElement.clientHeight; const windowHeight = document.documentElement.clientHeight;
const scrollHeight = document.documentElement.scrollHeight; const scrollHeight = document.documentElement.scrollHeight;
if (scrollTop + windowHeight >= scrollHeight - 100 && !this.isFetching) { // 100 if (scrollTop + windowHeight >= scrollHeight - 100 && !this.isFetching && !this.isStop) { // 100
this.isFetching = true; this.isFetching = true;
// setTimeout(() => {
this.speed = 0;
this.loadMoreData(); this.loadMoreData();
// }, 10*1000);
} }
}, },
loadMoreData() { loadMoreData() {
@ -1248,6 +1272,15 @@ export default {
if (this.isLogin) { if (this.isLogin) {
const { data } = await JobListApi(newdata); const { data } = await JobListApi(newdata);
if (data.status === 200) { if (data.status === 200) {
if(data.data.recordList.length < 8){
//
this.isStop = true;
this.speed = 2;
}else{
//
this.isStop = false;
this.speed = 1;
}
this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); // this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); //
this.formvalue.total = data.data.recordCount; this.formvalue.total = data.data.recordCount;
} else { } else {
@ -3568,4 +3601,20 @@ p {
color: rgb(24, 144, 255); color: rgb(24, 144, 255);
} }
} }
.b-footer{
div {
text-align: center;
// margin-top: 16px;
color: #4d575e;
font-size: 12px;
i {
display: inline-block;
vertical-align: middle;
width: 1px;
height: 16px;
margin: 0 10px;
background-color: #4d575e;
}
}
}
</style> </style>

Loading…
Cancel
Save