Files
xinlong-shop-taro/.workbuddy/memory/2026-06-26.md
赵忠林 44ca5bbbfc feat(shop): 添加商品详情页轮播图点击放大预览功能
- 在 src/pages/shop/product-detail.tsx 的轮播图 Image 上添加 onClick 事件
- 使用 Taro.previewImage 实现图片全屏预览和左右滑动浏览
- 同样在 src/pages/points/product-detail.tsx 商品图片添加点击预览功能
- 新增完整的 shop-api 秒杀模块,包含实体、参数、mapper、service、controller 和定时任务
- 实现防重复提交、活动校验、限购校验和原子扣库存的秒杀核心下单逻辑
- 提供管理端 CRUD 与用户端秒杀订单相关接口
- 引入定时任务 SeckillStatusTask 定时更新秒杀活动状态
- 添加秒杀模块相关数据库建表脚本和接口路径对齐前端设计
2026-06-26 22:25:07 +08:00

8 lines
444 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 2026-06-26
### 商品详情页轮播图添加点击放大预览
- **文件**: `src/pages/shop/product-detail.tsx`
- 在 Swiper 轮播图的 Image 上添加 `onClick` → 调用 `Taro.previewImage({ current: img, urls: images })`
- `previewImage` 是 Taro 内置 API在小程序中原生支持全屏预览 + 左右滑动翻图,无需额外组件
- **文件**: `src/pages/points/product-detail.tsx` — 同样添加了点击放大预览