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} +