修复bug

This commit is contained in:
李瑞
2025-10-12 23:49:02 +08:00
parent 35dfc7ffc8
commit 12600ebdfb
12 changed files with 45 additions and 33 deletions

View File

@@ -29,9 +29,12 @@ const ListContainer = (props) => {
useReachBottom(() => {
// 加载更多方法
timerRef.current = setTimeout(() => {
if (loading) {
return;
}
// timerRef.current = setTimeout(() => {
loadMoreMatches();
}, 500);
// }, 500);
});
useEffect(() => {
@@ -102,15 +105,6 @@ const ListContainer = (props) => {
return (
<View className="listContentWrapper">
{/* <ScrollView
scrollY
scrollWithAnimation
enableBackToTop
enablePassive
style={{ height: '100vh' }}
onScrollToLower={handleScrollToLower}
upperThreshold={60}
> */}
{renderList(data)}
{/* 显示骨架屏 */}
{loading && renderSkeleton()}
@@ -120,7 +114,6 @@ const ListContainer = (props) => {
{renderList(recommendList)} */}
{/* 到底了 */}
{data?.length > 0 && <View className="bottomTextWrapper"></View>}
{/* </ScrollView> */}
</View>
);
};