feat(dealer/customer): 实现客户列表的无限滚动和搜索功能- 在客户列表页面添加 InfiniteLoading 组件,实现无限滚动加载- 添加搜索功能,支持按关键词搜索客户

- 优化数据加载逻辑,解决重复请求问题
- 在 Header 组件中增加用户登录状态和信息的检查
This commit is contained in:
2025-09-06 10:39:36 +08:00
parent 3077b44344
commit bef845620c
4 changed files with 298 additions and 6 deletions

View File

@@ -231,7 +231,7 @@ const CustomerIndex = () => {
return (
<View className="p-4" style={{
height: '75vh',
height: '90vh',
overflowY: 'auto',
overflowX: 'hidden'
}}>
@@ -257,7 +257,7 @@ const CustomerIndex = () => {
description={loading ? "加载中..." : "暂无客户数据"}
/>
) : (
<View className={'h-12 flex items-center justify-center'}>
<View className={'h-3 flex items-center justify-center'}>
<Text className="text-gray-500 text-sm"></Text>
</View>
)