From 7fc6bfe900790ec7c92bce85d5b20a95fbc06e65 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 15 Oct 2025 10:29:30 +0800
Subject: [PATCH] 其他人改的版本
---
src/components/fx-footer/index.vue | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/components/fx-footer/index.vue b/src/components/fx-footer/index.vue
index 27b0e0e..a24c36a 100644
--- a/src/components/fx-footer/index.vue
+++ b/src/components/fx-footer/index.vue
@@ -32,7 +32,8 @@
<van-tabbar-item name="btcusdt" to="/cryptos/trade/btcusdt">
<span :class="[active === 'btcusdt' ? 'active' : '']">{{ $t('现货') }}</span>
<template #icon="">
- <img src="@/assets/imgs/footer/f_4a.png" />
+ <img v-if="active != 'btcusdt'" src="@/assets/imgs/footer/f_4a.png" />
+ <img v-else src="@/assets/imgs/footer/f_4b.png" />
</template>
</van-tabbar-item>
@@ -111,6 +112,9 @@
} else if (route.path == "/documentation/index") {
active.value = 'documentation'
}
+else if (route.path == "/cryptos/trade/btcusdt") {
+ active.value = 'btcusdt'
+}
let quotesStore = useQuotesStore()
watch(() => route.path, (nv) => {
@@ -130,6 +134,8 @@
active.value = 'assets'
} else if (route.path == "/documentation/index") {
active.value = 'documentation'
+ }else if (route.path == "/cryptos/trade/btcusdt") {
+ active.value = 'btcusdt'
}
})
// 底部列表
@@ -217,4 +223,4 @@
height: 20px;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3