computed: {cartPrice() { let tmp = 0
let tmpArr =[] if (this.goodsList.length) {
tmpArr = this.goodsList.map(value => value.isChecked==true && value)
tmpArr.forEach(value => (tmp += value.count * value.PRESENT_PRICE))
} return tmp;
}}
- 2 回答
- 0 关注
- 2384 浏览
添加回答
举报
0/150
提交
取消