From 918bc53059cabbcc733b607ea515b1553b407c7a Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 3 Dec 2025 09:10:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=8F=8A=E5=BE=AE=E4=BF=A1=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=A7=A3=E6=9E=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增商品详情页面,支持从首页跳转查看商品详情 - 创建currentProduct store管理当前查看的商品数据 - 实现微信小程序scene参数解析功能,创建wx-params store - 修改首页商品点击逻辑,从弹窗改为跳转详情页 - 在个人中心添加微信参数查看功能 - 优化商品详情页的借还动态加载和显示逻辑 --- src/App.vue | 2 +- src/pages.json | 7 + .../index/components/product-container.vue | 33 ++- src/pages/index/{components => }/detail.vue | 96 ++++---- src/pages/index/index.vue | 11 + src/pages/me/index.vue | 66 ++++-- src/pinia/stores/currentProduct.ts | 37 +++ src/pinia/stores/wx-params.ts | 213 ++++++++++++++++++ 8 files changed, 379 insertions(+), 86 deletions(-) rename src/pages/index/{components => }/detail.vue (90%) create mode 100644 src/pinia/stores/currentProduct.ts create mode 100644 src/pinia/stores/wx-params.ts diff --git a/src/App.vue b/src/App.vue index 4413537..56f19d0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@