Enzo 4 years ago
parent
commit
e46cbe7091
  1. 2
      pages/order/index/onlineorder.vue
  2. 6
      pages/store/cart/cart.vue

2
pages/order/index/onlineorder.vue

@ -106,7 +106,7 @@
}, },
{ {
id: 2, id: 2,
name: '付款',
name: '付款',
type: 1, type: 1,
list: [], list: [],
isRefresher: false, isRefresher: false,

6
pages/store/cart/cart.vue

@ -192,6 +192,9 @@
content: '确定移除该商品吗?', content: '确定移除该商品吗?',
success: result => { success: result => {
if(result.confirm){ if(result.confirm){
uni.showLoading({
title: '正在删除'
})
this.$http.ajax({ this.$http.ajax({
api: 'api/shopping/cart/'+ __raw_id, api: 'api/shopping/cart/'+ __raw_id,
method: 'DELETE', method: 'DELETE',
@ -209,7 +212,8 @@
}else{ }else{
this.$msg('删除失败', {icon: 'error'}); this.$msg('删除失败', {icon: 'error'});
} }
})
uni.hideLoading();
}).catch(err => uni.hideLoading())
} }
} }
}) })

Loading…
Cancel
Save