<template>
  <view class="search">
    <img class="icon" src="/static/assets/return.png" />
    <slot></slot>
    <view class="searchBox">
      <image
        class="magnifyingGlass"
        src="../../static/preSale/magnifyingGlass.png"
        mode="aspectFit|aspectFill|widthFix"
      />
      <input type="text" :value="value" class="text" placeholder="请输入要搜索的内容" />
    </view>
  </view>
</template>

<script setup>
// 返回上一级
const back = () => {};
</script>

<style lang="scss">
.search {
  position: absolute;
  width: 710rpx;
  height: 80rpx;
  border-radius: 16rpx 16rpx 16rpx 16rpx;
  opacity: 0.8;
  margin: 0 auto;
  margin-top: 44rpx;
  display: flex;
  align-items: center;
  padding-left: 20rpx;
  box-sizing: border-box;
  .arrow {
    width: 15rpx;
    height: 24rpx;
  }
  .icon {
    width: 40rpx;
    height: 40rpx;
    margin-left: 40rpx;
  }
  .searchBox {
    opacity: 1;
    width: 256rpx;
    height: 56rpx;
    background: #ffffff;
    border-radius: 28rpx 28rpx 28rpx 28rpx;
    display: flex;
    align-items: center;
    padding-left: 20rpx;
    margin-left: 167rpx;
    .magnifyingGlass {
      width: 26rpx;
      height: 26rpx;
    }
    .text {
      margin-left: 10rpx;
      font-size: 24rpx;
    }
  }
}
</style>
