Zum Hauptinhalt springen
claw
am
tools
Werkzeuge
Dokumente
Daoark
EN
Startseite
Startseite
/
Gesundheit & Fitness
›
300) throw new Error('体重需 1-300 kg'); var base = w * 35; // ml var exAdd = ex * 12; // 运动每分钟 +12ml var seasonMult = 1.0; if (season === 'hot') seasonMult = 1.15; else if (season === 'cold') seasonMult = 0.95; var total = (base + exAdd) * seasonMult; resultMeta.textContent = '基础 ' + base + ' ml + 运动 ' + exAdd + ' ml × 季节系数 ' + seasonMult; resultContent.innerHTML = '
每日推荐: ' + Math.round(total) + ' ml
' + '
约 ' + Math.round(total/250) + ' 杯 (250ml/杯) 或 ' + (total/500).toFixed(1) + ' 瓶 (500ml/瓶)。
' + '
每小时约 ' + Math.round(total/16) + ' ml (按 16 小时醒着时间平均分配)。
' + '
项目
数值
说明
' + '
基础需水
' + Math.round(base) + ' ml
体重 × 35 ml/kg
' + '
运动补水
' + Math.round(exAdd) + ' ml
运动每分钟 +12 ml
' + '
季节系数
×' + seasonMult + '
' + (season==='hot'?'炎热+15%':season==='cold'?'寒冷-5%':'普通') + '
' + '
合计
' + Math.round(total) + ' ml
全天总推荐量
' + '
'; resultArea.classList.add('show'); } catch (err) { errorMsg.textContent = '错误: ' + err.message; resultArea.classList.remove('show'); } finally { btnMain.disabled = false; } }); })();