import { moneyFormat } from '@/helpers/utils' import { Button, Cell } from 'vant' import { defineComponent } from 'vue' import styles from '../../index.module.less' export default defineComponent({ name: 'AfterSaleBtns', props: { item: { type: Object, default: {} }, onCancelOrder: { type: Function, default: (n: any) => {} }, onPayOrder: { type: Function, default: (n: any) => {} }, onConfirmReceipt: { type: Function, default: (n: any) => {} }, onAginOrder: { type: Function, default: (n: any) => {} } }, setup({ item, onCancelOrder, onPayOrder, onConfirmReceipt, onAginOrder }) { return () => ( (
订单金额 ¥ {moneyFormat(item.payAmount)}
), default: () => (
{/* 已确认收货 */} {item.status === 0 || item.status === 6 ? ( <> ) : null} {item.status === 2 ? ( ) : null} {item.status === 3 ? ( ) : null}
) }} >
) } })