diff --git a/app/components/business/bizcard.tsx b/app/components/business/bizcard.tsx index f455d8e..42f6812 100644 --- a/app/components/business/bizcard.tsx +++ b/app/components/business/bizcard.tsx @@ -26,8 +26,8 @@ export const BizCardTpl_01 = memo(({ userInfo }: BizCardProps) => { export const BizCardTpl02 = memo(() => { return ( - - Card Title2 + + ); }); diff --git a/app/custom-tab-bar/index.tsx b/app/custom-tab-bar/index.tsx index 45161a7..8d89ad3 100644 --- a/app/custom-tab-bar/index.tsx +++ b/app/custom-tab-bar/index.tsx @@ -13,7 +13,6 @@ const CustomTabBar = () => { const setParam = useSetRecoilState(tabbarParamModel); const handlerClick = throttle((index: number) => { if (active == index) return; - console.log(index, "触发次数"); setActive(index); switch (index) { case 1: diff --git a/app/pages/cpage/components/container.tsx b/app/pages/cpage/components/container.tsx new file mode 100644 index 0000000..6648df8 --- /dev/null +++ b/app/pages/cpage/components/container.tsx @@ -0,0 +1,11 @@ +import { View } from "@tarojs/components"; +import { PropsWithChildren } from "react"; + + +export const CPageContainer = ({ children }:PropsWithChildren) => { + return ( + + {children} + + ); +}; \ No newline at end of file diff --git a/app/pages/index/index.tsx b/app/pages/index/index.tsx index 2c39365..1e6305d 100644 --- a/app/pages/index/index.tsx +++ b/app/pages/index/index.tsx @@ -1,6 +1,6 @@ import Layout from "@/components/layout/Layout"; import { View } from "@tarojs/components"; -import Taro, { useDidShow } from "@tarojs/taro"; +import { useDidShow } from "@tarojs/taro"; import React from "react"; import { usePageContent } from "./hooks"; @@ -15,7 +15,6 @@ export default function Index() { useDidShow(async () => { await loadPageContent("测试身份编码"); - Taro.switchTab({ url: "/pages/index/index" }); console.log("Page shown."); }); @@ -28,17 +27,8 @@ export default function Index() { > - - {/* - - 首页 - 产品 - 案例 - 我的 - - */} ); }