From bec3a6f1b85985a0eab1e1a3e8fcf9c4f7355b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 17 Aug 2026 16:47:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(special-zone):=20=E8=B5=B0=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9URL=E5=A4=84=E7=90=86=E4=B8=93=E5=8C=BA=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将专区商品抽屉已关联商品列表的图片src改为压缩URL,减少缩略图体积 - 调整banner图片压缩宽度为300,保证清晰度与加载速度平衡 - 统一调用getCompressedImageUrl方法,无需额外引入 - 优化图片加载性能,提升用户体验 --- .workbuddy/memory/2026-08-17.md | 5 +++++ src/views/special/zone/index.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.workbuddy/memory/2026-08-17.md b/.workbuddy/memory/2026-08-17.md index c5c6b45..b4822c1 100644 --- a/.workbuddy/memory/2026-08-17.md +++ b/.workbuddy/memory/2026-08-17.md @@ -25,3 +25,8 @@ - `:pagination="goodsPagination"` - `onChange` 里 `loadGoods(currentSectionId.value)` 修正为 `.value` - 验证:`vite build` 通过(exit 0)。 + +## 专区商品图片走压缩 URL +- 文件:`src/views/special/zone/index.vue` +- 改动:专区商品抽屉的已关联商品列表「图片」列,从直接 `:src="text"` 改为 `:src="getCompressedImageUrl(text, { width: 120 })"`,缩小缩略图体积并统一走 OSS 图片处理。 +- 说明:`getCompressedImageUrl` 已导入,无需额外引入。 diff --git a/src/views/special/zone/index.vue b/src/views/special/zone/index.vue index 2869a4c..2ad21f9 100644 --- a/src/views/special/zone/index.vue +++ b/src/views/special/zone/index.vue @@ -42,7 +42,7 @@