search.vue 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="box">
  3. <u-navbar title="搜索" :autoBack="true" bgColor="rgba(255,255,255,255)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="box_search" @click="searchBtn">
  5. <u-search :shape="square" v-model="val" bgColor="#efefef" :showAction="false" height="70rpx"></u-search>
  6. <view class="sousuo">搜索</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. val: ''
  15. };
  16. },
  17. methods: {
  18. searchBtn() {}
  19. }
  20. };
  21. </script>
  22. <style>
  23. .box {
  24. height: auto;
  25. width: 100%;
  26. background-color: #f8f8f8;
  27. background-attachment: fixed;
  28. position: relative;
  29. display: flex;
  30. flex-direction: column;
  31. }
  32. .box_search {
  33. display: flex;
  34. margin: 20rpx 32rpx 0 46rpx;
  35. width: 650rpx;
  36. height: 80rpx;
  37. }
  38. .sousuo {
  39. width: 118rpx;
  40. height: 80rpx;
  41. text-align: center;
  42. color: #ffffff;
  43. line-height: 80rpx;
  44. background: #ca5642;
  45. border-radius: 20rpx;
  46. }
  47. </style>