修复下拉加载更多

This commit is contained in:
WindowBird 2025-11-14 10:24:25 +08:00
parent 5466a0534a
commit 51e19b3266

View File

@ -82,7 +82,7 @@
</view> </view>
</view> </view>
<scroll-view class="list-scroll" scroll-y @scrolltolower="loadMore"> <scroll-view class="list-scroll" >
<view class="card" v-for="item in displayList" :key="item.id" @click="goDetail(item)"> <view class="card" v-for="item in displayList" :key="item.id" @click="goDetail(item)">
<view class="card-header"> <view class="card-header">
<view class="left"> <view class="left">
@ -95,15 +95,15 @@
</view> </view>
<view class="card-body"> <view class="card-body">
<text class="remark" v-if="item.createRemark">{{ item.createRemark }}</text> <text class="remark" v-if="item.createRemark">备注{{ item.createRemark }}</text>
<view class="row"> <view class="row">
<text class="label">创建时间</text> <text class="label">创建时间</text>
<text class="value">{{ item.createTime || '—' }}</text> <text class="value">{{ item.createTime || '—' }}</text>
</view> </view>
<view class="row"> <!-- <view class="row">-->
<text class="label">申请人</text> <!-- <text class="label">申请人</text>-->
<text class="value">{{ item.createName || '—' }}</text> <!-- <text class="value">{{ item.createName || '—' }}</text>-->
</view> <!-- </view>-->
</view> </view>
<view class="card-footer"> <view class="card-footer">
@ -185,7 +185,7 @@
import { ref, computed, onMounted } from 'vue'; import { ref, computed, onMounted } from 'vue';
import { getVerifyList } from '@/api'; import { getVerifyList } from '@/api';
import { usePagination } from '@/composables'; import { usePagination } from '@/composables';
import { onReachBottom } from '@dcloudio/uni-app'
const bstType = ref(''); const bstType = ref('');
const filterStatus = ref(''); const filterStatus = ref('');
const dateRange = ref([]); // [startDate, endDate] : yyyy-MM-dd const dateRange = ref([]); // [startDate, endDate] : yyyy-MM-dd
@ -380,6 +380,10 @@ onMounted(() => {
} }
getList(true); getList(true);
}); });
onReachBottom(()=>{
loadMore();
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>