import { View } from '@tarojs/components' import { useEffect, useState } from 'react' import styles from './index.module.scss' import CodeModel from './components/codeModel' import CompanyModel from './components/companyModel' import SelectList from '@/components/selectList' import { GetCustomCodeLApi } from '@/api/codeManage' import TimePickerPopup from '@/components/timePickerPopup' export default () => { const selectList = [ { value: 1, label: '码单列表' }, { value: 2, label: '抬头列表' }, ] const [selectIndex, setSelectIndex] = useState(1) return setSelectIndex(index)} /> {selectIndex == 1 && } {selectIndex == 2 && } {/* */} }