From 17271424cab58395c7e37b9f7eaf9c1af88cbdeb Mon Sep 17 00:00:00 2001 From: hackrobot Date: Tue, 19 Mar 2024 14:28:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AEtabbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.jsx | 18 ++++++++++++++++-- src/pages/index/index.scss | 6 ++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index c96d862..2f96ac8 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -1,9 +1,10 @@ import { View, Text, Image } from "@tarojs/components"; import { useLoad } from "@tarojs/taro"; -import { AtAvatar, AtTag, AtIcon } from "taro-ui"; +import { AtAvatar, AtTag, AtIcon, AtTabBar } from "taro-ui"; import "./index.scss"; import beijing from "@/images/city/beijing.jpg"; +import { VIEW } from "@tarojs/runtime"; // import beijing from "../../images/city/beijing.jpg"; export default function Index() { @@ -18,7 +19,8 @@ export default function Index() { {/* 城市封面图片 */} @@ -62,6 +64,18 @@ export default function Index() { + + + + ); } diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index 25b085c..ed9fc32 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -37,4 +37,10 @@ } } } + + .tabbbar{ + position: fixed; + bottom: 0px; + width: 100%; + } }