!146 增加bmi值展示

Merge pull request !146 from 德仔/develop
This commit is contained in:
德仔
2021-03-18 19:18:07 +08:00
committed by Gitee
5 changed files with 25 additions and 8 deletions

View File

@ -312,6 +312,7 @@ export default {
["创建时间", "客户姓名", "手机号"],
["调理项目", "性别", "年龄"],
["身高(厘米)", "体重(斤)", "地域"],
["BMI", "", ""],
],
[
["减脂经历", "减脂遇到的困难", "减脂是否反弹"],
@ -362,6 +363,7 @@ export default {
["createTime", "name", "phone"],
["conditioningProject", "sex", "age"],
["tall", "weight", "position"],
["bmi", "", ""],
],
[
["experience", "difficulty", "rebound"],
@ -722,6 +724,12 @@ export default {
}
return arr;
}, []);
detailHealthy.bmi = (
detailHealthy.weight /
2 /
(detailHealthy.tall / 100) /
(detailHealthy.tall / 100)
).toFixed(1);
this.detailHealthy = detailHealthy;
for (let i = 0; i < this.healthyTitleData.length; i++) {
let stepArray = [];