rabin 3 years ago
parent
commit
b6948d497e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/store/assets/pc/html/setGoodsNum.html

+ 2 - 0
app/store/assets/pc/html/setGoodsNum.html

@@ -375,6 +375,8 @@
             num += goods[i].num;
             total += goods[i].total;
         }
+        num = parseFloat(num).toFixed(2);
+        total = parseFloat(total).toFixed(2);
         $(".totalQuantity").html(num);
         $(".totalNum").html(total);
     }