|
@@ -10,6 +10,8 @@ import TDesignToast from '@/components/tdesign/toast';
|
|
|
import { navigateTo } from '@tarojs/taro';
|
|
import { navigateTo } from '@tarojs/taro';
|
|
|
import { InferResponseType } from 'hono';
|
|
import { InferResponseType } from 'hono';
|
|
|
import { TabBarLayout } from '@/layouts/tab-bar-layout';
|
|
import { TabBarLayout } from '@/layouts/tab-bar-layout';
|
|
|
|
|
+import { Navbar } from '@/components/ui/navbar';
|
|
|
|
|
+import Taro from '@tarojs/taro';
|
|
|
import './index.css';
|
|
import './index.css';
|
|
|
|
|
|
|
|
type GoodsCategoryResponse = InferResponseType<typeof goodsCategoryClient.$get, 200>
|
|
type GoodsCategoryResponse = InferResponseType<typeof goodsCategoryClient.$get, 200>
|
|
@@ -133,6 +135,13 @@ const CategoryPage: React.FC = () => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<TabBarLayout activeKey="category">
|
|
<TabBarLayout activeKey="category">
|
|
|
|
|
+ <Navbar
|
|
|
|
|
+ title="商品分类"
|
|
|
|
|
+ leftIcon=""
|
|
|
|
|
+ onClickLeft={() => Taro.navigateBack()}
|
|
|
|
|
+ rightIcon=""
|
|
|
|
|
+ onClickRight={() => {}}
|
|
|
|
|
+ />
|
|
|
<View className="category-page">
|
|
<View className="category-page">
|
|
|
{/* Toast 组件 */}
|
|
{/* Toast 组件 */}
|
|
|
<TDesignToast
|
|
<TDesignToast
|