底部tabbar子组件

This commit is contained in:
hackrobot
2024-03-19 21:21:18 +08:00
parent 24f980c35b
commit 448db40b87
6 changed files with 55 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import guangzhou from "@/images/city/guangzhou.jpg";
import shanghai from "@/images/city/shanghai.jpg";
import shenzhen from "@/images/city/shenzhen.jpg";
import touxiang from "@/images/index/touxiang.jpg";
import TabbarCom from "@/componments/TabbarCom";
import { useEffect, useState } from "react";
// import beijing from "../../images/city/beijing.jpg";
@@ -181,7 +182,7 @@ export default function Index() {
<View className="tabbbarDiv"></View>
</View>
{/* 底部tabbar */}
<View className="tabbbar">
{/* <View className="tabbbar">
<AtTabBar
tabList={[
{ title: "首页", iconType: "home" }, //, text: "new"
@@ -197,7 +198,9 @@ export default function Index() {
}}
current={0}
/>
</View>
</View> */}
<TabbarCom active={0} />
</View>
);
}

View File

@@ -17,7 +17,7 @@ import guangzhou from "@/images/city/guangzhou.jpg";
import shanghai from "@/images/city/shanghai.jpg";
import shenzhen from "@/images/city/shenzhen.jpg";
import touxiang from "@/images/index/touxiang.jpg";
import TabbarCom from "@/componments/TabbarCom";
import { useEffect, useState } from "react";
const my = () => {
const [open, setopen] = useState(false);
@@ -69,7 +69,7 @@ const my = () => {
</View>
{/* 底部tabbar */}
<View className="tabbbar">
{/* <View className="tabbbar">
<AtTabBar
tabList={[
{ title: "首页", iconType: "home" }, //, text: "new"
@@ -86,7 +86,8 @@ const my = () => {
}}
current={1}
/>
</View>
</View> */}
<TabbarCom active={1} />
</View>
);
};