2
0

feat:多货币以及支付方式配置

This commit is contained in:
zhongzm
2025-04-27 19:19:03 +08:00
parent 59d54185f5
commit 4422a2bab2
8 changed files with 233 additions and 13 deletions

View File

@@ -6,8 +6,12 @@ import { useElementSize } from '@vueuse/core';
import { fetchBillList } from '@/service/api/auth';
import { Tag as ATag } from 'ant-design-vue';
import BillSearch from '@/views/user-center/bill/modules/bill-search.vue';
import { useCurrencyStore, } from '@/views/billing/rule/modules/currency';
import { useI18n } from 'vue-i18n';
import {ref} from "vue/dist/vue";
const { t } = useI18n();
const currencyStore = useCurrencyStore();
const wrapperEl = shallowRef<HTMLElement | null>(null);
const { height: wrapperElHeight } = useElementSize(wrapperEl);
@@ -92,7 +96,7 @@ const {
title: t('page.bill.amount'),
align: 'center',
width: 120,
customRender: ({ text }) => `¥${Number(text).toFixed(2)}`
customRender: ({ text }) => `${currencyStore.symbol}${Number(text).toFixed(2)}`
},
{
key: 'status',