import {useEffect} from 'react'
import UserCard from "./components/UserCard";
import UserCell from "./components/UserCell";
import TabBar from "@/components/TabBar";
import SimpleH5TabBar from "@/components/SimpleH5TabBar";
import Taro from '@tarojs/taro';

function User() {

    useEffect(() => {
        Taro.hideTabBar()
    }, []);
    return (
        <div style={{backgroundColor: '#ffefef', height: '100vh'}}>
            <div className={'fixed w-full'}>
                <UserCard/>
                <UserCell/>
                {/* 小程序模式显示原TabBar，H5模式显示H5TabBar */}
                {process.env.TARO_ENV !== 'h5' && <TabBar/>}
                {process.env.TARO_ENV === 'h5' && <SimpleH5TabBar current={2}/>}
            </div>
        </div>
    )
}

export default User
