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