From e0eddb9df4bf0beca048072386fe89a106817a2c Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Thu, 24 Oct 2024 15:19:18 +0800
Subject: [PATCH] 1
---
src/page/TtrendDetails/index.vue | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/src/page/TtrendDetails/index.vue b/src/page/TtrendDetails/index.vue
index 86972a2..e4fe930 100644
--- a/src/page/TtrendDetails/index.vue
+++ b/src/page/TtrendDetails/index.vue
@@ -16,7 +16,7 @@
<trade-head
@openRecord="openRecord"
:backFunc="() => $router.push('/')"
- :symbol="symbol=='mother'?'ORBITAL':(symbol=='zkp'?'ZYD':(symbol=='dia'?'DEA':(symbol=='xeta'?'AXFD':(symbol=='og'?'SMK':(symbol=='fil'?'FPP':symbol.toUpperCase())))))"
+ :symbol="symbol=='mother'?'ORBITAL':(symbol=='zkp'?'ZYD':(symbol=='dia'?'DEA':(symbol=='xeta'?'AXFD':(symbol=='og'?'SMK':(symbol=='fil'?'FPP':(symbol=='gas'?'ASK':(symbol=='axs'?'JKRT':symbol.toUpperCase())))))))"
:islevel="true"
@update-coin="onUpdate"
@data="quote = $event"
@@ -552,6 +552,33 @@
},
startAskBidSocket() {
// 委托
+ if(this.symbol=='orbital'){
+ this.symbol = 'mother'
+ }
+ if(this.symbol=='zyd'){
+ this.symbol = 'zkp'
+ }
+ if(this.symbol=='dea'){
+ this.symbol = 'dia'
+ }
+ if(this.symbol=='axfd'){
+ this.symbol = 'xeta'
+ }
+ if(this.symbol=='smk'){
+ this.symbol = 'og'
+ }
+ if(this.symbol=='fpp'){
+ this.symbol = 'fil'
+ }
+ if(this.symbol=='ask'){
+ this.symbol = 'gas'
+ }
+ if(this.symbol=='jkrt'){
+ this.symbol = 'axs'
+ }
+ if(this.symbol=='egt'){
+ this.symbol = 'ethw'
+ }
this.sockets.askBid = new WebSocket(`${WS_URL}/3/${this.symbol}`);
this.sockets.askBid.onmessage = (evt) => {
const { data } = evt;
--
Gitblit v1.9.3