From 6383555556aa2902932edfebba98b2331a137662 Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Fri, 26 Sep 2025 17:40:23 +0800 Subject: [PATCH] uptada --- .../homePage/components/topBox/index.vue | 54 ++++++++----------- 1 file changed, 23 insertions(+), 31 deletions(-) diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue index 917a01d..9312590 100644 --- a/f/web-kboss/src/views/homePage/components/topBox/index.vue +++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue @@ -15,23 +15,7 @@

{{ translations[language].home }}

- -

- {{ translations[language].latestActivity }} -

- -

- AI -

- -

- {{ translations[language].fusionCloud }} -

- -

- {{ translations[language].solutions }} -

- +

{{ translations[language].ecosystem }}

@@ -124,13 +108,13 @@ {{ language === 'zh' ? 'English' : '中' }} - + - + {{ translations[language].console }} - + {{ translations[language][i.secTitle] - || i.secTitle }} + || i.secTitle }} @@ -275,7 +259,6 @@ import { reqApplyChannel } from "@/api/customer/channel"; import store from "@/store"; // 导入工具函数 import { getHomePath } from '@/views/setting/tools' - export default Vue.extend({ name: "TopBox", data() { @@ -299,10 +282,7 @@ export default Vue.extend({ translations: { zh: { home: '首页', - latestActivity: '最新活动', - fusionCloud: '融合云', - solutions: '解决方案', - ecosystem: '生态与合作', + ecosystem: '产品与服务', aboutUs: '关于我们', balance: '余额', recharge: '充值', @@ -771,6 +751,17 @@ export default Vue.extend({ if (this.hideTimer) { clearTimeout(this.hideTimer) } + }, + // 处理登录跳转逻辑 + handleGoLogin() { + let token = this.$store.getters.token; + if (!token) { + // 提示登录 + this.$message.warning('请先登录哦~'); + this.$router.push({ + path: '/login' + }); + } } }, }) @@ -869,7 +860,7 @@ export default Vue.extend({ .language-toggle { cursor: pointer; - margin:20px; + margin: 20px; width: 60px; text-align: center; border-radius: 4px; @@ -916,9 +907,10 @@ export default Vue.extend({ } } - .functions{ - padding-right:20px; - &:hover{ + .functions { + padding-right: 20px; + + &:hover { color: #1E6FFF; } } @@ -972,7 +964,7 @@ export default Vue.extend({ &:hover { cursor: pointer; - color:#1E6FFF; + color: #1E6FFF; } } }