学员端小程序
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.

54 lines
1007 B

  1. <template>
  2. <view class="searchBg">
  3. <view class="flex">
  4. <view class="searchIcon">
  5. <image src="@/static/images/car/ic_sousuo.png" mode=""></image>
  6. </view>
  7. <view class="inputBox">
  8. <u--input :placeholder="placeholder" border="none" clearable v-model="keywords" :color="'#1989FA'"
  9. placeholderClass="placeholderClass"></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: rgba(255,255,255,0.46);
  27. border: 2px solid rgba(255,255,255,0.3);
  28. width: 100%;
  29. height: 72rpx;
  30. border-radius: 16rpx;
  31. line-height: 72rpx;
  32. margin-bottom: 28rpx;
  33. .flex {
  34. height: 100%;
  35. padding: 0 28rpx;
  36. .searchIcon {
  37. width: 40rpx;
  38. height: 40rpx;
  39. }
  40. .inputBox {
  41. padding-left: 28rpx;
  42. flex: 1;
  43. color: #fff;
  44. font-size: 28rpx;
  45. }
  46. }
  47. }
  48. .placeholderClass {
  49. color: #1989FA !important;
  50. }
  51. </style>