1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/hr/news.js'
- import ResumeItem from '@/components/hr/ResumeItem.vue'
- export default {
- data() {
- return {
- isReady:false,
- list: [ ],
- pageIndex:1,
- recordsTotal:0,
- src: '/static/img/head/png',
- background: {
- backgroundColor: '#2295ff',
- },
- }
- },
- components: {
- ResumeItem
- },
- onLoad(op){
- //this.id=op.id;
- },
- onReachBottom() {
- if(this.list.length<this.recordsTotal){
- this.myLoadmore();
- }
- },
- methods: {
- myLoadmore(){
-
- this.pageIndex+=1;
- this.getList()
- },getList(bl){
- uni.showLoading({
- title:"加载中",mask:true,
- })
- if(bl){
- this.list=[];
- this.pageIndex=1;
- }
- var data={
- pageIndex:this.pageIndex
- };
- API.positionResumeList(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){
-
- }
- },
- }
|