Kirin 3 years ago
parent
commit
51866b0127
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/view/store/placeorder/index.php

+ 1 - 1
app/admin/view/store/placeorder/index.php

@@ -414,7 +414,7 @@
                             console.log(ind, '当前下标')
                             //判断这个商品是否已经存在数组
                             if (ind > -1) {
-                                that.shopList[ind].num = (that.shopList[ind].num).toFixed(2) * 1 + (num).toFixed(2) * 1;
+                                that.shopList[ind].num = parseFloat(that.shopList[ind].num).toFixed(2) * 1 + parseFloat(num).toFixed(2) * 1;
                                 console.log(that.shopList, '添加数据后对象')
 
                             } else {