You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
// 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>
|
|
);
|
|
}
|
|
}
|