//import * as WxJsApi from '@/utils/wxJsApi.js' import * as API from '@/apis/hr/my.js' import ResumeItem from '@/components/hr/ResumeItem.vue' export default { data() { return { keyword:"", pageIndex:1, recordsTotal:0, list: [ ], isReady:false, src: '/static/img/head.png', } }, components: { ResumeItem }, onLoad(op){ //this.id=op.id; }, onReachBottom() { if(this.result.length { this.getList(true); uni.hideLoading() }).catch(error => { uni.showToast({ title:error }) }) }, myLoadmore(){ this.pageIndex+=1; this.getList() },getList(bl){ uni.showLoading({ title:"加载中",mask:true, }) if(bl){ this.list=[]; this.pageIndex=1; } var data={ positionName:this.keyword, pageIndex:this.pageIndex }; API.loadCollectResumes(data).then((res) => { this.list=[ ...this.list, ...res.data.data ]; this.recordsTotal=res.data.recordsTotal uni.hideLoading() }).catch(error => { uni.showToast({ title:error }) }) } },onReady(){ this.getList() this.isReady=true; },onShow(){ if(this.isReady){ } }, }