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

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

@@ -328,10 +328,10 @@
                             layer.msg('请输入数字')
                             return false
                         }
-                        console.log(111);
+                        console.log(pass);
                         if (item.num + pass * type > 0) {
                             //修改商品数量
-                            that.changeCartShop(item.cartId, item.num).then(function (data) {
+                            that.changeCartShop(item.cartId, item.num + pass * type).then(function (data) {
                                 console.log(data.data.status);
                                 if (data.data.status == 200) {
                                     item.num += pass * type;