import { MovableView, Text, View } from '@tarojs/components' import { useState } from 'react' import classnames from 'classnames' import IconFont from '../iconfont/iconfont' import styles from './index.module.scss' import { goLink } from '@/common/common' interface param { y: number } export default ({ y }: param) => { const [screenHeight, setScreenHeight] = useState({ customer_service_y: 0, code_list_y: 0, }) const [showCode, setShowCode] = useState(false) return (<> {showCode && setShowCode(!showCode)}>} {showCode && 原始码单预览 goLink('/pages/codeList/index')}> 自定义码单预览 编辑自定义码单 } setShowCode(!showCode)}>码单 ) }