From fab9d57071a7cc1dc1dcce0c9ee4640d20727251 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Sat, 18 Oct 2025 11:06:15 +0800
Subject: [PATCH] 1

---
 src/views/cryptos/Trade/index.vue |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/src/views/cryptos/Trade/index.vue b/src/views/cryptos/Trade/index.vue
index 368bc93..c0e139b 100644
--- a/src/views/cryptos/Trade/index.vue
+++ b/src/views/cryptos/Trade/index.vue
@@ -63,8 +63,8 @@
           @cancelOrder="cancelOrder" />
       </div>
       <div class="py-20 px-20" v-else-if="tabType == '2'">
-        <history-item unit="USDT" v-for="item in entrustList" :key="item.order_no" :coinPrice="coinPrice" :entrust="item"
-          :state="item.state" @cancelOrder="cancelOrder" />
+        <history-item unit="USDT" v-for="item in entrustList" :key="item.order_no" :coinPrice="coinPrice"
+          :entrust="item" :state="item.state" @cancelOrder="cancelOrder" />
       </div>
       <div class="py-20 px-20" v-else>
         <div class="mb-20">
@@ -126,7 +126,7 @@
         <k-line-charts :update-key="updateKey" :update-data="quote" :symbol="symbol" v-if="symbol && showCharts"
           :showBottom="false" />
       </div> -->
-      
+
       <!-- <div class="fixed-box">
         <div class="flex justify-between items-center px-30 py-20" @click.stop="handleClickShowKlineChart()">
           <span class="font-30  textColor2">{{ symbol.toUpperCase() }}&nbsp;&nbsp;{{ $t('k线图表') }}</span>
@@ -140,9 +140,7 @@
       </div> -->
       <van-action-sheet class="action-sheet" v-model:show="isSelectShow" @select="onSelect" :actions="actions"
         :cancel-text="$t('取消')" close-on-click-action @cancel="onCancel" />
-
     </div>
-
   </div>
 </template>
 
@@ -282,6 +280,8 @@
     handleImage,
     ...mapActions('home', [SET_COIN_LIST]),
     onUpdate(symbol) { // 更新
+      console.log("symbol", symbol);
+
       this.symbol = symbol
       this.closeSocket()
       this.init(symbol)
@@ -391,13 +391,15 @@
             this.initClose = res
           })
         }
-
         if (this.userInfo.token) {
           this.getWallet()
           this.timer3 = setInterval(() => {
             this.getOrderList();
           }, 2000)
         }
+      }
+      else {
+        showFailToast(this.$t('请先登录'))
       }
     },
     init(symbol) { // 初始化页面
@@ -542,7 +544,8 @@
 @import "@/assets/init.scss";
 
 #cryptos {
-  background-color: $mainbgWhiteColor;
+
+  // background-color: $mainbgWhiteColor;
   :v-deep(.px-4) {
     padding-left: 30px !important;
     padding-right: 30px !important;
@@ -553,11 +556,11 @@
     padding-bottom: 30px !important;
   }
 
-  .diviLine{
+  .diviLine {
     background: $mainbgWhiteColor;
   }
 
-  .border-b-color{
+  .border-b-color {
     border-bottom-color: $inp_b;
     padding-bottom: 5px;
   }
@@ -646,10 +649,12 @@
 
   .select-box {
     width: 220px;
-
-    background: $inp-b;
-
+    // background: $inp-b;
     margin-right: 20px;
+
+    @include themify() {
+      background: themed("tab_background");
+    }
   }
 
 }

--
Gitblit v1.9.3