From 0763b8dc49b4d769d154dc193a656010e7146b05 Mon Sep 17 00:00:00 2001 From: taiwan Date: Mon, 28 Feb 2022 17:33:36 +0800 Subject: [PATCH] 购物车超出限购模态窗口提示改为toast提示 --- pages/cart/cart/cart.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index 7dec844..529d343 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -1021,10 +1021,14 @@ Page({ // console.log('goods_num', e.goods_num); this.postCardList(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); } else { - wx.showModal({ - title: '提示', - content: '购买的数量不能超出库存数量', - }); + // wx.showModal({ + // title: '提示', + // content: '购买的数量不能超出库存数量', + // }); + wx.showToast({ + title: '购买的数量不能超出库存数量', + icon: 'none', + }); this.data.up_dating = 0; } }, -- libgit2 0.21.4