@@ -381,6 +381,8 @@
num += goods[i].num;
cash += goods[i].p_price * goods[i].num;
}
+ num = parseFloat(num).toFixed(2);
+ cash = parseFloat(cash).toFixed(2);
$(".totalQuantity").html(num);
$(".totalMoney").html(cash.toFixed(2));