feat(tabbar): 首页与 AI客服 换用自绘圆润线性图标

TDesign 字体图标 home 尖屋顶、chat 尖角尾巴,造型偏尖;改为 base64 SVG,描边与字体图标同族,选中态换暖橙版。
This commit is contained in:
lik
2026-10-31 22:10:04 +08:00
parent 7d793bfd3e
commit c02cfa5c18
3 changed files with 41 additions and 5 deletions
+8 -4
View File
@@ -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: '我的',