import { View, Input, Image, Text, ScrollView } from "@tarojs/components" import CustomNav from "@/components/CustomNav"; import searchImg from '@/assets/comm/search.png' import { useState } from "react"; import MyCard from "@/components/MyCard"; import Footer from "@/components/Footer"; import './style.less' export default () => { const [imageShow, setImageShow] = useState(true) const [currentTab, setCurrentTab] = useState(0); const handleSearch = (e) => { if (e.detail.value) { console.log(e.detail.value) setImageShow(false) } else { setImageShow(true) } } const handleClick = () => { setImageShow(false) } const handleChange = (val) => { setCurrentTab(val) } return ( { imageShow && ( ) } handleChange(0)} > 待付款 { currentTab === 0 && } handleChange(1)} > 进行中 { currentTab === 1 && } handleChange(2)} > 已完成 { currentTab === 2 && } {currentTab}