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 }}) + 删除