From 85f23aecb40d6e63b92ee9d1d7e3e59e95586483 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Fri, 29 Mar 2024 15:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E4=BD=93=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/recommend/index.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/recommend/index.vue b/pages/recommend/index.vue index fcd2ee3..0a3ff08 100644 --- a/pages/recommend/index.vue +++ b/pages/recommend/index.vue @@ -14,7 +14,7 @@ - {{ item.name }} + {{ item.name }} @@ -77,9 +77,9 @@ import Search from '@/components/search' // 左侧菜单(固定) const menus = [ - {id: 'all', name: '标的推荐', type: 0, 'image': 'label-recommend.jpg'}, - {id: 'rs', name: '销售排行', type: 1, 'image': 'sale-sort.png'}, - {id: 'rd', name: '店铺排行', type: 2, 'image': 'store-sort.jpg'}, + {id: 'all', name: '标的推荐', type: 0, 'image': 'label-recommend.jpg', class: 'selected-0'}, + {id: 'rs', name: '销售排行', type: 1, 'image': 'sale-sort.png', class: 'selected-1'}, + {id: 'rd', name: '店铺排行', type: 2, 'image': 'store-sort.jpg', class: 'selected-2'}, ] // 最后一次刷新时间 @@ -319,6 +319,15 @@ export default { position: absolute; margin-top: 80rpx; } + .selected-0 { + color: #d81e06; + } + .selected-1 { + color: #d4237a; + } + .selected-2 { + color: #13227a; + } } // 右侧二级分类