fix: 金额显示问题
This commit is contained in:
@@ -10,7 +10,7 @@ import { Descriptions, Divider, Tag } from 'ant-design-vue';
|
||||
|
||||
import { getOrder } from '#/api/pay/order';
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
import { DICT_TYPE } from '#/utils';
|
||||
import { DICT_TYPE, floatToFixed2 } from '#/utils';
|
||||
|
||||
const detailData = ref<PayOrderApi.Order>();
|
||||
|
||||
@@ -63,16 +63,16 @@ const [Modal, modalApi] = useVbenModal({
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="支付金额">
|
||||
<Tag color="green" size="small">
|
||||
¥{{ (detailData?.price || 0 / 100.0).toFixed(2) }}
|
||||
¥{{ floatToFixed2(detailData?.price) }}
|
||||
</Tag>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="手续费">
|
||||
<Tag color="orange" size="small">
|
||||
¥{{ (detailData?.channelFeePrice || 0 / 100.0).toFixed(2) }}
|
||||
¥{{ floatToFixed2(detailData?.channelFeePrice) }}
|
||||
</Tag>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="手续费比例">
|
||||
{{ (detailData?.channelFeeRate || 0 / 100.0).toFixed(2) }}%
|
||||
{{ floatToFixed2(detailData?.channelFeeRate) }}%
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="支付时间">
|
||||
{{ formatDateTime(detailData?.successTime) }}
|
||||
@@ -115,7 +115,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="退款金额" :span="2">
|
||||
<Tag size="small" color="red">
|
||||
¥{{ (detailData?.refundPrice || 0 / 100.0).toFixed(2) }}
|
||||
¥{{ floatToFixed2(detailData?.refundPrice) }}
|
||||
</Tag>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="通知 URL">
|
||||
|
||||
Reference in New Issue
Block a user