fix 下拉加载

This commit is contained in:
2025-12-15 16:04:08 +08:00
parent 4571744f2e
commit 74f13d26a8
3 changed files with 8 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<AppLayout title="投递记录" :use-scroll-view="false" :show-bg-image="false"> <AppLayout title="投递记录" :use-scroll-view="true" :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>
@@ -54,9 +54,7 @@ onMounted(() => {
// #endif // #endif
}); });
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
@@ -110,7 +110,7 @@ onMounted(() => {
function chnageRanOption(item) { function chnageRanOption(item) {
ranItem.value = item; ranItem.value = item;
getList(); getList('refresh');
} }
function updateCancel(item) { function updateCancel(item) {