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 +++++++++++---------
src/components/Transform/list-quotation/index.vue | 10 +++++-----
src/config/index.js | 8 ++++----
3 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/src/components/Transform/list-quotation/index.vue b/src/components/Transform/list-quotation/index.vue
index 4016eb9..f42dd52 100644
--- a/src/components/Transform/list-quotation/index.vue
+++ b/src/components/Transform/list-quotation/index.vue
@@ -62,10 +62,10 @@
currency.rate).toFixed(2) || '--' }}</p>
</li>
<li class="right flex items-center justify-end">
- <p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio_str > 0 || item.change_ratio > 0">
- +{{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ <p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio_str > 0">
+ {{ (item.change_ratio_str === 0 ? 0 : item.change_ratio_str) }}%</p>
<p class="w-153 font-31 h-71 bg-red text-white border-0 text-center btn" v-else>
- {{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ {{ (item.change_ratio_str === 0 ? 0 : item.change_ratio_str) }}%</p>
</li>
</ul>
</van-cell>
@@ -100,9 +100,9 @@
</div>
<template v-else>
<p class="w-153 font-31 h-71 bg-green text-white border-0 text-center btn" v-if="item.change_ratio_str > 0 || item.change_ratio > 0">
- +{{ item.change_ratio || item.change_ratio_str }}%</p>
+ +{{ item.change_ratio_str }}%</p>
<p class="w-153 font-31 h-71 bg-red text-white border-0 text-center btn" v-else>
- {{ item.change_ratio || (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
+ {{ (item.change_ratio_str === 0 ? 0 : '--') }}%</p>
</template>
</li>
</ul>
diff --git a/src/config/index.js b/src/config/index.js
index 06555ad..5c924a8 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -35,8 +35,8 @@
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
// const ENV_DEV = 'openapi.yanshiz.com' // dev
-const ENV_DEV = '192.168.10.24:8086' // dev
-// const ENV_DEV = 'aa.yanshiz.com' // dev
+// const ENV_DEV = '192.168.10.24:8086' // dev
+const ENV_DEV = 'aa.yanshiz.com' // dev
// const ENV_PRO = 'qheufhj.site' // app域名
@@ -48,8 +48,8 @@
let ws_url = ''
let host_url = ''
if (import.meta.env.MODE === 'development') {
- host_url = 'http://' + ENV_DEV
- base_url = 'http://' + ENV_DEV
+ host_url = 'https://' + ENV_DEV
+ base_url = 'https://' + ENV_DEV
ws_url = 'ws://' + ENV_DEV + '/api/websocket'
} else {
host_url = 'https://' + ENV_PRO
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