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/perpetualContract/index.vue |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 58 insertions(+), 2 deletions(-)

diff --git a/src/page/perpetualContract/index.vue b/src/page/perpetualContract/index.vue
index e7a3c5e..58b29df 100644
--- a/src/page/perpetualContract/index.vue
+++ b/src/page/perpetualContract/index.vue
@@ -331,6 +331,33 @@
     },
     startQuoteSocket() {
       // 行情socket
+	  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=='ASK'){
+	  	this.symbol = 'gas'
+	  }
+	  if(this.symbol=='jkrt'){
+	  	this.symbol = 'axs'
+	  }
+	  if(this.symbol=='egt'){
+	  	this.symbol = 'ethw'
+	  }
       this.sockets.quotes = new WebSocket(`${WS_URL}/1/${this.symbol}`);
       // socket.onopen =  () => {
       //     console.log('open')
@@ -347,7 +374,33 @@
     startDeepSocket() {
       // 开启socket链接
       this.closeSocket();
-
+		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=='ASK'){
+			this.symbol = 'gas'
+		}
+		if(this.symbol=='jkrt'){
+			this.symbol = 'axs'
+		}
+		if(this.symbol=='egt'){
+			this.symbol = 'ethw'
+		}
       this.socket = new WebSocket(`${WS_URL}/3/${this.symbol}`);
 
       this.socket.onopen = () => {
@@ -378,7 +431,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 +498,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