From 013e9eb740611dc8364c7e064e2a909de5b1dc39 Mon Sep 17 00:00:00 2001 From: liguigong Date: Thu, 9 Oct 2025 10:29:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(fittingRoom):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=AF=95=E8=A1=A3=E9=97=B4=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -试衣间结果列表倒序显示 - 模特图默认置于列表末尾 - 禁用轮播图自动播放功能 - 更新默认token值用于本地开发 - 添加验收文档链接至README - 调整uni-grid组件边框宽度为0.5px --- README.md | 4 ++++ pages/fittingRoom/index.vue | 3 ++- sheep/store/fittingRoom.js | 1 + .../uni-grid/components/uni-grid-item/uni-grid-item.vue | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c8a5a59..80aa173 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,7 @@ PC的老版本地址: https://puton.meidaojia.com/ 本地开发: http://172.16.18.38:3000/pages/fittingRoom/index + +【腾讯文档】PUTON美搭小程序-验收文档 +https://docs.qq.com/sheet/DS0pybm5Yc1ViakNj +改成所有人可编辑了 diff --git a/pages/fittingRoom/index.vue b/pages/fittingRoom/index.vue index 1bac3b9..f1b0690 100644 --- a/pages/fittingRoom/index.vue +++ b/pages/fittingRoom/index.vue @@ -4,6 +4,7 @@ sheep.$store('app').template?.home); onLoad((options) => { - uni.setStorageSync('token', options?.token ?? 'e84526c0f7a3457da54e663fb4396beb'); + uni.setStorageSync('token', options?.token ?? '92d2805a85ca422e90dd7d50eef49a85'); console.log('🚀 ~ URL上的token ~ options?.token: ', options?.token); }); diff --git a/sheep/store/fittingRoom.js b/sheep/store/fittingRoom.js index 538cc62..6e1cc33 100644 --- a/sheep/store/fittingRoom.js +++ b/sheep/store/fittingRoom.js @@ -61,6 +61,7 @@ const fittingRoom = defineStore({ pageSize: '30', }); const result = httpResponse.data?.list ?? []; + result.reverse(); // 将模特放到最后一张 result.push({ id: 100000, diff --git a/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue b/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue index ecaeb25..90eb1b4 100644 --- a/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue +++ b/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue @@ -117,8 +117,8 @@ export default { /* #endif */ /* #ifndef APP-NVUE */ z-index: 0; - border-bottom: 1px #d2d2d2 solid; - border-right: 1px #d2d2d2 solid; + border-bottom: 0.5px #d2d2d2 solid; + border-right: 0.5px #d2d2d2 solid; /* #endif */ } .uni-grid-item--border-top { From ea68d3235ee766fc989b9e2a8cf5cc5cbf938c3d Mon Sep 17 00:00:00 2001 From: liguigong Date: Thu, 9 Oct 2025 10:57:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(fittingRoom):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AF=95=E8=A1=A3=E9=97=B4=E5=9B=BE=E7=89=87=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=B9=B6=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=8C=87=E7=A4=BA=E5=99=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将试衣结果图片URL从thumbnailFileUrl改为fileUrl以获取高清图- 新增自定义轮播图指示器组件及样式 - 添加指示器点击事件处理函数 - 设置激活状态下的指示器宽度和颜色变化- 调整指示器布局为水平居中对齐- 优化指示器元素间的间距与透明度设置 --- pages/fittingRoom/index.vue | 28 ++++++++++++++++++++++++++++ sheep/store/fittingRoom.js | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/pages/fittingRoom/index.vue b/pages/fittingRoom/index.vue index f1b0690..f9a7057 100644 --- a/pages/fittingRoom/index.vue +++ b/pages/fittingRoom/index.vue @@ -23,6 +23,17 @@ /> + @@ -179,4 +190,21 @@ width: 550rpx; padding: 0 100rpx; } + .custom-indicators { + display: flex; + justify-content: center; + align-items: center; + .custom-indicator { + width: 10rpx; + height: 1px; + opacity: 0.5; + background: #fff; + margin: 0 5rpx; + } + .active { + width: 30rpx; + height: 1px; + background: #171717; + } + } diff --git a/sheep/store/fittingRoom.js b/sheep/store/fittingRoom.js index 6e1cc33..8c5dc45 100644 --- a/sheep/store/fittingRoom.js +++ b/sheep/store/fittingRoom.js @@ -70,7 +70,7 @@ const fittingRoom = defineStore({ 'https://tupian05.oss-cn-beijing.aliyuncs.com/digital_cloth/1758853865858.png', clothingImageUrl: 'https://tupian05.oss-cn-beijing.aliyuncs.com/digital_cloth/1758795488865.jpg', - tryOnResultUrl: this.currentModel.thumbnailFileUrl, + tryOnResultUrl: this.currentModel.fileUrl, // "userId": 284, // "createTime": 1758857790000 });