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;
