import { Input, ScrollView, Text, Textarea, View } from "@tarojs/components" import classnames from "classnames"; import Search from '@/components/search' import Product from '@/components/product' import InfiniteScroll from '@/components/infiniteScroll' import styles from './index.module.scss' import { useEffect, useState } from "react"; import Filter from "./components/filter"; import SortBtn from "@/components/sortBtn"; import SelectData from "../searchList/components/selectData"; import {GetSubjectList} from '@/api/subjectMaterial' export default () => { const [showPopup, setShowPopup] = useState(false) const [selectList, setSelectList] = useState([ {title: '系列', value:1}, {title: '系列', value:2}, {title: '系列', value:3}, {title: '系列', value:4}, {title: '系列', value:6}, {title: '系列', value:7}, {title: '系列', value:8}, {title: '系列', value:9}, {title: '系列', value:10}, ]) useEffect(() => { getSubjectList() }, []) //获取专题 const [list, setList] = useState([]) const {fetchData} = GetSubjectList() const getSubjectList = async () => { let res = await fetchData() console.log('res::', res) } return ( 综合 setShowPopup(true)}> 筛选 console.log('123123')}> setShowPopup(false)} onFiltr={(e) => console.log('e:::',e)}/> ) }