From e474e17de37a8b3c506d173d437d4cb338a422f3 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 28 Aug 2024 11:28:04 +0800
Subject: [PATCH] no message

---
 src/page/trade/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/page/trade/index.vue b/src/page/trade/index.vue
index 4ad418d..93962a6 100644
--- a/src/page/trade/index.vue
+++ b/src/page/trade/index.vue
@@ -13,7 +13,7 @@
 					<trade-deep-data :selectValue="selectValue" @getList="getList" :showType="showType" :symbol="symbol"
 						v-if="symbol" :price="price" class="w-290 mr-30" />
 				</keep-alive>
-				<trade-order-area :symbol="symbol" :init-open="initOpena" :newname="newname" :init-close="initClose"
+				<trade-order-area :key="newzuj" :symbol="symbol" :init-open="initOpena" :newname="newname" :init-close="initClose"
 					:price="price" @ordered="onOrdereda" />
 			</div>
 
@@ -258,6 +258,7 @@
 				range: "",
 				stop_price_profit: "",
 				stop_price_loss: "",
+				newzuj:0,
 				initClose: {},
 				asks: initArr, // 卖单
 				bids: initArr, // 买单
@@ -369,11 +370,15 @@
 				this.curTab = "fetchOrderListHold";
 			}
 			this.symbol = symbol;
+			// if(this.symbol == 'ORBITAL'){
+			// 	this.symbol = 'mother'
+			// }
 			if (this.typeindex == 0) {
 				this.inita(symbol);
 			} else {
 				this.init(symbol);
 			}
+			// this.handleQoutes()
 		},
 		methods: {
 			...mapActions("home", [SET_COIN_LIST]),
@@ -602,6 +607,7 @@
 			},
 			fetchDeepData(symbol) {
 				console.log("sd");
+				this.newzuj += 1
 				_getDeepData(symbol).then((data) => {
 					// 获取深度
 					console.log(data);
@@ -706,7 +712,7 @@
 					//console.log('开仓数据')
 					Axios.tradeBuyToken({}).then((res) => {
 						this.initOpena = res.data;
-						console.log(this.initOpen.volume, res.data.volume, type);
+						console.log(this.initOpena.volume, res.data.volume, type,111111);
 					});
 				}
 				if (type === "close" || !type) {
@@ -726,7 +732,8 @@
 				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);

--
Gitblit v1.9.3