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 關(guān)注
- 2422 瀏覽
添加回答
舉報
0/150
提交
取消