From 39ae52b3f65e2bba3b6570adb51e791cb3befff7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 02 七月 2025 16:32:29 +0800
Subject: [PATCH] 提交

---
 wx/components/search/search.vue |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/wx/components/search/search.vue b/wx/components/search/search.vue
index fe09447..d62f37c 100644
--- a/wx/components/search/search.vue
+++ b/wx/components/search/search.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="hz">
 		<view style="width: 100%; height: 100rpx;"></view>
-		<view class="search">
+		<view class="search" :style="{top: searchTop + 'rpx'}">
 			<view class="search_sou">
 				<view class="search_sou_input">
 					<image src="@/static/icon/ic_search@2x.png" mode="widthFix"></image>
@@ -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>
@@ -61,7 +62,15 @@
 		},
 		props: {
 			label: String,
-			list: Array
+			list: Array,
+			searchTop: {
+				type: Number,
+				default: () => 0
+			},
+			topNum: {
+				type: String,
+				default: () => '100rpx'
+			}
 		},
 		methods: {
 			sou() {
@@ -99,7 +108,7 @@
 			},
 			open() {
 				if (this.top === '-724rpx') {
-					this.top = '100rpx'
+					this.top = this.topNum
 					this.display = 'black'
 				} else {
 					this.top = '-724rpx'
@@ -229,6 +238,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;

--
Gitblit v1.9.3