|
|
|
@ -1,7 +1,6 @@ |
|
|
|
|
import {FC, useEffect, useState} from "react"; |
|
|
|
|
import {View} from "@tarojs/components"; |
|
|
|
|
import styles from "./home.module.scss"; |
|
|
|
|
// import {Search} from "@/pages/home/components/search";
|
|
|
|
|
import Adware from "@/pages/home/components/adware"; |
|
|
|
|
import Feature from "@/pages/home/components/feature"; |
|
|
|
|
import FeatureRecommended from "@/pages/home/components/feature_recommended"; |
|
|
|
@ -29,13 +28,12 @@ const Home: FC = () => { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<View className={styles.content}> |
|
|
|
|
{/*<Search/>*/} |
|
|
|
|
<Adware data={data?.adverts || []} only_flag='routine_home_top_banner' width={710}/> |
|
|
|
|
<Feature/> |
|
|
|
|
<FeatureRecommended |
|
|
|
|
illness={(data?.illness as any)?.list || []} |
|
|
|
|
illness={data?.illness.list || []} |
|
|
|
|
health={data?.health || []} |
|
|
|
|
brand={((data?.brand as any)?.list) || []} |
|
|
|
|
brand={data?.brand.list || []} |
|
|
|
|
skill={data?.skill || []} |
|
|
|
|
/> |
|
|
|
|
<Adware data={data?.adverts || []} only_flag='routine_home_recommend_banner' width={710}/> |
|
|
|
|