#订单确认页面

```
 methods:{
            init(){
                this.$http.post('/users/cartList').then(response=>{
                    let res = response.data;
                    this.cartList = res.result;

                    this.cartList.forEach(item=>{
                        console.log(item);
                        if(item.checked == '1'){
                            this.subTotal += item.productNum * item.salePrice
                        }
                    })

                    this.orderTotal = this.subTotal + this.shipping + this.tax - this.discount;
                 })
            }
        }
```