index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view class="recommend">
  3. <view class="search-item">
  4. <u-search :showAction="true" actionText="取消" />
  5. </view>
  6. <view class="hot">
  7. <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
  8. <view>
  9. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  10. <view class="item-flex">
  11. <view class="star">
  12. <u-rate :count="count" v-model="value" />
  13. <text class="line">|</text>
  14. </view>
  15. <view>989单</view>
  16. </view>
  17. <view class="address-flex">
  18. <view>宝安中心区美容洗车</view>
  19. <view>2.7km</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="hot">
  24. <Image src="https://cdn.uviewui.com/uview/album/2.jpg"></Image>
  25. <view>
  26. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  27. <view class="item-flex">
  28. <view class="star">
  29. <u-rate :count="count" v-model="value" />
  30. <text class="line">|</text>
  31. </view>
  32. <view>989单</view>
  33. </view>
  34. <view class="address-flex">
  35. <view>宝安中心区美容洗车</view>
  36. <view>2.7km</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="hot">
  41. <Image src="https://cdn.uviewui.com/uview/album/3.jpg"></Image>
  42. <view>
  43. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  44. <view class="item-flex">
  45. <view class="star">
  46. <u-rate :count="count" v-model="value" />
  47. <text class="line">|</text>
  48. </view>
  49. <view>989单</view>
  50. </view>
  51. <view class="address-flex">
  52. <view>宝安中心区美容洗车</view>
  53. <view>2.7km</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="hot">
  58. <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
  59. <view>
  60. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  61. <view class="item-flex">
  62. <view class="star">
  63. <u-rate :count="count" v-model="value" />
  64. <text class="line">|</text>
  65. </view>
  66. <view>989单</view>
  67. </view>
  68. <view class="address-flex">
  69. <view>宝安中心区美容洗车</view>
  70. <view>2.7km</view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="hot">
  75. <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
  76. <view>
  77. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  78. <view class="item-flex">
  79. <view class="star">
  80. <u-rate :count="count" v-model="value" />
  81. <text class="line">|</text>
  82. </view>
  83. <view>989单</view>
  84. </view>
  85. <view class="address-flex">
  86. <view>宝安中心区美容洗车</view>
  87. <view>2.7km</view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="hot">
  92. <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
  93. <view>
  94. <view class="item-text">途虎养车洗车机(贵州省贵阳市云岩区)</view>
  95. <view class="item-flex">
  96. <view class="star">
  97. <u-rate :count="count" v-model="value" />
  98. <text class="line">|</text>
  99. </view>
  100. <view>989单</view>
  101. </view>
  102. <view class="address-flex">
  103. <view>宝安中心区美容洗车</view>
  104. <view>2.7km</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </template>
  110. <script>
  111. export default {
  112. data() {
  113. return {
  114. count: 5,
  115. value: 4,
  116. };
  117. },
  118. onLoad() {},
  119. methods: {},
  120. };
  121. </script>
  122. <style lang="scss" scoped>
  123. .recommend {
  124. min-height: 100vh;
  125. background-color: #efefef;
  126. /* 搜索样式 */
  127. .search-item {
  128. padding: 0 20rpx;
  129. height: 80rpx;
  130. line-height: 80rpx;
  131. background-color: #fff;
  132. margin-bottom: 10rpx;
  133. }
  134. // 列表样式
  135. .hot {
  136. height: 220rpx;
  137. background-color: #fff;
  138. padding: 0 20rpx;
  139. margin-bottom: 20rpx;
  140. display: flex;
  141. Image {
  142. width: 120px;
  143. height: calc(100% - 20rpx);
  144. margin: 10rpx 20rpx 10rpx 0;
  145. }
  146. .item-text {
  147. font-weight: bold;
  148. margin: 10rpx 0 10rpx;
  149. color: #333;
  150. }
  151. .item-flex {
  152. display: flex;
  153. justify-content: space-between;
  154. font-size: 14px;
  155. margin: 0 20rpx 30rpx 0;
  156. color: #0d0d0d66;
  157. .star{
  158. display: flex;
  159. .line{
  160. margin-left: 18rpx;
  161. margin-top: 5rpx;
  162. font-size: 24rpx;
  163. }
  164. }
  165. }
  166. .address-flex {
  167. display: flex;
  168. justify-content: space-between;
  169. font-size: 12px;
  170. color: #999;
  171. margin-right: 20rpx;
  172. }
  173. }
  174. }
  175. </style>