电子商城测试版v2

This commit is contained in:
2022-06-23 11:36:51 +08:00
parent fe0d7c7432
commit 7c758f6896
3 changed files with 19 additions and 8 deletions
+3 -1
View File
@@ -136,11 +136,13 @@ export default ({show = false, onClose}: param) => {
//删除购物车内容
const {fetchData:delShopFetchData} = DelShoppingCartApi()
const delSelect = () => {
getSelectId()
if(selectIds.current.length <= 0) return alert.none('请选择要删除的面料!')
Taro.showModal({
content: '删除所选商品?',
success: async function (res) {
if (res.confirm) {
getSelectId()
const res = await delShopFetchData({id:selectIds.current})
if(res.success) {
getShoppingCart()