lxf
2025-07-11 fd66f3c47027795370f363d74f2258491dd38542
src/components/Transform/trade-head/index.vue
@@ -42,6 +42,9 @@
              v-if="isCollect" />
            <img v-else src="../../../assets/image/icon-star.png" class="w-30 h-30 mr-10 ml-20" @click="openCurrency" />
          </div>
        <img src="../../../assets/image/public/record.png" alt="record-img" class="w-44 h-44  "
           @click="goHistory" />
          <img v-if="isTrade" src="../../../assets/image/kline.png" class="w-44 h-44 right" alt=""
            @click="$router.push(`/cryptos/trendDetails/${symbol}?kineType=trade`)">
        </div>
@@ -223,6 +226,17 @@
      }
      this.show = false
    },
   goHistory() {
      if (this.$store.state.user.userInfo.token) {
         let type = 'cryptos'
         if (this.$route.query.type) {
            type = this.$route.query.type
         }
         this.$router.push(`/cryptos/tradeRecord/${this.symbol}/?type=${type}`)
      } else {
         this.$router.push('/login')
      }
   },
    async onSidebar() { // 侧边栏打开
      // console.log(this.userInfo)
     // 优先用本地缓存的 coins