Commit 168c1a578b69bdafdc27b013542d1d5f6498e596

Authored by 泉州测试
1 parent acc24ed9

修改购物车数字

packageA/pages/details_serviceCard/details_serviceCard.js
... ... @@ -326,7 +326,6 @@ Page({
326 326 });
327 327  
328 328 var snum = limitNum - boughtNum;
329   - var snum = limitNum - boughtNum;
330 329 if (snum <= 0) {
331 330 wx.showModal({
332 331 title: '超出限购数量',
... ...
packageA/pages/goodsInfo/goodsInfo.js
... ... @@ -1055,7 +1055,7 @@ Page({
1055 1055 getApp().my_warnning('加入购物车成功', 1, th, 450);
1056 1056 var c_num = th.data.cartGoodsNum + th.data.goodsInputNum;
1057 1057 th.setData({
1058   - cartGoodsNum: totalNum
  1058 + cartGoodsNum: c_num
1059 1059 });
1060 1060 th.closeSpecModal();
1061 1061 }
... ...