From 4ec292edb357ba779bd332d5333f9642d9ca2839 Mon Sep 17 00:00:00 2001 From: dzq Date: Mon, 15 Dec 2025 16:05:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=A7=9F=E7=94=A8=E6=9F=9C=E6=A0=BC):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8D=E5=90=8C=E5=B0=BA=E5=AF=B8=E6=A0=BC?= =?UTF-8?q?=E5=8F=A3=E7=9A=84SVG=E5=9B=BE=E6=A0=87=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 替换原有单一格口图标为不同尺寸的专用图标 添加格口类型判断函数switchCellImage 更新搜索框提示文本和不可租用状态的显示 --- .../components/renting-cabinet-container.vue | 19 +++++++++++++++---- src/static/svg/product-image-large.svg | 10 ++++++++++ src/static/svg/product-image-medium.svg | 10 ++++++++++ src/static/svg/product-image-small.svg | 10 ++++++++++ src/static/svg/product-image-super-large.svg | 10 ++++++++++ src/static/svg/product-image-unknow.svg | 10 ++++++++++ src/static/svg/product-image.svg | 6 ------ 7 files changed, 65 insertions(+), 10 deletions(-) create mode 100644 src/static/svg/product-image-large.svg create mode 100644 src/static/svg/product-image-medium.svg create mode 100644 src/static/svg/product-image-small.svg create mode 100644 src/static/svg/product-image-super-large.svg create mode 100644 src/static/svg/product-image-unknow.svg delete mode 100644 src/static/svg/product-image.svg diff --git a/src/pages/index/components/renting-cabinet-container.vue b/src/pages/index/components/renting-cabinet-container.vue index 2a86d26..c6c59c7 100644 --- a/src/pages/index/components/renting-cabinet-container.vue +++ b/src/pages/index/components/renting-cabinet-container.vue @@ -99,6 +99,15 @@ function handleCheckout() { function showCartDetail() { showCartPopup.value = true; } +function switchCellImage(cellType: number) { + switch (cellType) { + case 1: return '/static/svg/product-image-small.svg'; + case 2: return '/static/svg/product-image-medium.svg'; + case 3: return '/static/svg/product-image-large.svg'; + case 4: return '/static/svg/product-image-super-large.svg'; + default: return '/static/svg/product-image-unknow.svg'; + } +}