//import * as WxJsApi from '@/utils/wxJsApi.js' import * as API from '@/apis/hr/news.js' export default { data() { return { isReady:false, list: [{ name: '我要用人', list:[], approvalStatus:"1", pageIndex:1, recordsTotal:0 }, { name: '我有工人', list:[], approvalStatus:"2", pageIndex:1, recordsTotal:0 }], current: 0 } }, components: { }, onReachBottom() { if(this.list[this.current].list.length { obj.list=[ ...obj.list, ...res.data.data ]; obj.recordsTotal=res.data.recordsTotal uni.hideLoading() console.log(this.list) }).catch(error => { uni.showToast({ title:error }) }) } },onReady(){ this.getLabourList() this.isReady=true; },onShow(){ if(this.isReady){ } }, }