From e560e76f5ff015cc41079ec8c084391ace9e131d Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 20 Mar 2026 09:40:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - topMenu.js: 添加 home-btn 圆形按钮 (el-icon-s-home) - topMenu.js: 添加 goIndex() 方法跳转 /index - dark-override.css: home-btn 图标样式(18px/灰色/hover蓝) --- clientarea/hgcloud/components/topMenu/topMenu.js | 8 ++++++++ clientarea/hgcloud/css/dark-override.css | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/clientarea/hgcloud/components/topMenu/topMenu.js b/clientarea/hgcloud/components/topMenu/topMenu.js index e381ad4..4129c32 100644 --- a/clientarea/hgcloud/components/topMenu/topMenu.js +++ b/clientarea/hgcloud/components/topMenu/topMenu.js @@ -89,6 +89,11 @@ const topMenu = {
+
+
+ +
+
@@ -409,6 +414,9 @@ const topMenu = { this.isGetData = true; }); }, + goIndex () { + location.href = "/index"; + }, goShoppingCar () { localStorage.frontMenusActiveId = ""; location.href = "/cart/shoppingCar.htm"; diff --git a/clientarea/hgcloud/css/dark-override.css b/clientarea/hgcloud/css/dark-override.css index b30d26e..6e6875d 100644 --- a/clientarea/hgcloud/css/dark-override.css +++ b/clientarea/hgcloud/css/dark-override.css @@ -150,11 +150,21 @@ html, body { } .header-right .header-right-item { - display: flex !important; - align-items: center !important; + display: flex; + align-items: center; } /* ============ 顶栏右侧按钮 — 纯圆形 ============ */ +/* 首页按钮 */ +.home-btn i { + font-size: 18px !important; + color: #4E5969 !important; +} + +.home-btn:hover i { + color: #165DFF !important; +} + /* 购物车按钮 */ .header-right .header-right-item .right-item { width: 36px !important;