江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
897 B

1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="searchBg">
  3. <view class="flex">
  4. <view class="searchIcon">
  5. <image src="@/static/images/index/searchIcon.png" mode=""></image>
  6. </view>
  7. <view class="inputBox">
  8. <u--input :placeholder="placeholder" border="none" clearable v-model="keywords" :color="'#fff'" :fontSize="'28rpx'"
  9. placeholderClass="placeholderClassFFF"></u--input>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: ['placeholder'],
  17. data() {
  18. return {
  19. keywords: ''
  20. }
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .searchBg {
  26. background: #8ABAED;
  27. width: 100%;
  28. height: 72rpx;
  29. border-radius: 16rpx;
  30. line-height: 72rpx;
  31. .flex {
  32. height: 100%;
  33. padding: 0 28rpx;
  34. .searchIcon {
  35. width: 40rpx;
  36. height: 40rpx;
  37. }
  38. .inputBox {
  39. padding-left: 28rpx;
  40. flex: 1;
  41. color: #fff;
  42. font-size: 28rpx;
  43. }
  44. }
  45. }
  46. </style>