From 77296cd1c47f7b0b9c00ac90d1a78f8e6a0644d1 Mon Sep 17 00:00:00 2001 From: karlcarlo Date: Sun, 11 Oct 2026 15:04:02 +0000 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B5=EF=BC=9A=E3=80=8C?= =?UTF-8?q?=E5=85=9C=E8=B1=86=E5=85=91=E5=A5=BD=E7=89=A9=E3=80=8D=E6=94=B9?= =?UTF-8?q?=E3=80=8C=E5=85=9C=E8=B1=86=E5=85=91=E6=8D=A2=E3=80=8D=EF=BC=8C?= =?UTF-8?q?=E5=85=9C=E8=B1=86=E4=BD=99=E9=A2=9D=E5=8F=B3=E4=BE=A7=E5=A4=A7?= =?UTF-8?q?=E5=8F=B7=E6=98=BE=E7=A4=BA=20v26101026?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: AI 助手 --- index.html | 8 +++++--- js/app.js | 11 ++++++++++- mama-box.css | 7 +++++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 810fd06..ff02c90 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -1016,8 +1016,10 @@ #meExchDrop 已删,renderDrop() 里有 if (box) 判空,不用改 JS。 --> diff --git a/js/app.js b/js/app.js index bba55ae..8c1912b 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26101025'; + var VER = '26101026'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -5507,6 +5507,15 @@ if (!sum.balance) setExchSub('攒兜豆,好物免费兑'); else if (!d) setExchSub('兜豆 ' + sum.balance); else setExchSub('兜豆 ' + sum.balance + (n ? ' · 可兑 ' + n + ' 件' : ' · 再攒攒就能兑')); + /* 「我的」页:余额放右侧大号数字(2026-10-11 用户),副标题只说能兑几件 */ + const bal = $('#meDouBal'); + if (bal) { + $('#meDouN').textContent = String(sum.balance).replace(/\B(?=(\d{3})+$)/g, ','); + bal.classList.remove('hide'); + const go = $('#meExchGo'); if (go) go.classList.add('hide'); + const sub = $('#meExchSub'); + if (sub) sub.textContent = !sum.balance ? '做孕期任务就能攒兜豆' : !d ? '去看看能兑什么' : n ? '现在可兑 ' + n + ' 件好物' : '再攒攒就能兑好物'; + } }); }).catch(function () {}); } diff --git a/mama-box.css b/mama-box.css index f1dd8fb..0b07e4e 100644 --- a/mama-box.css +++ b/mama-box.css @@ -4837,3 +4837,10 @@ a.skip:focus{left:16px;top:16px} .pk-ok{display:block;width:100%;margin-top:16px} .pk-alt{margin-top:12px;font-size:12.5px;color:var(--muted);text-decoration:underline;text-underline-offset:3px} +/* 「我的」页兜豆兑换条:余额右侧大号显示(2026-10-11),数字用品牌橘、单位淡色小字,后面跟箭头 */ +.ms-bal{flex:none;display:flex;align-items:baseline;gap:3px;color:var(--brand)} +.ms-bal b{font-size:24px;font-weight:900;letter-spacing:-.5px;line-height:1;font-variant-numeric:tabular-nums} +.ms-bal small{font-size:12px;font-weight:700;color:var(--ink-2)} +.ms-bal::after{content:"›";margin-left:4px;font-size:19px;line-height:1;color:#C9BFB8;align-self:center} +.ms-bal.hide,.ms-go.hide{display:none} +