searchresult.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="searchType" style="background: #fff;height: 100vh;">
  3. <van-cell value-class="searchclass">
  4. <template slot="title">
  5. <view class="input-view">
  6. <uni-icon type="search" size="22" color="#666666" />
  7. <input confirm-type="search" class="input" type="text" placeholder="输入搜索关键词"
  8. @input="confirm" />
  9. </view>
  10. </template>
  11. <template>
  12. <view>搜索</view>
  13. </template>
  14. </van-cell>
  15. <view class="hotelList">
  16. <view class="hotleLeft">
  17. <image style="width: 214upx;height: 152upx;" src=""/>
  18. </view>
  19. <view class="hotelright">
  20. <view style="font-size: 36upx;color: #303133;">华南城市酒店</view>
  21. <view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;">
  22. <view style="font-size: 40upx; color: #303133;"> 0.0</view>
  23. <view>月访客990</view>
  24. <view>8km</view>
  25. </view>
  26. <view class="undertip">
  27. <view class="tipsTop">有停车为</view>
  28. <view class="tipsTop">内置酒店</view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import uniIcon from '@/component/uni-icon/uni-icon.vue'
  36. export default {
  37. components: {
  38. uniIcon
  39. },
  40. data() {
  41. return {
  42. searchvalue:''
  43. }
  44. },
  45. methods: {
  46. confirm(e) {
  47. this.searchvalue = e.detail.value;
  48. }
  49. }
  50. }
  51. </script>
  52. <style>
  53. .searchType .input-view {
  54. width: 80%;
  55. display: flex;
  56. background-color: #e7e7e7;
  57. height: 30px;
  58. border-radius: 15px;
  59. padding: 0 4%;
  60. flex-wrap: nowrap;
  61. margin: 7px 0;
  62. line-height: 30px;
  63. margin: 24upx 0 24upx 32upx;
  64. }
  65. .searchType .input-view .uni-icon {
  66. line-height: 30px !important;
  67. }
  68. .searchType .input-view .input {
  69. height: 30px;
  70. line-height: 30px;
  71. width: 94%;
  72. padding: 0 3%;
  73. }
  74. .van-cell__title {
  75. flex: 6!important;
  76. }
  77. .searchclass {
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. }
  82. .van-cell {
  83. padding: 15upx 32upx 0 32upx!important;
  84. }
  85. .hotelList {
  86. display: flex;
  87. flex-direction: row;
  88. padding: 24upx 32upx;
  89. }
  90. .hotleLeft {
  91. width: 214upx;
  92. height: 152upx;
  93. background-color: #007AFF;
  94. }
  95. .hotelright {
  96. padding-left: 16upx;
  97. display: flex;
  98. flex-direction: column;
  99. width: 100%;
  100. }
  101. .undertip {
  102. display: flex;
  103. flex-direction: row;
  104. align-items: center;
  105. }
  106. .tipsTop {
  107. border: 2upx solid #BBBBBB;
  108. margin-right: 14upx;
  109. color: #BBBBBB;
  110. padding: 4upx;
  111. }
  112. /* .van-cell__title {
  113. flex: 6!important;
  114. } */
  115. </style>