<script setup lang="ts">
import { pageUrl } from '@/utils/constants'

const goSearch = () => {
  uni.navigateTo({
    url: `${pageUrl['goods-search']}`,
  })
}
</script>

<template>
  <view class="search-pannel">
    <view class="search" @tap="goSearch">
      <text class="icon-search">
        <text class="text-search">搜索喜欢的商品</text>
      </text>
    </view>
  </view>
</template>

<style lang="scss">
.search-pannel {
  background-color: #ececec;
  padding: 3rpx;
}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10rpx 0 26rpx;
  height: 64rpx;
  margin: 16rpx 20rpx;
  font-size: 28rpx;
  border-radius: 32rpx;
  background-color: #fff;
}

.icon-search {
  &:before {
    margin-right: 10rpx;
  }
}
.text-search {
  color: #999;
}
</style>
