From 40ba46b887bd8eec7216c63e85b34e096df31420 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Fri, 11 Jul 2025 11:03:30 +0800
Subject: [PATCH] 交易页面
---
src/components/Transform/trade-head/index.vue | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/components/Transform/trade-head/index.vue b/src/components/Transform/trade-head/index.vue
index 3c42e03..bc0e79d 100644
--- a/src/components/Transform/trade-head/index.vue
+++ b/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
--
Gitblit v1.9.3