|
|
@@ -20,16 +20,15 @@ import {
|
|
|
} from "react-native";
|
|
|
import { useFocusEffect } from "@react-navigation/native";
|
|
|
import { useModel } from "flooks";
|
|
|
-import GoodsCard from "../components/GoodsCardVertical";
|
|
|
-import GoodsCardLarge from "../components/GoodsCard";
|
|
|
+import CommentCard from "../components/Comment";
|
|
|
import Badge from "../components/Badge";
|
|
|
|
|
|
const width = Dimensions.get("window").width;
|
|
|
const height = Dimensions.get("window").height;
|
|
|
-export default function HomePage1(props) {
|
|
|
+export default function HomePage2(props) {
|
|
|
const theme = useTheme();
|
|
|
const { httpPost, httpGet } = useModel("httpModel", true);
|
|
|
- const [commentList, setCommentList] = React.useState([]);
|
|
|
+ const [commentList, setCommentList] = React.useState([{}, {}, {}]);
|
|
|
const [selectId, changeSelectId] = React.useState(0);
|
|
|
const { showDialog } = useModel("dialogModel", true);
|
|
|
|
|
|
@@ -45,7 +44,6 @@ export default function HomePage1(props) {
|
|
|
}, [])
|
|
|
);
|
|
|
|
|
|
-
|
|
|
return (
|
|
|
<Layout style={styles.tabContainer}>
|
|
|
<Layout style={styles.bageList}>
|
|
|
@@ -114,19 +112,7 @@ export default function HomePage1(props) {
|
|
|
</Layout>
|
|
|
);
|
|
|
}
|
|
|
-const classificationItem = ({ item, index }) => (
|
|
|
- <ListItem
|
|
|
- appearance='classification'
|
|
|
- title={(textprops) => (
|
|
|
- <Text
|
|
|
- {...textprops}
|
|
|
- style={[textprops.style, { textAlign: "center" }]}
|
|
|
- >
|
|
|
- {item.name}
|
|
|
- </Text>
|
|
|
- )}
|
|
|
- />
|
|
|
-);
|
|
|
+const classificationItem = ({ item, index }) => <CommentCard />;
|
|
|
const StarIcon = (props) => <Icon {...props} name='plus-outline' />;
|
|
|
|
|
|
const goodsItem = ({ item, index }) => (
|
|
|
@@ -138,6 +124,7 @@ const styles = StyleSheet.create({
|
|
|
backgroundColor: "#fff",
|
|
|
paddingTop: 20,
|
|
|
paddingBottom: 80,
|
|
|
+ height: "100%",
|
|
|
},
|
|
|
bageList: {
|
|
|
flexDirection: "row",
|
|
|
@@ -161,7 +148,5 @@ const styles = StyleSheet.create({
|
|
|
backButtn: {
|
|
|
marginLeft: 10,
|
|
|
},
|
|
|
- container: {
|
|
|
- height: 300,
|
|
|
- },
|
|
|
+ container: {},
|
|
|
});
|