diff --git a/public/imgs/productdetail/商品详情.png b/public/imgs/productdetail/商品详情.png new file mode 100644 index 0000000..b913a6a Binary files /dev/null and b/public/imgs/productdetail/商品详情.png differ diff --git a/public/imgs/productdetail/小货车.png b/public/imgs/productdetail/小货车.png new file mode 100644 index 0000000..e6e2c8e Binary files /dev/null and b/public/imgs/productdetail/小货车.png differ diff --git a/src/router/index.js b/src/router/index.js index 39671eb..abc46fe 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -230,6 +230,14 @@ const routes = [ title: '客服中心' } }, + { + path: '/productsummary/:id', + 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/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 @@ + + + + + \ 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) => { 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 @@ 已拒绝
+
+ 已收款 + +
+