Browse Source

增加购物车删除请求提示

master
邓平艺 4 years ago
parent
commit
68d16cf9c9
  1. 6
      pages/store/cart/cart.vue

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

Loading…
Cancel
Save