Commit 511867f4109753163a859290d0866aea265ae12a

Authored by yvan.ni
1 parent ed721cd9

商品的重量~~~

Showing 1 changed file with 1 additions and 1 deletions
pages/cart/cart2/cart2.js
@@ -1087,7 +1087,7 @@ Page({ @@ -1087,7 +1087,7 @@ Page({
1087 var fw_price = 0, fp_price=0; 1087 var fw_price = 0, fp_price=0;
1088 item=item.config; 1088 item=item.config;
1089 //------按重量---------- 1089 //------按重量----------
1090 - if (goods_weight>0) { 1090 + if (goods_weight>=0) {
1091 fw_price =parseFloat(item['money']); 1091 fw_price =parseFloat(item['money']);
1092 if (goods_weight > item['first_weight']){ 1092 if (goods_weight > item['first_weight']){
1093 var fw = goods_weight - item['first_weight']; 1093 var fw = goods_weight - item['first_weight'];