From 174350e855349919ee287a52d3198c7c7558b858 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 02 四月 2024 14:21:22 +0800
Subject: [PATCH] mrshi
---
wx/components/search/search.vue | 68 ++++++++++++++++++---------------
1 files changed, 37 insertions(+), 31 deletions(-)
diff --git a/wx/components/search/search.vue b/wx/components/search/search.vue
index cdd7398..fe09447 100644
--- a/wx/components/search/search.vue
+++ b/wx/components/search/search.vue
@@ -25,9 +25,11 @@
</view>
<view class="search_list_item">
<view class="search_list_item_label">鐘舵�侊細</view>
- <view class="search_list_item_cate">
- <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>
+ <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>
+ </scroll-view>
</view>
</view>
<view class="search_footer">
@@ -53,7 +55,7 @@
name: '',
startTime: '',
endTime: '',
- time: '',
+ time: Number(new Date()),
type: ''
};
},
@@ -215,35 +217,39 @@
}
.search_list_item_cate {
width: 100%;
+ max-height: 260rpx;
margin-top: 24rpx;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- justify-content: space-between;
- .cate_active {
- background: rgba(67,124,179,0.12) !important;
- color: #437CB3 !important;
- }
- .cate_item {
- width: 216rpx;
- height: 68rpx;
- line-height: 68rpx;
- text-align: center;
- background: #F2F2F2;
- border-radius: 36rpx;
- font-weight: 400;
- font-size: 26rpx;
- color: #222222;
- font-style: normal;
- margin-top: 30rpx;
- &:nth-child(1) {
- margin-top: 0 !important;
+ .search_list_item_cate_data {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ .cate_active {
+ background: rgba(67,124,179,0.12) !important;
+ color: #437CB3 !important;
}
- &:nth-child(2) {
- margin-top: 0 !important;
- }
- &:nth-child(3) {
- margin-top: 0 !important;
+ .cate_item {
+ width: 216rpx;
+ height: 68rpx;
+ line-height: 68rpx;
+ text-align: center;
+ background: #F2F2F2;
+ border-radius: 36rpx;
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #222222;
+ font-style: normal;
+ margin-top: 30rpx;
+ &:nth-child(1) {
+ margin-top: 0 !important;
+ }
+ &:nth-child(2) {
+ margin-top: 0 !important;
+ }
+ &:nth-child(3) {
+ margin-top: 0 !important;
+ }
}
}
}
--
Gitblit v1.9.3