From 560d4de275e8ed1879cde120abc41e987daeead0 Mon Sep 17 00:00:00 2001 From: msh-agent Date: Sun, 3 May 2026 03:44:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E6=88=91=E7=9A=84=E9=A1=B5=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E7=98=A6=E8=BA=AB=20+=20=E8=AE=A1=E7=AE=97=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E9=A1=B5=E5=AE=A2=E6=9C=8D=E6=8C=89=E9=92=AE=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=20+=20=E5=8E=86=E5=8F=B2=E9=A1=B5=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=B6=E5=9B=9E=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit my-profile.vue: - 整段移除「工具与服务」(邀请有礼当前未上线,剩它一项无意义) - 同步清理 iconGift / goToInvite 残留 calculator-result.vue: - 「联系专业营养师」按钮 MP-WEIXIN 端改用 + + 联系专业营养师 + @@ -249,10 +256,17 @@ 采纳计划,开始打卡 - + + + + + 联系专业营养师 + @@ -483,7 +497,7 @@ export default { z-index: 99; } -/* Tab:未激活灰字、透明底边占位(无可见下划线);激活加粗+主色+橙色底边(BUG-002) */ +/* Tab:未激活 #9ca3af、无橙色下划线;激活加粗 + 主色字 + 3px 橙色底边(BUG-002) */ .tab-item { flex: 1; min-height: 0; @@ -493,40 +507,31 @@ export default { justify-content: center; gap: 16rpx; box-sizing: border-box; - color: #9ca3af; - font-weight: 400; - text-decoration: none; - border-bottom: 3px solid transparent; - transition: color 0.2s ease, border-color 0.2s ease; -} - -.tab-item .tab-icon, -.tab-item .tab-text { - font-size: 28rpx; -} - -/* 未激活:灰字、常规字重(显式写到 text 节点,避免小程序不继承 view 颜色) */ -.tab-item:not(.active) .tab-icon, -.tab-item:not(.active) .tab-text { - color: #9ca3af; - font-weight: 400; - text-decoration: none; -} - -/* 激活:粗体、主色、橙色底边(与未激活同宽底边,避免切换时跳动) */ -.tab-item.active { background: transparent; - color: #f97316; - font-weight: 700; - text-decoration: none; - border-bottom: 3px solid #f97316; -} + /* 与激活态同厚底边占位,避免切换跳动;透明即无可见下划线 */ + border-bottom: 3px solid transparent; + transition: color 0.2s ease, border-color 0.2s ease, font-weight 0.15s ease; -.tab-item.active .tab-icon, -.tab-item.active .tab-text { - color: #f97316; - font-weight: 700; - text-decoration: none; + /* 字色与字重落在 text 节点上,避免部分端不继承 view 的 color */ + .tab-icon, + .tab-text { + font-size: 28rpx; + color: #9ca3af; + font-weight: 400; + transition: color 0.2s ease, font-weight 0.15s ease; + } + + &.active { + color: #f97316; + font-weight: 700; + border-bottom: 3px solid #f97316; + + .tab-icon, + .tab-text { + color: #f97316; + font-weight: 700; + } + } } /* 内容滚动区域 */ @@ -787,6 +792,14 @@ export default { font-weight: 500; } } +/* 小程序原生 button 样式重置(保证视觉与原 view 版按钮一致) */ +.contact-btn-mp { + line-height: 96rpx; + padding: 0; +} +.contact-btn-mp::after { + border: none; +} /* 空状态 */ .empty-placeholder { diff --git a/msh_single_uniapp/pages/tool/my-profile.vue b/msh_single_uniapp/pages/tool/my-profile.vue index a5e2354..8539504 100644 --- a/msh_single_uniapp/pages/tool/my-profile.vue +++ b/msh_single_uniapp/pages/tool/my-profile.vue @@ -52,16 +52,7 @@ - - - 工具与服务 - - - - 邀请有礼 - - - + @@ -92,7 +83,6 @@ export default { return { // 仅保留模板还在使用的图标资源;其它未开发入口已隐藏,对应图标无需加载 iconVerified: 'https://www.figma.com/api/mcp/asset/e06ebfe5-bf8d-40e7-9b5f-a395c823127b', - iconGift: 'https://www.figma.com/api/mcp/asset/afaeb0a1-7276-4a8c-87c0-ba4dc4ce3eba', iconLogout: 'https://www.figma.com/api/mcp/asset/a4d5597f-0287-4411-a173-1e62db3c6c9f', userInfo: { name: '慢友小张', @@ -154,9 +144,6 @@ export default { goToCalculatorHistory() { uni.navigateTo({ url: '/pages/tool/calculator-history' }) }, - goToInvite() { - uni.navigateTo({ url: '/pages/tool/invite-rewards' }) - }, handleLogout() { uni.showModal({ title: '提示',