From 4e0d61d271cf51bcb3709986064d6bbfd84be896 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Thu, 18 Sep 2025 17:35:33 +0800
Subject: [PATCH] 1

---
 src/views/trade/index.vue |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/views/trade/index.vue b/src/views/trade/index.vue
index 7d4f090..7b415d6 100644
--- a/src/views/trade/index.vue
+++ b/src/views/trade/index.vue
@@ -9,13 +9,10 @@
       </van-tabs>
       <div class="gift"><img src="@/assets/imgs/home/gift.png" alt=""></div>
     </div> -->
-
     <ContractHeader :symbol="symbol" :range="range" :selectIndex="selectIndex" :symbolName="symbolName"
       :balance="userInfo.balance" @tab="onTopTab" @update-coin="onUpdate">
     </ContractHeader>
-
     <!-- <Head :symbolObj="symbolObj"></Head> -->
-
     <div :key="symbol" class="pb-108 no_touch">
       <p class="status-info" v-if="chartData.market && chartData.market.status">
         <span>{{ chartData.market.status && $t(chartData.market.status) }},</span>
@@ -305,10 +302,10 @@
     }
   },
   async created() {
-
     if (this.$route.query.type) {
       this.type = this.$route.query.type
     }
+	this.keyIndex += 1
     await this.SET_COIN_LIST(this.type)
     _getBalance().then(data => { // 获取用户余额
       this.$store.commit('user/SET_USERINFO', { balance: data.money })
@@ -317,8 +314,10 @@
     })
   },
   methods: {
+	  
     ...mapActions('home', [SET_COIN_LIST]),
     onUpdate(symbol) { // 更新
+		this.keyIndex += 1
       this.currentType = 'long'
       this.symbol = symbol
       this.closeSocket()
@@ -717,7 +716,7 @@
 
 .trade_new {
   color: $log-c;
-  background: $mainbgWhiteColor;
+  // background: $mainbgWhiteColor;
   min-height: 100vh;
   padding: 1.4rem 1.4rem 7rem 1.4rem;
 
@@ -747,8 +746,8 @@
 }
 
 #cryptos {
-  background: $mainbgWhiteColor;
-  $inp-b: #f7f7f7;
+  // background: $mainbgWhiteColor;
+  $inp-b: $tab_background;
 
   :deep(.textColor) {
     color: $log-c;

--
Gitblit v1.9.3