生娃计算器一句话答案补充月嫂+托班区间;计算器/补剂页插画换成主色调

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-10-31 14:34:56 +00:00
parent 5f419b840d
commit e8089ae3fa
4 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -725,7 +725,12 @@ h1{margin-top:10px;font-size:28px;font-weight:800;line-height:1.32;color:var(--h
// 一句话答案:用常见选择现算,县城到新一线
var lo = calc(withCity(3)).reduce(function (a, x) { return a + x.t[0]; }, 0);
var hi = calc(withCity(1)).reduce(function (a, x) { return a + x.t[1]; }, 0);
$('#ansTxt').innerHTML = '按常见选择,从怀孕到宝宝 3 岁,县城到省会大约花 <em>' + Math.round(lo / 10000) + '~' + Math.round(hi / 10000) + ' 万</em>;差距最大的是坐月子和谁带娃。';
// 补一句:请月嫂 + 2 岁送托班(省会到一线)
var up = withCity(1); up.yz = 2; up.care = 1;
var lo2 = calc(up).reduce(function (a, x) { return a + x.t[0]; }, 0);
up.city = 0;
var hi2 = calc(up).reduce(function (a, x) { return a + x.t[1]; }, 0);
$('#ansTxt').innerHTML = '按常见选择,从怀孕到宝宝 3 岁,县城到省会大约花 <em>' + Math.round(lo / 10000) + '~' + Math.round(hi / 10000) + ' 万</em>;请月嫂、送托班会到 <em>' + Math.round(lo2 / 10000) + '~' + Math.round(hi2 / 10000) + ' 万</em>。';
$('#goLast').classList.toggle('on', hasResult);
}
function withCity(c) { var s = {}; for (var k in DEF) s[k] = DEF[k]; s.city = c; return s; }