增加bmi值展示

This commit is contained in:
huangdeliang
2021-03-18 19:16:06 +08:00
parent a10b8715ce
commit 871f3dc056
5 changed files with 25 additions and 8 deletions

View File

@ -473,6 +473,12 @@ const moduleObj = {
//健康信息处理,将数组转为字符串
export function dealHealthy(customerHealthy) {
customerHealthy.bmi = (
customerHealthy.weight /
2 /
(customerHealthy.tall / 100) /
(customerHealthy.tall / 100)
).toFixed(1);
customerHealthy.basicBMR = (
(10 * customerHealthy.weight) / 2 +
6.25 * customerHealthy.tall -