rabin 3 年之前
父节点
当前提交
380a09499d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/factory/assets/pc/html/setGoods.html

+ 2 - 0
app/factory/assets/pc/html/setGoods.html

@@ -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)); 
     }