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