Kirin hace 3 años
padre
commit
9198704b2a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/admin/view/store/placeorder/index.php

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

@@ -332,8 +332,8 @@
                         if (item.num + pass * type > 0) {
                         if (item.num + pass * type > 0) {
                             //修改商品数量
                             //修改商品数量
                             that.changeCartShop(item.cartId, item.num).then(function (data) {
                             that.changeCartShop(item.cartId, item.num).then(function (data) {
-                                console.log(data);
-                                if (data.data.status === 200) {
+                                console.log(data.data.status);
+                                if (data.data.status == 200) {
                                     item.num += pass * type;
                                     item.num += pass * type;
                                     layer.msg('成功' + (type > 0 ? '添加' : '减少') + pass + '件商品')
                                     layer.msg('成功' + (type > 0 ? '添加' : '减少') + pass + '件商品')
                                 } else {
                                 } else {