en-search.vue 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="">
  3. <view class="row search center sys-background-fff r-100 m-20 p-l16">
  4. <uni-icons type="search" size="18" color="#999"></uni-icons>
  5. <input class="flex p-l20" type="text" :placeholder="placeholder"
  6. placeholder-style="font-size:28rpx;color:#999" />
  7. <view class="search-text size-28">搜索</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. placeholder: {
  15. type: String,
  16. default: ''
  17. },
  18. bgColor: {
  19. type: String,
  20. default: '#ffffff'
  21. },
  22. back: {
  23. type: Boolean,
  24. default: false
  25. },
  26. },
  27. data() {
  28. return {
  29. value: ''
  30. }
  31. },
  32. methods: {
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .search {
  38. line-height: 50rpx;
  39. }
  40. .search-text {
  41. color: #fff;
  42. padding: 0 40rpx;
  43. margin: 10rpx;
  44. background-color: #0FB160;
  45. border-radius: 100rpx;
  46. }
  47. </style>