列表搜索页面

This commit is contained in:
juguohong
2025-09-06 22:08:34 +08:00
parent c78be00ded
commit 2d0d728969
15 changed files with 518 additions and 128 deletions

View File

@@ -3,10 +3,17 @@ import ListCard from "@/components/ListCard";
import ListLoadError from "@/components/ListLoadError";
import ListCardSkeleton from "@/components/ListCardSkeleton";
import "./index.scss";
import { useReachBottom } from "@tarojs/taro";
const ListContainer = (props) => {
const { loading, data = [], error, reload, recommendList } = props;
useReachBottom(() => {
console.log("触底了");
// 调用 store 的加载更多方法
// loadMoreMatches();
});
if (error) {
return <ListLoadError reload={reload} />;
}
@@ -38,6 +45,8 @@ const ListContainer = (props) => {
<Text className="recommendText"></Text>
</View>
{renderList(recommendList)}
{/* 到底了 */}
<View className="bottomTextWrapper"></View>
</View>
);
};