From 3f3e2d5977787b0c6e09cd5cba7b41e5fb7d3fd0 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 21 Apr 2024 15:59:28 +0800
Subject: [PATCH] first
---
src/page/trade/index.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/page/trade/index.vue b/src/page/trade/index.vue
index 4ec2d1b..22287f3 100644
--- a/src/page/trade/index.vue
+++ b/src/page/trade/index.vue
@@ -179,9 +179,9 @@
</div>
<div class="fixed w-full shadow z-10 tabBackground1">
<div class="flex justify-between px-30 py-10">
- <span class="font-24 textColor2"
- >{{ symbol.toUpperCase() }}/USDT {{ $t("k线图表") }}</span
- >
+ <span class="font-24 textColor2">
+ {{ symbol | _symbolName(1) }} {{ $t("k线图表") }}
+ </span>
<van-icon
class="textColor"
@click.stop="showCharts = !showCharts"
@@ -309,8 +309,13 @@
await this.SET_COIN_LIST();
}
},
+ mounted() {
+ this.GET_UERS_KYC();
+ },
methods: {
...mapActions("home", [SET_COIN_LIST]),
+ ...mapActions("user", ["GET_UERS_KYC"]),
+
onUpdate(symbol) {
// 更新
this.symbol = symbol;
@@ -365,6 +370,7 @@
this.socket.onmessage = (evt) => {
const { data } = evt;
const { code, data: _data } = JSON.parse(data);
+ console.log(_data);
if (code / 1 === 0) {
this.handleQoutes(_data);
}
@@ -494,12 +500,10 @@
let {
params: { symbol },
} = to;
- console.log("to", to);
let catchTradeSymbol = getStorage("tradeSymbol");
if (catchTradeSymbol) {
symbol = catchTradeSymbol;
}
- console.log(catchTradeSymbol);
if (symbol) {
next((vm) => {
vm.symbol = symbol;
--
Gitblit v1.9.3