let sum = arr.reduce((pre, cur, index, array) => { return pre + cur; })
let sum = goods.reduce((total, item) => { return total + item.price + item.quantity; }, 0)