From e25d288faefcefe3c180fb201598ac97dc5de090 Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 15:53:17 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=89=E6=8B=A9=E5=95=86=E5=93=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=86=E7=B1=BB=E6=94=B9=E5=9B=9E=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E4=BE=A7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/select.vue | 65 ++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/src/pages/product/select.vue b/src/pages/product/select.vue index b37a3e2..264efbb 100644 --- a/src/pages/product/select.vue +++ b/src/pages/product/select.vue @@ -14,20 +14,22 @@ - - - - 全部 - - - {{ cat.name }} - - + + + + + + 全部 + + + {{ cat.name }} + + - - - - + + + + {{ item.name }} @@ -220,32 +222,37 @@ export default { color: #999; } -/* 分类行 */ -.category-row { +/* 内容区域:侧栏+列表 */ +.content-wrapper { display: flex; - background: #fff; - padding: 20rpx; - overflow-x: auto; - white-space: nowrap; + height: calc(100vh - 130rpx); } -.category-row .category-item { - display: inline-block; - padding: 16rpx 32rpx; +/* 分类侧栏 */ +.category-sidebar { + width: 160rpx; + background: #fff; + flex-shrink: 0; + border-right: 1rpx solid #eee; +} + +.category-sidebar .category-item { + padding: 28rpx 16rpx; font-size: 26rpx; color: #666; - border-radius: 30rpx; - margin-right: 16rpx; - background: #f5f5f5; + text-align: center; + border-left: 6rpx solid transparent; } -.category-row .category-item.active { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: #fff; +.category-sidebar .category-item.active { + background: #f8f9fa; + color: #667eea; + font-weight: bold; + border-left-color: #667eea; } .product-scroll { - height: calc(100vh - 260rpx); + flex: 1; background: #f8f9fa; }