header

parent 126b5c88
<template> <template>
<view class="container"> <view class="container">
<!-- 顶部搜索框--> <!-- 顶部搜索框-->
<view class="header"> <Search backgroundBox="white">
<view class="searchBoxs">
<view class="search1">
<wd-icon name="search" size="24rpx" color="#ABAAAA"></wd-icon>
<input
type="text"
:value="catalog.evaluation"
class="text"
placeholder="点评关键词/特色"
placeholder-style="font-size:22rpx;"
@confirm="handleSearch"
@input="handleInput"
confirm-type="搜索"
/>
</view>
<wd-icon
name="error-fill"
size="30rpx"
color="#999"
v-if="catalog.evaluation"
@tap="handleClear"
></wd-icon>
</view>
</Search>
<!-- <view class="header">
<wd-icon <wd-icon
class="icon" class="icon"
name="arrow-left" name="arrow-left"
...@@ -31,7 +55,7 @@ ...@@ -31,7 +55,7 @@
@tap="handleClear" @tap="handleClear"
></wd-icon> ></wd-icon>
</view> </view>
</view> </view> -->
<view class="content"> <view class="content">
<view class="tabs"> <view class="tabs">
...@@ -299,33 +323,34 @@ page { ...@@ -299,33 +323,34 @@ page {
align-items: center; align-items: center;
padding: 0 40rpx; padding: 0 40rpx;
gap: 32rpx; gap: 32rpx;
}
.searchBoxs {
width: 480rpx;
height: 56rpx;
background: #f3f3f3;
border-radius: 28rpx 28rpx 28rpx 28rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0rpx 20rpx;
gap: 10rpx;
margin-left: 40rpx;
.searchBox { .search1 {
width: 492rpx; gap: 10rpx;
height: 56rpx;
background: #f3f3f3;
border-radius: 28rpx 28rpx 28rpx 28rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
padding: 0rpx 20rpx;
gap: 10rpx;
.search {
gap: 10rpx;
display: flex;
align-items: center;
.text { .text {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 22rpx; font-size: 22rpx;
}
} }
} }
} }
.content { .content {
padding: 98rpx 20rpx 30rpx; padding: 10rpx 20rpx 30rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10rpx; gap: 10rpx;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="container"> <view class="container">
<!-- 顶部搜索框--> <!-- 顶部搜索框-->
<Search backgroundBox="#f3f3f3"> <Search backgroundBox="#f3f3f3">
<view class="searchBox"> <view class="searchBoxs">
<view class="search"> <view class="search1">
<wd-icon name="search" size="30rpx" color="#999"></wd-icon> <wd-icon name="search" size="30rpx" color="#999"></wd-icon>
<input <input
type="text" type="text"
...@@ -708,7 +708,7 @@ page { ...@@ -708,7 +708,7 @@ page {
padding: 0 30rpx; padding: 0 30rpx;
gap: 14rpx; gap: 14rpx;
} }
.searchBox { .searchBoxs {
width: 492rpx; width: 492rpx;
height: 66rpx; height: 66rpx;
background: #f3f3f3; background: #f3f3f3;
...@@ -721,7 +721,7 @@ page { ...@@ -721,7 +721,7 @@ page {
background-color: #fff; background-color: #fff;
.search { .search1 {
gap: 10rpx; gap: 10rpx;
display: flex; display: flex;
align-items: center; align-items: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment