// 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 { pageCtx = Taro.getCurrentInstance().page; constructor(props) { super(props); this.state = { name: "activity", }; } async onLoad() {} componentDidMount() {} componentWillUnmount() {} componentDidShow() { const tabbar = Taro.getTabBar(this.pageCtx); tabbar?.setSelected(1); } componentDidHide() {} async initData() {} render() { let { name } = this.state; return ( {name} 请先绑定仪器 ); } }