From 3e862884949f2c46a7b30d8a76eba1fb65c80e9a Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Tue, 9 Apr 2024 16:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shopCart/Info.js | 16 +++++++++++ src/views/shopCart/detail/index.vue | 44 +++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 12 deletions(-) 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 @@