diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index c2c02a3..678ecce 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -1,5 +1,8 @@ // 自定义 tabBar:固定在底部,选中态只换颜色、不换图形。 -// 三个 tab 统一走 TDesign 线性图标字体:home / chat-bubble / user。 +// 「首页」「AI客服」用自定义圆润线性 SVG(wxss 里 base64 data URI): +// TDesign 字体图标 home 是尖屋顶、chat 带尖角尾巴,造型偏尖不够圆润; +// 自绘 SVG 描边 4/64(与字体图标 1/16 同粗细)、圆头线帽,选中态换橙色版图。 +// 「我的」仍走 TDesign 线性图标字体:user。 // 「AI客服」曾用位图(气泡内嵌 AI 字:灰色 ai.png、暖橙 ai-ink.png)当图标, // 其轮廓笔画比图标字体细一档,与另外两个并排时粗细不搭,故弃用。 // 位图文件仍留在 images/ 下未删(app.json 的 tabBar 项也在引用,见 DESIGN.md §5.2) @@ -11,12 +14,13 @@ Component({ list: [{ pagePath: '/pages/home/index', text: '首页', - icon: 'home' + // 圆润小屋(圆弧屋顶 + 圆角屋身),见 index.wxss .ic-home + cls: 'ic-home' }, { pagePath: '/pages/ai/aichat', text: 'AI客服', - // 标准「聊天」图标:线性,与 home / user 同族 - icon: 'chat' + // 圆气泡 + 圆滑尾巴 + 三点,见 index.wxss .ic-chat + cls: 'ic-chat' }, { pagePath: '/pages/mine/mine', text: '我的', diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index ce24618..6f135af 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -7,8 +7,13 @@ data-path="{{ item.pagePath }}" bindtap="onTap" > - + +