From ed0724930cc392d67945a69b8093f96d2c4fbea4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E8=84=8F=E7=8B=BC?= <786316265@qq.com>
Date: Mon, 25 Aug 2025 13:55:56 +0800
Subject: [PATCH 1/2] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index.js | 8 ++++++++
src/views/MainPage.vue | 2 +-
src/views/Matching.vue | 4 ++--
src/views/Transfers.vue | 9 +++++++++
4 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 69975ee..9791cfa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -229,6 +229,14 @@ const routes = [
title: '客服中心'
}
},
+ {
+ path: '/productsummary',
+ name: 'productSummary',
+ component: () => import('@/views/productSummary.vue'),
+ meta: {
+ title: '商品汇总'
+ }
+ },
{
path: '/:pathMatch(.*)*',
name: 'NotFound',
diff --git a/src/views/MainPage.vue b/src/views/MainPage.vue
index 722a4de..0bf6e53 100644
--- a/src/views/MainPage.vue
+++ b/src/views/MainPage.vue
@@ -373,7 +373,7 @@ export default {
width: 343px;
padding: 16px;
background-color: white;
- border-radius: var(--border-radius);
+ border-radius: 12px;
box-shadow: var(--box-shadow);
margin: 0 auto;
opacity: 1;
diff --git a/src/views/Matching.vue b/src/views/Matching.vue
index 2091713..4542262 100644
--- a/src/views/Matching.vue
+++ b/src/views/Matching.vue
@@ -37,7 +37,7 @@
单笔范围:
- ¥1,000 - ¥5,000
+ ¥100 - ¥5,000
@@ -214,7 +214,7 @@
class="record-item"
>
- {{ getActionText(record.action) }}
+ {{ getActionText(record.action) }}
{{ record.real_name }}
{{ formatDate(record.created_at) }}
diff --git a/src/views/Transfers.vue b/src/views/Transfers.vue
index c5bbdee..d663793 100644
--- a/src/views/Transfers.vue
+++ b/src/views/Transfers.vue
@@ -145,7 +145,16 @@
已拒绝
+
+ 已收款
+
+
+
From 5595dc8f1384b17b4853becb5a3756640f8bf2e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=A7=E8=84=8F=E7=8B=BC?= <786316265@qq.com>
Date: Mon, 25 Aug 2025 16:56:14 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81?=
=?UTF-8?q?=E8=BF=87=E6=B8=A1=E9=A1=B5=E9=9D=A2=E4=BB=A5=E5=8F=8A=E5=AF=B9?=
=?UTF-8?q?=E5=85=B6=E5=AE=83=E9=A1=B5=E9=9D=A2=E5=81=9A=E4=BA=86=E7=9B=B8?=
=?UTF-8?q?=E5=BA=94=E9=80=82=E9=85=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/imgs/productdetail/商品详情.png | Bin 0 -> 383 bytes
public/imgs/productdetail/小货车.png | Bin 0 -> 357 bytes
src/router/index.js | 2 +-
src/views/ProductDetail.vue | 56 ++++
src/views/ProductSummary.vue | 403 +++++++++++++++++++++++++
src/views/Shop.vue | 2 +-
6 files changed, 461 insertions(+), 2 deletions(-)
create mode 100644 public/imgs/productdetail/商品详情.png
create mode 100644 public/imgs/productdetail/小货车.png
create mode 100644 src/views/ProductSummary.vue
diff --git a/public/imgs/productdetail/商品详情.png b/public/imgs/productdetail/商品详情.png
new file mode 100644
index 0000000000000000000000000000000000000000..b913a6a1300e6ad63cf205a125a4276527a1bcd2
GIT binary patch
literal 383
zcmeAS@N?(olHy`uVBq!ia0vp^d_XM3!3HF=W8NDADb50q$YKTtZeb8+WSBKa0w~B>
z9OUlAu3H46y6x?}Sr`R!i+a~Wgxe)EOvXE4=g1vGK%#xdOgb-?RG(=!L7SG6ZLIX10)
bZ1IS>;P0YyQk(9B0+zwk)z4*}Q$iB}Vzrfr
literal 0
HcmV?d00001
diff --git a/public/imgs/productdetail/小货车.png b/public/imgs/productdetail/小货车.png
new file mode 100644
index 0000000000000000000000000000000000000000..e6e2c8ef130aba90d1344b64acbf23ba161437c3
GIT binary patch
literal 357
zcmV-r0h<1aP)-9@DS-;W7x01-umZIMO28LCaE9C&LI@GuWU|NZGB>w-
zC*n8`j32FO8qc=vq8pQd3oMZoV^DRQKIuX+-@qIiBL=01q4>g>U_yv>6h+*ybQ~ws
zN0?$RNCGKknk30(G68lzT9(D0c)*n;Qx&v^eqG^wlFTAdYM%773A71}r!oF8iLUP9
zbD&_8@J(qY*IlT3=FX^L{tj&0C}tZ%$%AY7(~v60Q0J<3rk{ZB0TrweOu^3ih68GI
z=F~ import('@/views/productSummary.vue'),
meta: {
diff --git a/src/views/ProductDetail.vue b/src/views/ProductDetail.vue
index 6bd01fb..7c57f48 100644
--- a/src/views/ProductDetail.vue
+++ b/src/views/ProductDetail.vue
@@ -100,6 +100,29 @@
+
+
+
+

+
商品材质||
+
+ {{ tag }}
+ ||品牌||产地
+
+
+
+
+
+

+
预计两小时内发货,后天送达
+
+
+
商品描述
@@ -536,6 +559,39 @@ watch(
color: #333;
}
+.detail-group-container {
+ display: flex;
+ flex-direction: column; /* 让两组纵向堆叠(上下排列) */
+ gap: 12px; /* 两组之间的垂直间距(可根据需求调整,如 16px) */
+ margin: 16px 0; /* 与上下其他内容的间距,保持页面呼吸感 */
+}
+
+/* 每组容器:控制图标和文本的横向对齐 */
+.detail-item-group {
+ display: flex; /* 组内图标和文本横向排列 */
+ align-items: center; /* 图标与文本垂直居中(避免错位) */
+ gap: 8px; /* 图标和文本之间的横向间距(可调整) */
+}
+
+/* 图标样式:保持原大小,避免拉伸 */
+.detail-icon {
+ width: 20px;
+ height: 20px;
+ object-fit: contain; /* 保持图片比例,不变形 */
+}
+
+/* 文本样式:保持原风格,优化 tag 间距 */
+.detail-text {
+ font-size: 14px;
+ color: #333;
+ line-height: 1.5;
+}
+
+/* 优化 tag 与文字的间距,避免拥挤 */
+.detail-text .product-tag {
+ margin: 0 4px; /* tag 左右留白,更美观 */
+}
+
.product-description,
.product-details {
margin-bottom: 20px;
diff --git a/src/views/ProductSummary.vue b/src/views/ProductSummary.vue
new file mode 100644
index 0000000..32c29cf
--- /dev/null
+++ b/src/views/ProductSummary.vue
@@ -0,0 +1,403 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+ {{ firstProduct.name }}
+ {{ firstProduct.points }} 积分
+
+
详情>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+ {{ product.name }}
+ {{ product.points }} 积分
+
+
详情>
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Shop.vue b/src/views/Shop.vue
index d81b0a5..58b4611 100644
--- a/src/views/Shop.vue
+++ b/src/views/Shop.vue
@@ -350,7 +350,7 @@ const handleSearch = debounce(() => {
}, 300)
const goToProduct = (productId) => {
- router.push(`/product/${productId}`)
+ router.push(`/productsummary/${productId}`)
}
const addToCart = (product) => {