From 68d16cf9c97f8d7141643d761742aa948541ef06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Thu, 30 Sep 2021 10:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=B7=E6=B1=82=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/store/cart/cart.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/store/cart/cart.vue b/pages/store/cart/cart.vue index 45e7c9e..d29e695 100644 --- a/pages/store/cart/cart.vue +++ b/pages/store/cart/cart.vue @@ -192,6 +192,9 @@ content: '确定移除该商品吗?', success: result => { if(result.confirm){ + uni.showLoading({ + title: '正在删除' + }) this.$http.ajax({ api: 'api/shopping/cart/'+ __raw_id, method: 'DELETE', @@ -209,7 +212,8 @@ }else{ this.$msg('删除失败', {icon: 'error'}); } - }) + uni.hideLoading(); + }).catch(err => uni.hideLoading()) } } })