Kirin преди 3 години
родител
ревизия
6a8b1a0870
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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, '当前下标')
                             console.log(ind, '当前下标')
                             //判断这个商品是否已经存在数组
                             //判断这个商品是否已经存在数组
                             if (ind > -1) {
                             if (ind > -1) {
-                                that.shopList[ind].num += num;
+                                that.shopList[ind].num = (that.shopList[ind].num * 1) + (num * 1);
                                 console.log(that.shopList, '添加数据后对象')
                                 console.log(that.shopList, '添加数据后对象')
 
 
                             } else {
                             } else {