// import { MpSplashDetail, WCUserLogin } from "../../utils/Interface";
import { Component, PropsWithChildren, useEffect, useState } from "react";
import Taro from "@tarojs/taro";
// 引入 Swiper, SwiperItem 组件
import {
  View,
  Text,
  Image,
  Video,
  Swiper,
  SwiperItem,
  Block,
} from "@tarojs/components";

import "taro-ui/dist/style/components/button.scss"; // 按需引入
import "./activity.less";

import type CustomTabBar from "../../custom-tab-bar";
export default class Activity extends Component<any, any> {
  pageCtx = Taro.getCurrentInstance().page;
  constructor(props) {
    super(props);
    this.state = {
      name: "activity",
    };
  }

  async onLoad() {}
  componentDidMount() {}

  componentWillUnmount() {}

  componentDidShow() {
    const tabbar = Taro.getTabBar<CustomTabBar>(this.pageCtx);
    tabbar?.setSelected(1);
  }

  componentDidHide() {}

  async initData() {}

  render() {
    let { name } = this.state;
    return (
      <Block>
        <View>{name}</View>
        <View className="main">待开发</View>
      </Block>
    );
  }
}
