refactor: 重构搜索栏使用Vant组件并优化样式
This commit is contained in:
@ -98,13 +98,15 @@ function navigateTo(category: string) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
padding: 21px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.banner-section {
|
||||
margin-top: 20rpx;
|
||||
border-radius: 20rpx;
|
||||
margin-top: 25px;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
height: 300rpx;
|
||||
height: 285px;
|
||||
}
|
||||
|
||||
.banner-swiper {
|
||||
@ -116,6 +118,7 @@ function navigateTo(category: string) {
|
||||
height: 100%;
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@ -140,13 +143,13 @@ function navigateTo(category: string) {
|
||||
}
|
||||
|
||||
.category-grid {
|
||||
margin-top: 40rpx;
|
||||
margin-top: 33px;
|
||||
}
|
||||
|
||||
.category-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30rpx;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
@ -157,8 +160,8 @@ function navigateTo(category: string) {
|
||||
}
|
||||
|
||||
.category-icon {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
width: 78px;
|
||||
height: 78px;
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -191,7 +194,7 @@ function navigateTo(category: string) {
|
||||
}
|
||||
|
||||
.category-text {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
font-size: 25px;
|
||||
color: #191919;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user