diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 4d499d8..0c1d7de 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -1087,7 +1087,7 @@ Page({ var fw_price = 0, fp_price=0; item=item.config; //------按重量---------- - if (goods_weight>0) { + if (goods_weight>=0) { fw_price =parseFloat(item['money']); if (goods_weight > item['first_weight']){ var fw = goods_weight - item['first_weight']; diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js index 2512a7b..6035320 100644 --- a/pages/goods/categoryList/categoryList.js +++ b/pages/goods/categoryList/categoryList.js @@ -466,7 +466,7 @@ Page({ if (indexs==220){ this.get_brand();} if (arr!="undefined" && arr!=undefined){ if (arr.length==0){ - this.setData({ select_classify_on: indexs, index: indexs, classify_name: name, + this.setData({ select_classify_on: indexs, index: indexs, classify_name: name,cat_id:cid, goodslist: null,is_level_three: 0 }); return false; }