lxf
2025-07-05 872daddd00287cd44963483ba15f997d25a3da53
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;
  }