From 672f788e26397ff4817a24e1b4554c9f1784abb6 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Tue, 19 Mar 2024 20:07:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/my/index.jsx | 77 +++++++++++++++++++++++++++++++----------- 1 file changed, 57 insertions(+), 20 deletions(-) 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} + /> );