From 9b0223171a268a484ce70be53fbdcb7daa963dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=A3=AE?= Date: Mon, 10 Nov 2025 16:42:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=90=8D=E7=89=87?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/business/bizcard.tsx | 4 ++-- app/custom-tab-bar/index.tsx | 1 - app/pages/cpage/components/container.tsx | 11 +++++++++++ app/pages/index/index.tsx | 12 +----------- 4 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 app/pages/cpage/components/container.tsx 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() { > - - {/* - - 首页 - 产品 - 案例 - 我的 - - */} ); }