search.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view>
  3. <!-- 搜索框 -->
  4. <view class="search">
  5. <u-icon name="arrow-left"size="36"></u-icon><u-search search-icon="none"></u-search>
  6. </view>
  7. <!-- 搜索历史 -->
  8. <view class="main">
  9. <view class="search-history">
  10. <view class="title">
  11. 搜索历史
  12. </view>
  13. <view class="clear">
  14. 清空历史
  15. </view>
  16. </view>
  17. <view class="history">
  18. <view class="item">
  19. 荆州
  20. </view>
  21. <view class="item">
  22. 铁路
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. page{
  40. background-color: #fff;
  41. }
  42. // 搜索框
  43. .search{
  44. padding:12rpx 24rpx;
  45. display: flex;
  46. align-items: center;
  47. .u-icon--right{
  48. margin-right: 24rpx;
  49. }
  50. /deep/.u-content{
  51. border-radius: 8px !important;
  52. }
  53. /deep/.u-action{
  54. color: rgba(31, 74, 153, 1);
  55. font-size: 16px;
  56. }
  57. }
  58. // 搜索历史
  59. .main{
  60. margin: 36rpx;
  61. .search-history{
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. .title{
  66. color: #111111;
  67. }
  68. .clear{
  69. color: rgba(31, 74, 153, 1);
  70. font-size: 12px;
  71. }
  72. }
  73. .history{
  74. display: flex;
  75. margin-top: 24rpx;
  76. .item{
  77. border-radius: 10px;
  78. background-color: rgba(239, 240, 245, 1);
  79. color: rgba(88, 88, 88, 1);
  80. height: 33px;
  81. line-height: 33px;
  82. margin-right: 26rpx;
  83. padding: 0 48rpx;
  84. }
  85. }
  86. }
  87. </style>