#总价格实时变化

```
    <div class="item-total">
        Item total: <span class="total-price">{{totalPrice}}</span>
    </div>

    totalPrice(){
        let money = 0;
        this.cartList.forEach(item=>{
            if(item.checked == '1'){
                money += item.salePrice * item.productNum
            }
        })
        return money;
    }
```