wx/components/search/search.vue
@@ -28,6 +28,7 @@ <scroll-view scroll-y class="search_list_item_cate"> <view class="search_list_item_cate_data"> <view :class="index === i ? 'cate_active cate_item' : 'cate_item'" v-for="(item, index) in list" :key="index" @click="i = index">{{item.name}}</view> <view class="cate_data_zw"></view> </view> </scroll-view> </view> @@ -229,6 +230,10 @@ background: rgba(67,124,179,0.12) !important; color: #437CB3 !important; } .cate_data_zw { width: 216rpx; height: 0; } .cate_item { width: 216rpx; height: 68rpx;