diff --git a/src/api/index.ts b/src/api/index.ts index 295c27f..e5980b0 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -7,3 +7,4 @@ export * from './manage' export * from './course' export * from './brand' export * from './home' +export * from './brand' diff --git a/src/app.config.ts b/src/app.config.ts index 24cfbcc..95305a4 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -86,8 +86,9 @@ export default defineAppConfig({ 'profession/profession', 'health/health', // 健康 'videoFull/videoFull', // 资源id 视频全屏 + 'illness/sort/sort', + 'illness/list/list', 'illness/article/article', - 'illness/sort/sort' ] }, ], diff --git a/src/pages/brand/info/info.tsx b/src/pages/brand/info/info.tsx deleted file mode 100644 index 943f7be..0000000 --- a/src/pages/brand/info/info.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import {FC, useEffect, useState} from "react"; -import {Image, Swiper, SwiperItem, View} from "@tarojs/components"; -import {brandApi, BrandRecord} from "@/api"; -import Taro, {useRouter} from "@tarojs/taro"; - -type Params = { - id: number -} -const MeetingsConfig: FC = () => { - const {id} = useRouter().params as unknown as Params - const [brandInfo, setBrandInfo] = useState() - - useEffect(() => { - getData() - }, [id]) - - const getData = async () => { - try { - const data = await brandApi.info(id) - Taro.setNavigationBarTitle({title:data.name}) - setBrandInfo(data) - } catch (e) { - } - } - - - return ( - - { - // brands.length ? brands.map((d) => - // jumpInfo(d.id)} className={styles.box} key={d.id}> - // - // - // {d.name} - // {d.graphic_introduction.repeat(30)} - // - // ) - // : - - { brandInfo?.brand_album?.length - && brandInfo?.brand_album?.map((d) => - - - ) - } - - } - - ); -} - -export default MeetingsConfig