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()) } } })