From 349c48e168b9f2580334422228acde7d1b21bede Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Fri, 05 Jun 2026 11:19:15 +0800
Subject: [PATCH] 1
---
src/components/fx-footer/index.vue | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/src/components/fx-footer/index.vue b/src/components/fx-footer/index.vue
index 23dc6b1..476ef9b 100644
--- a/src/components/fx-footer/index.vue
+++ b/src/components/fx-footer/index.vue
@@ -21,8 +21,8 @@
</template>
</van-tabbar-item>
- <van-tabbar-item name="fund" to="/cryptos/fund">
- <span :class="[active === 'fund' ? 'active' : '']">{{ $t('理财') }}</span>
+ <van-tabbar-item name="fund" to="/cryptos/machine">
+ <span :class="[active === 'fund' ? 'active' : '']">{{ $t('矿池') }}</span>
<template #icon="props">
<img :src="props.active ? icon.sto.active : icon.sto.inactive" />
</template>
@@ -114,7 +114,7 @@
active.value = 'assets'
} else if (route.path == "/documentation/index") {
active.value = 'documentation'
-} else if (route.path == "/cryptos/fund" || route.path.indexOf('/cryptos/fund') != -1) {
+} else if (isFundTabPath(route.path)) {
active.value = 'fund'
}
let quotesStore = useQuotesStore()
@@ -136,10 +136,26 @@
active.value = 'assets'
} else if (route.path == "/documentation/index") {
active.value = 'documentation'
- } else if (route.path == "/cryptos/fund" || route.path.indexOf('/cryptos/fund') != -1) {
+ } else if (isFundTabPath(route.path)) {
active.value = 'fund'
}
})
+
+const fundTabPrefixes = [
+ '/cryptos/machine',
+ '/cryptos/fm-home',
+ '/cryptos/loan',
+ '/cryptos/pool-lock',
+ '/cryptos/machine-buy',
+ '/cryptos/machine-rule',
+ '/cryptos/machine-confirm',
+ '/cryptos/order-success',
+ '/cryptos/loanHistory',
+ '/cryptos/loanRule',
+]
+function isFundTabPath(path) {
+ return fundTabPrefixes.some((p) => path === p || path.startsWith(p + '/'))
+}
// 底部列表
const icon = {
// optional: {
--
Gitblit v1.9.3