feat(shop): 添加商城列表页浮动购物车按钮

- 在 shop 页面右下角添加固定定位的绿色圆形购物车按钮
- 按钮右上角显示购物车商品数量角标,超过 99 显示为 99+
- 点击按钮跳转到购物车页面,非 tabBar 页面
- 使用 useCartContext 的 totalCount 实时更新商品数量显示
- 注释掉用户页面 “我的钱包” 入口,暂时隐藏该功能
This commit is contained in:
2026-07-14 02:48:25 +08:00
parent 70af5426e8
commit a37f7a5d4d
2 changed files with 3 additions and 1 deletions

View File

@@ -118,7 +118,7 @@ export async function removeShopCart(id: number) {
export async function removeBatchShopCart(ids: number[]) {
const res = await request.del<ApiResult<unknown>>(
'/shop/shop-cart/batch',
{ ids }
ids
);
if (res.code === 0) {
return res.message || '删除成功';