diff --git a/src/pages/my/index.jsx b/src/pages/my/index.jsx index 987c6c9..5c277c6 100644 --- a/src/pages/my/index.jsx +++ b/src/pages/my/index.jsx @@ -1,7 +1,16 @@ import { View, Text, Image } from "@tarojs/components"; import { useLoad } from "@tarojs/taro"; import Taro from "@tarojs/taro"; -import { AtAvatar, AtTag, AtIcon, AtTabBar, AtButton } from "taro-ui"; +import { + AtAvatar, + AtTag, + AtIcon, + AtTabBar, + AtButton, + AtAccordion, + AtList, + AtListItem, +} from "taro-ui"; import "./index.scss"; import beijing from "@/images/city/beijing.jpg"; import guangzhou from "@/images/city/guangzhou.jpg"; @@ -11,6 +20,11 @@ import touxiang from "@/images/index/touxiang.jpg"; import { useEffect, useState } from "react"; const my = () => { + const [open, setopen] = useState(false); + + const handleClick = (value) => { + setopen(true); + }; return ( @@ -22,25 +36,48 @@ const my = () => { - {/* 底部tabbar */} - - { - console.log("current", current); - if (current !== 1) { - Taro.redirectTo({ - url: "/pages/index/index", - }); - } - }} - current={1} - /> - + + + + {/* 列表 */} + + + + + + {/* 底部tabbar */} + + { + console.log("current", current); + if (current !== 1) { + Taro.redirectTo({ + url: "/pages/index/index", + }); + } + }} + current={1} + /> );