feat: 修改样式
This commit is contained in:
@@ -75,7 +75,7 @@ export default function Content() {
|
||||
const { data: orderData } = useQuery({
|
||||
queryKey: ['orderData'],
|
||||
queryFn: async () => {
|
||||
const { data } = await queryOrderList({ status: 5 });
|
||||
const { data } = await queryOrderList({ status: 5, page: 1, size: 10 });
|
||||
return data?.[0] ?? {};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { Dialog, DialogContent } from '@workspace/airo-ui/components/dialog';
|
||||
import { Dialog, DialogContent, DialogTitle } from '@workspace/airo-ui/components/dialog';
|
||||
import { Separator } from '@workspace/airo-ui/components/separator';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { useRouter } from 'next/navigation';
|
||||
@@ -63,6 +63,9 @@ const OrderDetailDialog = forwardRef<OrderDetailDialogRef, OrderDetailDialogProp
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogTitle>
|
||||
<div className={'sr-only'}>order detail</div>
|
||||
</DialogTitle>
|
||||
<DialogContent className='sm:w-[675px]'>
|
||||
<div className='text-4xl font-bold text-[#0F2C53] sm:mb-8 sm:text-center sm:text-4xl'>
|
||||
{t('orderDetail')}
|
||||
@@ -75,7 +78,7 @@ const OrderDetailDialog = forwardRef<OrderDetailDialogRef, OrderDetailDialogProp
|
||||
<Separator className='mb-3 mt-2 h-[2px] bg-[#225BA9]' />
|
||||
<div className='text-[15px] text-[#225BA9]'>
|
||||
<div>{t('paymentMethod')}</div>
|
||||
<div className='font-light text-[#666]'>{t('walletBalance')}</div>
|
||||
<div className='font-light text-[#666]'>{data?.payment?.name}</div>
|
||||
</div>
|
||||
<Separator className='mb-3 mt-4 bg-[#225BA9]' />
|
||||
<div>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default function Page() {
|
||||
queryFn: async () => {
|
||||
const { data } = await queryOrderDetail({ order_no: orderNo! });
|
||||
if (data?.data?.status !== 1) {
|
||||
getUserInfo();
|
||||
await getUserInfo();
|
||||
setEnabled(false);
|
||||
}
|
||||
return data?.data;
|
||||
|
||||
Reference in New Issue
Block a user