diff --git a/src/api/shopCart/Info.js b/src/api/shopCart/Info.js index 6eb4c49..777b991 100644 --- a/src/api/shopCart/Info.js +++ b/src/api/shopCart/Info.js @@ -40,6 +40,13 @@ export function cartInfoIsSelected(data) { data: data }) } +export function cartInfoEditNum(data) { + return request({ + url: '/shopCart/Info/num', + method: 'post', + data: data + }) +} // 修改购物车 export function updateInfo(data) { @@ -57,3 +64,12 @@ export function delInfo(id) { method: 'delete' }) } + +// 删除购物车 +export function removeCartInfo(data) { + return request({ + url: '/shopCart/Info/remove', + method: 'delete', + data: data + }) +} diff --git a/src/views/shopCart/detail/index.vue b/src/views/shopCart/detail/index.vue index b59a730..a97f3b9 100644 --- a/src/views/shopCart/detail/index.vue +++ b/src/views/shopCart/detail/index.vue @@ -34,6 +34,7 @@