v26110606 「我的」宝宝出生了:图标换成同款 19px 线性婴儿车,色块走 .li-ico 配色
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
'.bf-card .bf-go{flex:none;font-size:12.5px;font-weight:700;color:#F4593C;border:1.5px solid #F4593C;border-radius:99px;padding:6px 11px;background:#fff;white-space:nowrap}' +
|
||||
'.bf-card.born{background:linear-gradient(120deg,#E6F5EC,#FBFFFC);border-color:#BFE5CF}' +
|
||||
'.bf-card.born .bf-ic{background:#CFEEDC}.bf-card.born .bf-go{color:#2F8A5E;border-color:#2F8A5E}' +
|
||||
'.bf-me{margin-top:14px}.bf-me .li-ico{background:#FFE0D1}.bf-me.born .li-ico{background:#D8EFE1}.bf-me.born .li-v{color:#3A7A52}' +
|
||||
'.bf-me{margin-top:14px}.bf-me.born .li-ico{background:#E2F2E8;color:#3A8A5A}.bf-me.born .li-v{color:#3A7A52}' +
|
||||
'.bf-ov{position:fixed;inset:0;z-index:135;display:none;background:rgba(30,20,15,.45);font-family:inherit;color:#2B2320}' +
|
||||
'.bf-ov.on{display:flex;align-items:flex-end}' +
|
||||
'.bf-sheet{width:100%;background:#fff;border-radius:22px 22px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));animation:bfUp .3s ease}' +
|
||||
@@ -133,6 +133,11 @@
|
||||
var HEART = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#F4593C" stroke-width="2" stroke-linecap="round"><path d="M12 21s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.6-7 10-7 10z"/></svg>';
|
||||
var BABY = function (c, w) { return '<svg width="' + w + '" height="' + w + '" viewBox="0 0 24 24" fill="none" stroke="' + c + '" stroke-width="1.7" stroke-linecap="round"><circle cx="12" cy="10" r="6"/><path d="M9.6 9.5h.01M14.4 9.5h.01M10 12.2c1.2.8 2.8.8 4 0M12 4c0-1.3 1-2 2-2"/></svg>'; };
|
||||
|
||||
/* 11-07 用户:「我的」里「宝宝出生了」的小图标要和下面几行(锁 / 星星…)匹配 → 同款 19px 线性图标(婴儿车),色块走 .li-ico 配色 */
|
||||
var PRAM = '<svg viewBox="0 0 24 24" width="19" height="19" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">' +
|
||||
'<path d="M12.5 4.2a7.3 7.3 0 0 1 7.3 7.3h-7.3z"/><path d="M3.2 6.8l1.3 4.7h15.3a5.2 5.2 0 0 1-5.2 4.6H9.4a5 5 0 0 1-4.9-4.6"/>' +
|
||||
'<circle cx="8.6" cy="19.3" r="1.6"/><circle cx="16.2" cy="19.3" r="1.6"/></svg>';
|
||||
|
||||
/* ---------- 浮层 ---------- */
|
||||
var ov = document.createElement('div'); ov.className = 'bf-ov'; document.body.appendChild(ov);
|
||||
/* 浮层里滑动不带动后面的首页(禁止下拉回弹规则) */
|
||||
@@ -355,8 +360,8 @@
|
||||
/* 2026-10-22(测试会话 150e0991):产后用户「我的」里原来什么入口都没有 → 换成「宝宝已出生 · 去育儿首页」,走同一个 goBaby() */
|
||||
/* 11-05 用户:「宝宝出生了」字号和图标要跟下面「我的收藏」「兜豆兑换」一致 → 直接用同一套 .list-card > .li(38px 图标块、16.5px 粗体) */
|
||||
if (pc) pc.insertAdjacentHTML('afterend', S.postpartum
|
||||
? '<div class="list-card bf-me born" id="bfMe"><button class="li ripple" data-bf-open="baby"><span class="li-ico">' + BABY('#2F8A5E', 22) + '</span><span class="li-t">宝宝已出生</span><span class="li-v">去育儿首页</span><i class="chev">›</i></button></div>'
|
||||
: '<div class="list-card bf-me" id="bfMe"><button class="li ripple" data-bf-open="reg"><span class="li-ico">' + BABY('#F4593C', 22) + '</span><span class="li-t">宝宝出生了?</span><span class="li-v">切换到育儿模式</span><i class="chev">›</i></button></div>');
|
||||
? '<div class="list-card bf-me born" id="bfMe"><button class="li ripple" data-bf-open="baby"><span class="li-ico">' + PRAM + '</span><span class="li-t">宝宝已出生</span><span class="li-v">去育儿首页</span><i class="chev">›</i></button></div>'
|
||||
: '<div class="list-card bf-me" id="bfMe"><button class="li ripple" data-bf-open="reg"><span class="li-ico o">' + PRAM + '</span><span class="li-t">宝宝出生了?</span><span class="li-v">切换到育儿模式</span><i class="chev">›</i></button></div>');
|
||||
}
|
||||
|
||||
function maybeAsk() {
|
||||
|
||||
Reference in New Issue
Block a user