From 98534bd8e2d1130a2d5454e8615cf57a135cf439 Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Tue, 8 Sep 2026 01:46:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=A3=81=E8=B4=B4:=20?= =?UTF-8?q?=E6=9C=89logo=E7=99=BD=E5=BA=95=E5=9B=BE=E7=9B=96=E6=BB=A1,=20?= =?UTF-8?q?=E6=97=A0logo=E6=89=8D=E7=94=A8=E5=BD=A9=E8=89=B2=E9=A6=96?= =?UTF-8?q?=E5=AD=97=E5=9D=97(colorTheme=E5=85=A8blue=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=BD=93=E7=BB=9F=E4=B8=80=E5=BA=95=E8=89=B2)=20(v26090721)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 10 +++++----- js/app.js | 7 +++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index e6a4505..3011d5a 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ 妈妈盒子 · 孕育陪伴 - - + + @@ -1713,8 +1713,8 @@ 加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示, 不影响应用其余功能。 --> - - -
v26090720
+ + +
v26090721
diff --git a/js/app.js b/js/app.js index ead3e3a..277d96a 100644 --- a/js/app.js +++ b/js/app.js @@ -197,10 +197,13 @@ grid.innerHTML = apps.map(a => { const ico = a.logo || a.icon || ''; const name = a.name || a.identifier || '应用'; - const color = a.colorTheme || appTileColor(name); + /* 有 logo:白底让图盖满;无 logo:用 colorTheme/调色板 + 首字彩色块。 + ⚠️ colorTheme 目前全是 'blue' 这种颜色名 —— 有图时别拿它当底色, + 不然 37 个磁贴清一色蓝块,图加载前像坏了。 */ + const bg = ico ? 'background:#fff' : 'background:' + (a.colorTheme || appTileColor(name)); const img = ico ? '' : (name.slice(0, 1)); return ''; }).join(''); /* 磁贴点击(事件委托,innerHTML 重建后不用重绑) */