From 872daddd00287cd44963483ba15f997d25a3da53 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Sat, 05 Jul 2025 11:54:34 +0800
Subject: [PATCH] stye

---
 src/components/Transform/contract-header/index.vue |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/src/components/Transform/contract-header/index.vue b/src/components/Transform/contract-header/index.vue
index 7051af4..68242f9 100644
--- a/src/components/Transform/contract-header/index.vue
+++ b/src/components/Transform/contract-header/index.vue
@@ -5,7 +5,7 @@
       <div class="pl-30 pr-30">
         <div class="flex justify-start pt-45 before">
           <div class="flex items-center ">
-            <img src="@/assets/image/icon_back_1.png" class="w-35 h-35 back" alt="" @click="jump()">
+            <img src="@/assets/image/icon_back.png" class="w-35 h-35 back" alt="" @click="jump()">
             <img src="@/assets/theme/dark/image/black-convert.png" alt="convert-img" class="w-35 h-35" @click="onSidebar">
             <div class="flex pl-21 textColor" @click="onSidebar">
               <div class="font-35">{{ symbolName.toUpperCase() || '--' }}</div>
@@ -20,7 +20,7 @@
                             @click="jump" />
                     </div> -->
         </div>
-        <div class="flex justify-between  pt-34">
+        <div class="flex justify-between  pt-34" v-if="!selectIndex==2">
           <button class="tabBtn w-368 h-74 lh-74 border-none  rounded"
             :class="selectIndex == 1 ? 'select-active' : 'no-select'" @click="changeTab(1)">
             {{ $t('永续合约') }}</button>
@@ -173,17 +173,18 @@
       }
     },
     jump() {
-      if (this.$route.query?.from === 'trade') {
-        this.$router.push('/trade/index?tabActive=1')
-        return
-      }
-      if (this.$route.query.type == 'indices') {
-        this.$router.push('/quotes/index')
-      } else if (this.$route.query.type == 'US-stocks') {
-        this.$router.push('/quotes/index?tabActive=3')
-      } else {
-        this.$router.push('/quotes/index?tabActive=1')
-      }
+      this.$router.go(-1)
+      // if (this.$route.query?.from === 'trade') {
+      //   this.$router.push('/trade/index?tabActive=1')
+      //   return
+      // }
+      // if (this.$route.query.type == 'indices') {
+      //   this.$router.push('/quotes/index')
+      // } else if (this.$route.query.type == 'US-stocks') {
+      //   this.$router.push('/quotes/index?tabActive=3')
+      // } else {
+      //   this.$router.push('/quotes/index?tabActive=1')
+      // }
     },
     klineJump() {
       this.$router.push(`/cryptos/trendDetails/${this.symbol}?type=${this.queryType}`)
@@ -237,7 +238,7 @@
 
   .select-one-active {
     background-color: $red;
-    color: $text_color;
+    color: #fff;
     border: none;
   }
 

--
Gitblit v1.9.3