fix(通知):修改通知逻辑
This commit is contained in:
+14
@@ -65,4 +65,18 @@
|
||||
&:hover, &:focus {
|
||||
border-color: #1890ff;
|
||||
}
|
||||
}
|
||||
|
||||
.imageList {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
|
||||
:global {
|
||||
.ant-image {
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #f0f0f0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+24
-1
@@ -4,7 +4,7 @@ import {
|
||||
ProFormSelect,
|
||||
ProFormTextArea,
|
||||
} from '@ant-design/pro-components';
|
||||
import { Typography, Descriptions, Space, Tag } from 'antd';
|
||||
import { Typography, Descriptions, Space, Tag, Image } from 'antd';
|
||||
import React from 'react';
|
||||
import { ORDER_STATUS, REFUND_STATUS } from '../constants';
|
||||
import styles from './UpdateForm.less';
|
||||
@@ -63,6 +63,29 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
|
||||
{REFUND_STATUS[values?.state]?.text || '未知状态'}
|
||||
</Tag>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="退款原因" span={2}>
|
||||
{values?.refundReason || '-'}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="退款图片" span={2}>
|
||||
{values?.refundImgs ? (
|
||||
<div className={styles.imageList}>
|
||||
{values.refundImgs.split(',').map((url: string, index: number) => (
|
||||
<Image
|
||||
key={index}
|
||||
src={url}
|
||||
width={100}
|
||||
height={100}
|
||||
style={{ marginRight: 8, marginBottom: 8 }}
|
||||
preview={{
|
||||
src: url,
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="申请时间" span={2}>
|
||||
{values?.createTime}
|
||||
</Descriptions.Item>
|
||||
|
||||
Reference in New Issue
Block a user