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 9791cfa..46bcdce 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -230,7 +230,7 @@ const routes = [
}
},
{
- path: '/productsummary',
+ path: '/productsummary/:id',
name: 'productSummary',
component: () => 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) => {