diff --git a/src/api/home.ts b/src/api/home.ts index aa884b5..70ee5e3 100644 --- a/src/api/home.ts +++ b/src/api/home.ts @@ -33,8 +33,12 @@ export interface HomeData { adverts: AdwareType[] skill: Kill[] health: Health[] - brand: Brand[] - illness: Illness[] + brand: { + list: Brand[] + } + illness: { + list: Illness[] + } } export const HomeApi = { diff --git a/src/pages/home/components/feature_recommended.tsx b/src/pages/home/components/feature_recommended.tsx index 936de39..6283013 100644 --- a/src/pages/home/components/feature_recommended.tsx +++ b/src/pages/home/components/feature_recommended.tsx @@ -75,9 +75,7 @@ const FeatureRecommended: FC = (props) => { description: d.graphic_introduction, path: `?id=${d.id}`, })) - } catch (e) { - console.log(e) - } + } catch (e) {} return [] } diff --git a/src/pages/home/home.tsx b/src/pages/home/home.tsx index acc1adf..2cd8a6c 100644 --- a/src/pages/home/home.tsx +++ b/src/pages/home/home.tsx @@ -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 ( - {/**/} diff --git a/src/static/img/arrow-right.png b/src/static/img/arrow-right.png new file mode 100644 index 0000000..e2d4acc Binary files /dev/null and b/src/static/img/arrow-right.png differ