标签:price index else isp str reac strong === sum
函数
sum() {//合计
this.thisPeoData.forEach((value, index) => {
value.child.forEach((val, idx) => {
val.fine.forEach((v, i) => {
if (v.type === ‘早餐‘) {
this.bMoney += v.num * v.price;
} else if (v.type === ‘午餐‘) {
this.lMoney += v.num * v.price;
} else if (v.type === ‘晚餐‘) {
this.dMoney += v.num * v.price;
}
})
})
})
}
标签:price index else isp str reac strong === sum
原文地址:https://www.cnblogs.com/JaneLifeBlog/p/14034428.html