Commit 0763b8dc49b4d769d154dc193a656010e7146b05
1 parent
20b514cb
购物车超出限购模态窗口提示改为toast提示
Showing
1 changed file
with
8 additions
and
4 deletions
pages/cart/cart/cart.js
... | ... | @@ -1021,10 +1021,14 @@ Page({ |
1021 | 1021 | // console.log('goods_num', e.goods_num); |
1022 | 1022 | this.postCardList(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); |
1023 | 1023 | } else { |
1024 | - wx.showModal({ | |
1025 | - title: '提示', | |
1026 | - content: '购买的数量不能超出库存数量', | |
1027 | - }); | |
1024 | + // wx.showModal({ | |
1025 | + // title: '提示', | |
1026 | + // content: '购买的数量不能超出库存数量', | |
1027 | + // }); | |
1028 | + wx.showToast({ | |
1029 | + title: '购买的数量不能超出库存数量', | |
1030 | + icon: 'none', | |
1031 | + }); | |
1028 | 1032 | this.data.up_dating = 0; |
1029 | 1033 | } |
1030 | 1034 | }, | ... | ... |