|
@ -5,7 +5,7 @@ |
|
|
@scrolltolower="loadMoreData"> |
|
|
@scrolltolower="loadMoreData"> |
|
|
<view class="workList"> |
|
|
<view class="workList"> |
|
|
<view |
|
|
<view |
|
|
@click="$utils.navigateTo('/pages_order/work/workDetail?id=' + 123)" |
|
|
|
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/work/workDetail?id=' + item.id)" |
|
|
:key="index" |
|
|
:key="index" |
|
|
v-for="(item, index) in list"> |
|
|
v-for="(item, index) in list"> |
|
|
<workItem :item="item"/> |
|
|
<workItem :item="item"/> |
|
@ -25,7 +25,7 @@ |
|
|
default : 'auto' |
|
|
default : 'auto' |
|
|
}, |
|
|
}, |
|
|
api : { |
|
|
api : { |
|
|
default : '' |
|
|
|
|
|
|
|
|
default : 'employeeQueryJobList' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
@ -35,26 +35,26 @@ |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
}, |
|
|
}, |
|
|
total : 0, |
|
|
total : 0, |
|
|
list : 10, |
|
|
|
|
|
|
|
|
list : [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
queryVideoList(){ |
|
|
|
|
|
|
|
|
getData(){ |
|
|
if(uni.getStorageSync('token')){ |
|
|
if(uni.getStorageSync('token')){ |
|
|
this.queryParams.token = uni.getStorageSync('token') |
|
|
this.queryParams.token = uni.getStorageSync('token') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.$api(this.api, this.queryParams, res => { |
|
|
this.$api(this.api, this.queryParams, res => { |
|
|
if(res.code == 200){ |
|
|
if(res.code == 200){ |
|
|
this.list = res.result |
|
|
|
|
|
// this.total = res.result.total |
|
|
|
|
|
|
|
|
this.list = res.result.records |
|
|
|
|
|
this.total = res.result.total |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
loadMoreData(){ |
|
|
loadMoreData(){ |
|
|
if(this.queryParams.pageSize <= this.list.length){ |
|
|
if(this.queryParams.pageSize <= this.list.length){ |
|
|
this.queryParams.pageSize += 10 |
|
|
this.queryParams.pageSize += 10 |
|
|
this.queryVideoList() |
|
|
|
|
|
|
|
|
this.getData() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|