1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/hr/my.js'
- export default {
- data() {
- return {
- pageIndex:1,
- recordsTotal:0,
- list: [ ],
- isReady:false,
- src: '/static/img/head.png',
- }
- },
- onReachBottom() {
- if(this.list.length<this.recordsTotal){
- this.myLoadmore();
- }
- },
- components: {
-
- },
- onLoad(op){
- //this.id=op.id;
- },
- methods: {
- ckBtn(id){
- if(id){
- this.gotoUrl('pages/hr/index/resumeInfo/resumeInfo?id=' + id)
-
- }
- },
- myLoadmore(){
-
- this.pageIndex+=1;
- this.getList()
- },
- change(index) {
- this.current = index;
- },
- getList(){
- uni.showLoading({
- title:"加载中",mask:true,
- })
-
- var data={
-
- pageIndex:this.pageIndex
- };
- API.loadInterestList(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){
-
- }
- },
- }
|