index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="search">
  3. <view class="searchItem">
  4. <u-search :showAction="true" actionText="取消" />
  5. </view>
  6. <!-- 搜索历史 -->
  7. <view class="history">
  8. <view class="historyTop">
  9. <h3>搜索历史</h3>
  10. <view class="historyRight">
  11. <i class="iconfont icon-sanjiaoxing1"></i>
  12. <text>删除记录</text>
  13. </view>
  14. </view>
  15. <view class="label">
  16. <u-tag text="标签" class="labelItem" plain shape="circle"></u-tag>
  17. <u-tag text="标签" plain shape="circle"></u-tag>
  18. <u-tag text="标签" plain shape="circle"></u-tag>
  19. <u-tag text="标签" plain shape="circle"></u-tag>
  20. <u-tag text="标签" plain shape="circle"></u-tag>
  21. </view>
  22. </view>
  23. <!-- 热门搜索 -->
  24. <view class="history">
  25. <view class="historyTop">
  26. <h3>热门搜索</h3>
  27. </view>
  28. <view class="label">
  29. <u-tag text="标签" type="warning" shape="circle"></u-tag>
  30. <u-tag text="标签" type="warning" shape="circle"></u-tag>
  31. <u-tag text="标签" type="warning" shape="circle"></u-tag>
  32. <u-tag text="标签" type="warning" shape="circle"></u-tag>
  33. <u-tag text="标签" type="warning" shape="circle"></u-tag>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .search {
  44. height: 1400rpx;
  45. background-color: #efefef;
  46. .searchItem {
  47. padding: 0 20rpx;
  48. height: 90rpx;
  49. line-height: 90rpx;
  50. background-color: #fff;
  51. margin-bottom: 60rpx;
  52. }
  53. /* 搜索历史 */
  54. .history {
  55. padding: 20rpx;
  56. margin-bottom: 50rpx;
  57. .historyTop {
  58. display: flex;
  59. justify-content: space-between;
  60. margin-bottom: 20rpx;
  61. .historyRight {
  62. margin-top: 10rpx;
  63. display: flex;
  64. font-size:24rpx;
  65. .icon-sanjiaoxing1{
  66. margin: 5rpx 5rpx 0 0;
  67. font-size: 26rpx;
  68. }
  69. }
  70. h3 {
  71. font-size: 34rpx;
  72. font-weight: bold;
  73. color:#404045;
  74. }
  75. }
  76. .label{
  77. display: flex;
  78. width: 120rpx;
  79. .labelItem{
  80. margin-right: 20rpx;
  81. }
  82. }
  83. }
  84. }
  85. </style>