From c7aae62f433aee1c28912abf6b34f49c7a65f31d Mon Sep 17 00:00:00 2001 From: simple321vip Date: Sat, 17 Sep 2022 08:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=98=E5=8F=A0=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/NavBar.vue | 2 +- src/view/capital/index.vue | 233 +++++++++++++++++-------------- src/view/recommend/index.vue | 98 +++++++------ 3 files changed, 186 insertions(+), 147 deletions(-) diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index c8b9618..465a7f7 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -11,7 +11,7 @@   9:00-11:30   -   13:00-15:00   +   13:30-15:00     21:00-23:00 diff --git a/src/view/capital/index.vue b/src/view/capital/index.vue index a1969a9..3c559ed 100644 --- a/src/view/capital/index.vue +++ b/src/view/capital/index.vue @@ -1,102 +1,131 @@ @@ -107,7 +136,7 @@ import { reactive, ref, h, onMounted, onUnmounted } from 'vue' import { get_accounts, send_order, get_tick } from '../../api/capital' import { strategyStore } from '../../store/strategy'; type AccountData = { - geteway_name: string + gateway_name: string account_id: string balance: number frozen: number @@ -156,7 +185,7 @@ const volume = ref(1) const price = ref(3000) const timer = ref(0) const account_data = reactive({ - geteway_name: '', + gateway_name: '', account_id: '', balance: 0.0, frozen: 0.0 @@ -164,7 +193,7 @@ const account_data = reactive({ const positions_data = reactive([]) const trades_data = reactive([]) const orders_data = reactive([]) - +const activeNames = ref(['1']) const on_query_accounts = () => { get_accounts().then(res => { @@ -172,7 +201,7 @@ const on_query_accounts = () => { let account: any = accounts.pop() account_data.account_id = account.account_id account_data.balance = account.balance - account_data.geteway_name = account.geteway_name + account_data.gateway_name = account.gateway_name account_data.frozen = account.frozen positions_data.length = 0 diff --git a/src/view/recommend/index.vue b/src/view/recommend/index.vue index bcb9cfe..491e138 100644 --- a/src/view/recommend/index.vue +++ b/src/view/recommend/index.vue @@ -1,38 +1,45 @@