From 67001a2918fb807ad730535168480011d654b143 Mon Sep 17 00:00:00 2001
From: wangdong <1551135706@qq.com>
Date: Wed, 13 Mar 2024 23:01:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B4=AD=E7=89=A9=E8=BD=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/store.js | 4 ++++
pages/index/index.vue | 2 +-
pages/store/shoppingCart.vue | 42 +++++++++++++++++++++++++++++++-----
3 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/api/store.js b/api/store.js
index 47e7219..9ab9d44 100644
--- a/api/store.js
+++ b/api/store.js
@@ -72,3 +72,7 @@ export function getCartList(params) {
export function joinCart(params) {
return http.get("/Auth_Api/set_cart", params);
}
+
+export function deleteCart(params) {
+ return http.get("/auth_api/remove_cart", params);
+}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e49bf40..af46b11 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -121,7 +121,7 @@
¥{{ item.price }}
- 已售588本
+ 已售{{ item.sales || 0 }}本
diff --git a/pages/store/shoppingCart.vue b/pages/store/shoppingCart.vue
index 3fc265c..e33d348 100644
--- a/pages/store/shoppingCart.vue
+++ b/pages/store/shoppingCart.vue
@@ -4,7 +4,7 @@
共 {{ goodsList.length }} 件商品
- 编辑
+ {{ isEdit ? '完成' : '编辑' }}
@@ -39,8 +39,9 @@
- 合计:¥{{ total }}
- 去结算({{ checkedGoods.length }})
+ 合计:¥{{ total }}
+ 去结算({{ checkedGoods.length }})
+ 删除