From 945cf9c104cabbe81374f04f681458e4a5f2d3db Mon Sep 17 00:00:00 2001 From: weicw1996 Date: Mon, 12 Oct 2026 18:22:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(UI):=20=E9=A6=96=E9=A1=B5=20tab=20?= =?UTF-8?q?=E4=B8=8E=E8=87=AA=E4=B8=BB=E5=A1=AB=E6=8A=A5=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=94=B9=E7=94=A8=20uview=20=E7=9F=A2?= =?UTF-8?q?=E9=87=8F=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e192296 把纯白透明底图片图标垫了深色底块反衬,解决了「白底上看不见」, 但本质是靠底色绕开图源问题,选中态也就只能靠加深底色表达。 改用 u-icon 矢量图标后可直接着色: - 首页 tab:未选中灰色 #6b7280,选中白色;图标按语义取 order / clock / checkmark-circle - 自主填报入口:未选中浅绿底 + 绿色图标,选中深绿底 + 白色图标; store/visit 取 home-fill / car-fill 顺带删掉两处为图片补正尺寸的样式(.tab-icon-wrap 白圆底、 .type-icon/.type-icon-store 的宽高补正),矢量图标不需要。 图标名已对照 uview 图标库校验(u-icon 会自动补 uicon- 前缀)。 --- packageUser/self-report/select.vue | 30 ++++++------------- pages/index/index.vue | 46 +++++++++--------------------- 2 files changed, 22 insertions(+), 54 deletions(-) diff --git a/packageUser/self-report/select.vue b/packageUser/self-report/select.vue index 8f16801..59bf54e 100644 --- a/packageUser/self-report/select.vue +++ b/packageUser/self-report/select.vue @@ -26,8 +26,8 @@ @tap="form.type = item.value" > - + {{ item.title }} @@ -49,8 +49,8 @@