import { Image, Text, View } from '@tarojs/components' import { memo, useEffect, useMemo, useRef, useState } from 'react' import classnames from 'classnames' import styles from './index.module.scss' interface propsObj { receivingStatus?: Number | null onReceivingStatus?: (any, Number) => void obj: any handUp?: (any) => void } const AddressDetailBox = (props: propsObj) => { const { obj = {}, handUp, } = props const seeFont = useMemo(() => { if (obj.stage == 1) { return '上传物流回单' } else { return '查看物流回单' } }, [obj]) return ( 请按以下退货地址寄回货物并提供退货物流信息 广东省佛山市禅城区陆盈纺织仓库 谭先生 {13242128982} handUp?.(obj)}>{seeFont} {/* { obj.stage !== 1 && } */} ) } export default memo(AddressDetailBox)