import { Button, Image } from '@tarojs/components'; import classNames from 'classnames'; import { ReactElement } from 'react'; import { PREFIX } from '@/components/product-dialog/const'; import QrCode from '@/components/qr-code'; import { QrCodeType } from '@/constants/product'; interface IProps { type: QrCodeType; onClickCopy?: () => void; } export default function QrCodeContent(props: IProps) { const { type, onClickCopy } = props; let header: ReactElement | string | null = null; let describe: ReactElement | string | null = null; let footer: ReactElement | string | null = null; if (type === QrCodeType.ConnectCustomerService) { header =
复制对接信息,发送给小二
; describe = ( ); footer = '在微信聊天框长按即可粘贴已复制内容'; } else if (type === QrCodeType.PublishJob) { header = ( <>
您已支付
); describe = (
1
扫码二维码联系专属客服
2
发送付款截图
); footer = (
{`客服工作时间:工作日9:30-18:00\n上班后会第一时间为您处理`}
); } return (
{header}
{describe}
长按并识别二维码,添加好友
{footer}
); }