|
|
|
@ -14,7 +14,7 @@ |
|
|
|
<view class="type-nav" :class="{ selected: curIndex == index }" v-for="(item, index) in menus" :key="index" |
|
|
|
@click="handleSelectNav(index)"> |
|
|
|
<image class="cate-left-image" :src="'./static/tabbar/'+item.image"></image> |
|
|
|
<text class="cate-left-text">{{ item.name }}</text> |
|
|
|
<text class="cate-left-text" :class="curIndex == index ? item.class : ''">{{ item.name }}</text> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
<!-- 右侧 二级分类 --> |
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 右侧二级分类 |
|
|
|
|