feat: 更新钱包管理功能,添加银行账户和余额的初始化逻辑,优化API请求和响应处理
This commit is contained in:
@@ -3,7 +3,8 @@ import RechargeChannel from "./recharge-channel.vue";
|
||||
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const { state } = useWalletStore();
|
||||
const walletStore = useWalletStore();
|
||||
const { balances } = storeToRefs(walletStore);
|
||||
const rechargeInstance = ref<ModalInstance>();
|
||||
|
||||
function onCloseModal() {
|
||||
@@ -12,12 +13,16 @@ function onCloseModal() {
|
||||
function handleWithdraw() {
|
||||
router.push("/withdraw/index");
|
||||
}
|
||||
|
||||
onUpdated(() => {
|
||||
walletStore.updateBalances();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="mt-5 shadow-md rounded-lg overflow-hidden">
|
||||
<div class="grid grid-cols-1 gap-5 p-5 bg-(--ion-card-background)">
|
||||
<div v-for="item in state.balances" :key="item.assetCode" class="flex flex-col gap-1">
|
||||
<div v-for="item in balances" :key="item.assetCode" class="flex flex-col gap-1">
|
||||
<div class="uppercase text-xs text-text-400 font-medium tracking-[0.4px]">
|
||||
{{ item.assetCode }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user