From 4e060ba04e97107a4b000e0232c818912a83e9d0 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Tue, 08 Jul 2025 20:08:03 +0800
Subject: [PATCH] style
---
src/views/optional/index.vue | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/views/optional/index.vue b/src/views/optional/index.vue
index 1773b22..3628f0a 100644
--- a/src/views/optional/index.vue
+++ b/src/views/optional/index.vue
@@ -35,15 +35,15 @@
<div class="text-12 pt-10">
<div class="flex justify-between items-center">
<div style="color: rgb(150, 150, 150);">{{t('可用')}}({{ currency.name }})</div>
- <div class="title text-blue-600">{{ currency.mark_price }}</div>
+ <div class="title text-blue-600">{{ currency.usable }}</div>
</div>
<div class="my-16 flex justify-between items-center">
<div style="color: rgb(150, 150, 150);">{{ t('处理中') }}({{ currency.name }})</div>
- <div>{{ 0 }}</div>
+ <div>{{ currency.freeze_amount }}</div>
</div>
<div class="flex justify-between items-center">
<div style="color: rgb(150, 150, 150);">{{ t('转换') }}(USDT)</div>
- <div></div>
+ <div>{{ currency.usdt }}</div>
</div>
</div>
</div>
@@ -56,6 +56,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import { _getContractBySymbolType, _contractOrder } from '@/service/etf.api';
+import { _getAllWallet } from '@/service/fund.api';
import { useI18n } from "vue-i18n";
import {useRouter} from 'vue-router';
const { t } = useI18n()
@@ -87,15 +88,16 @@
const getOrderList = async () => {
const params = {
- type: 'orders',
- page_no: 1,
- page_size: 'all',
- symbolType: 'forex'
+ // type: 'orders',
+ // page_no: 1,
+ // page_size: 'all',
+ symbolType: 'cryptos'
};
- const response = await _contractOrder(params);
+
+ const response = await _getAllWallet(params);
console.log(response, 'response')
// 处理订单数据
- currencies.value = response
+ currencies.value = response.extends
};
</script>
--
Gitblit v1.9.3