浏览代码

fix: 调整首页搜索页面

wenxingxing 1 天之前
父节点
当前提交
62dc054f54
共有 1 个文件被更改,包括 7 次插入81 次删除
  1. 7 81
      pages/index/homePageSearch.vue

+ 7 - 81
pages/index/homePageSearch.vue

@@ -9,7 +9,7 @@
 					</image>
 					<input type="text" @confirm="goSearch" v-model="keywordValue" placeholder="请输入关键字搜索内容"
 						placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" />
-					<u-icon v-if="keywordValue !=''" name="close-circle" color="24rpx" size="#00000073"
+					<u-icon v-if="keywordValue !=''" name="close-circle" color="#00000073" size="20"
 						@tap="deleteKeywordMethods"></u-icon>
 				</view>
 				<view class="searchBtnViewClass" @tap="goSearch">搜索</view>
@@ -261,12 +261,12 @@
 		.inner {
 			box-sizing: border-box;
 			width: calc(100vw - 135rpx);
-			height: 72upx;
+			height: 72rpx;
 			background: #F7F7F7;
-			border-radius: 36upx;
+			border-radius: 38rpx;
 			display: flex;
 			align-items: center;
-			padding: 0 20upx;
+			padding: 0 20rpx;
 
 			.icon-search {
 				width: 28upx;
@@ -275,9 +275,10 @@
 			}
 
 			input {
-				height: 60upx;
-				line-height: 60upx;
+				height: 65rpx;
+				line-height: 65rpx;
 				flex: 1;
+				font-size: 32rpx;
 				padding-right: 15rpx;
 			}
 
@@ -353,81 +354,6 @@
 		height: 0;
 	}
 
-	/* 分类标签 */
-	.category-wrap {
-		padding: 24rpx 0;
-		border-radius: 0rpx 0rpx 20rpx 20rpx;
-		background: #fff;
-		display: flex;
-		align-items: center;
-		flex-direction: column;
-	}
-
-	.category-tags {
-		display: flex;
-		flex-wrap: wrap;
-		gap: 24rpx;
-		flex-direction: row;
-		justify-content: center;
-	}
-
-	.category-tags.collapsed {
-		max-height: 88rpx;
-		overflow: hidden;
-	}
-
-	.tag-item {
-		width: 30%;
-		padding: 20rpx 0;
-		text-align: center;
-		border-radius: 20rpx;
-		background: #f0f0f0;
-	}
-
-	.tag-item text {
-		font-family: PingFangSC, PingFang SC;
-		font-weight: 400;
-		font-size: 40rpx;
-		color: rgba(0, 0, 0, 0.85);
-	}
-
-	.tag-item.active {
-		background: linear-gradient(135deg, #FF5267 0%, #FF233C 100%);
-	}
-
-	.tag-item.active text {
-		color: #fff;
-	}
-
-	.expand-btn {
-		display: flex;
-		align-items: center;
-		justify-content: center;
-		margin-top: 20rpx;
-		width: 166rpx;
-		height: 64rpx;
-		border-radius: 32rpx;
-		border: 2rpx solid #FF233C;
-	}
-
-	.expand-btn text {
-		font-family: PingFangSC, PingFang SC;
-		font-weight: 400;
-		font-size: 32rpx;
-		color: #FF233C;
-	}
-
-	.expand-btn .arrow {
-		margin-left: 6rpx;
-		font-size: 22rpx;
-	}
-
-	.expand-btn image {
-		margin-left: 10rpx;
-		width: 32rpx;
-		height: 32rpx;
-	}
-
 	/* 课程网格 */
 	.course-grid {
 		display: flex;