Files
gitlab-instance-0a899031_yi…/src/pages/my/index.jsx
2024-03-19 19:50:12 +08:00

43 lines
1.3 KiB
JavaScript

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 "./index.scss";
import beijing from "@/images/city/beijing.jpg";
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 { useEffect, useState } from "react";
const my = () => {
return (
<View className="my">
<View className="myContent">
my
{/* 底部tabbar */}
<View className="tabbbar">
<AtTabBar
tabList={[
{ title: "首页", iconType: "home" }, //, text: "new"
// { title: "活动", iconType: "camera" },
{ title: "我的", iconType: "user" }, //, text: "100", max: 99
]}
onClick={(current) => {
console.log("current", current);
if (current !== 1) {
Taro.redirectTo({
url: "/pages/index/index",
});
}
}}
current={1}
/>
</View>
</View>
</View>
);
};
export default my;