Compare commits

...

2 Commits

3 changed files with 42 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<AppLayout title="投递记录" :use-scroll-view="false" :show-bg-image="false"> <AppLayout title="投递记录" :use-scroll-view="false" :show-bg-image="false" @onScrollBottom="getJobList()">
<template #headerleft v-if="isMiniProgram"> <template #headerleft v-if="isMiniProgram">
<view class="btnback"> <view class="btnback">
<image src="@/static/icon/back.png" @click="navBack"></image> <image src="@/static/icon/back.png" @click="navBack"></image>
@@ -45,9 +45,7 @@ onLoad(() => {
getJobList(); getJobList();
}); });
onReachBottom(() => {
getJobList();
});
function getJobList(type = 'add') { function getJobList(type = 'add') {
if (type === 'refresh') { if (type === 'refresh') {

View File

@@ -1,5 +1,5 @@
<template> <template>
<AppLayout title="投递记录" :use-scroll-view="false" :show-bg-image="false"> <AppLayout title="投递记录" :use-scroll-view="false" :show-bg-image="false" @onScrollBottom="loadMore">
<template #headerleft v-if="isMiniProgram"> <template #headerleft v-if="isMiniProgram">
<view class="btnback"> <view class="btnback">
<image src="@/static/icon/back.png" @click="navBack"></image> <image src="@/static/icon/back.png" @click="navBack"></image>
@@ -65,9 +65,6 @@ function removeNullProperties(obj) {
return obj; return obj;
} }
onReachBottom(() => {
loadMore();
});
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>

View File

@@ -18,7 +18,7 @@
</view> </view>
</view> </view>
<view class="main"> <view class="main">
<scroll-view class="height-100" scroll-y> <scroll-view class="height-100" scroll-y @scrolltolower="getList('add')">
<view> <view>
<view class="card" v-for="(item, index) in pageState.list" :key="index"> <view class="card" v-for="(item, index) in pageState.list" :key="index">
<view <view
@@ -101,7 +101,7 @@ onLoad(() => {
function chnageRanOption(item) { function chnageRanOption(item) {
ranItem.value = item; ranItem.value = item;
getList(); getList('refresh');
} }
function updateCancel(item) { function updateCancel(item) {