You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
746 B
39 lines
746 B
2 years ago
|
import { DescItem } from '@/components/Description'
|
||
|
import { useRender } from '@/components/Table'
|
||
|
|
||
|
export const descSchema: DescItem[] = [
|
||
|
{
|
||
|
label: '支付单号',
|
||
|
field: 'id'
|
||
|
},
|
||
|
{
|
||
|
label: '商品标题',
|
||
|
field: 'subject'
|
||
|
},
|
||
|
{
|
||
|
label: '商品内容',
|
||
|
field: 'body'
|
||
|
},
|
||
|
{
|
||
|
label: '支付金额',
|
||
|
field: 'amount',
|
||
|
render: (curVal) => {
|
||
|
return useRender.renderText('¥', parseFloat(curVal || 0 / 100).toFixed(2))
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '创建时间',
|
||
|
field: 'createTime',
|
||
|
render: (curVal) => {
|
||
|
return useRender.renderDate(curVal)
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
label: '过期时间',
|
||
|
field: 'expireTime',
|
||
|
render: (curVal) => {
|
||
|
return useRender.renderDate(curVal)
|
||
|
}
|
||
|
}
|
||
|
]
|