From 08ac00389c5ae6166cf916d90cf403d517c29224 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 13 Nov 2024 15:56:25 +0800
Subject: [PATCH] 1
---
src/page/perpetualContract/index.vue | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/src/page/perpetualContract/index.vue b/src/page/perpetualContract/index.vue
index e7a3c5e..9dd11ac 100644
--- a/src/page/perpetualContract/index.vue
+++ b/src/page/perpetualContract/index.vue
@@ -331,6 +331,26 @@
},
startQuoteSocket() {
// 行情socket
+ if(this.symbol=="jkrt"){
+ this.symbol = 'axs'
+ }else if(this.symbol=="ask"){
+ this.symbol = 'gas'
+ }else if(this.symbol=="egt"){
+ this.symbol = 'ethw'
+ }else if(this.symbol=="fpp"){
+ this.symbol = 'fil'
+ }else if(this.symbol=="smk"){
+ this.symbol = 'og'
+ }else if(this.symbol=="axfd"){
+ this.symbol = 'xeta'
+ }else if(this.symbol=="dea"){
+ this.symbol = 'dia'
+ }else if(this.symbol=="zyd"){
+ this.symbol = 'zkp'
+ }else if(this.symbol=="orbital"){
+ this.symbol = 'mother'
+ }
+
this.sockets.quotes = new WebSocket(`${WS_URL}/1/${this.symbol}`);
// socket.onopen = () => {
// console.log('open')
@@ -347,7 +367,25 @@
startDeepSocket() {
// 开启socket链接
this.closeSocket();
-
+ if(this.symbol=="jkrt"){
+ this.symbol = 'axs'
+ }else if(this.symbol=="ask"){
+ this.symbol = 'gas'
+ }else if(this.symbol=="egt"){
+ this.symbol = 'ethw'
+ }else if(this.symbol=="fpp"){
+ this.symbol = 'fil'
+ }else if(this.symbol=="smk"){
+ this.symbol = 'og'
+ }else if(this.symbol=="axfd"){
+ this.symbol = 'xeta'
+ }else if(this.symbol=="dea"){
+ this.symbol = 'dia'
+ }else if(this.symbol=="zyd"){
+ this.symbol = 'zkp'
+ }else if(this.symbol=="orbital"){
+ this.symbol = 'mother'
+ }
this.socket = new WebSocket(`${WS_URL}/3/${this.symbol}`);
this.socket.onopen = () => {
@@ -378,7 +416,7 @@
if (type === "open" || type === "long" || type === "short" || !type) {
let initFunTimer = null;
let initFun = () => {
- _initOpen(symbol)
+ _initOpen(symbol.toLowerCase())
.then((data) => {
this.initOpen = data;
clearTimeout(initFunTimer);
@@ -445,11 +483,14 @@
return;
}
if (this.userInfo.token) {
+ // debugger
+ symbol = ''
_orderListHold(symbol).then((data) => {
// this.orderHold = data
this.orderHold = data.sort(this.sortData);
});
this.timer = setInterval(() => {
+ // console.log('112233',symbol);
_orderListHold(symbol).then((data) => {
// if (typeof this.timer === 'string') {
// this.timer = null
--
Gitblit v1.9.3