|
@@ -174,7 +174,15 @@ Page({
|
|
|
let self = this;
|
|
|
let cart_item = [];
|
|
|
for (let item of this.data.cart_list){
|
|
|
- cart_item.push(item.cart_id);
|
|
|
+ if(item.checked){
|
|
|
+ cart_item.push(item.cart_id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(cart_item.length <= 0) {
|
|
|
+ self.setData({
|
|
|
+ allPrice:0,
|
|
|
+ allGoodsPrice:0
|
|
|
+ })
|
|
|
}
|
|
|
let carts = cart_item.join(",");
|
|
|
getReq({
|