search.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <view>
  3. <u-navbar title="">
  4. <u-search class="search" placeholder="搜索站点名称" v-model="keyword" color="#c8c8c8"></u-search>
  5. </u-navbar>
  6. <view class="recommend">推荐充电站</view>
  7. <view class="charing-slow">
  8. <text class="trickle-charge">慢充</text> <text class="station-items">荆鹏软件园充电站</text>
  9. <view class="address">
  10. 湖北省荆州市沙市区江津东路附155号
  11. </view>
  12. <view class="price">
  13. <view class="num">1.20</view> <view class="unit">
  14. 起 元/度
  15. </view>
  16. </view>
  17. <view class="park">
  18. <text class="park-p">p</text>
  19. <text class="park-text">2小时免费停车</text>
  20. </view>
  21. <view class="free">
  22. <view class="free-num">
  23. <text style="color:#009143;">空闲1</text>/总数5
  24. </view>
  25. <view class="distance">
  26. <text class="iconfont distance-font">&#xe615;</text>0.1公里 1分钟
  27. </view>
  28. </view>
  29. </view>
  30. <view class="charing-slow">
  31. <text class="fast-charge">快充</text> <text class="station-items">荆沙大道救助站充电站</text>
  32. <view class="address">
  33. 湖北省荆州市沙市区江津东路附155号
  34. </view>
  35. <view class="price">
  36. <view class="num">1.25</view> <view class="unit">
  37. 起 元/度
  38. </view>
  39. </view>
  40. <view class="park">
  41. <text class="park-p">p</text>
  42. <text class="park-text">2小时免费停车</text>
  43. </view>
  44. <view class="free">
  45. <view class="free-num">
  46. <text style="color:#009143;">空闲10</text>/总数10
  47. </view>
  48. <view class="distance">
  49. <text class="iconfont distance-font">&#xe615;</text>1.2公里 3分钟
  50. </view>
  51. </view>
  52. </view>
  53. <view class="charing-slow">
  54. <text class="trickle-charge">慢充</text> <text class="station-items">荆鹏软件园充电站</text>
  55. <view class="address">
  56. 湖北省荆州市沙市区江津东路附155号
  57. </view>
  58. <view class="price">
  59. <view class="num">1.20</view> <view class="unit">
  60. 起 元/度
  61. </view>
  62. </view>
  63. <view class="park">
  64. <text class="park-p">p</text>
  65. <text class="park-text">2小时免费停车</text>
  66. </view>
  67. <view class="free">
  68. <view class="free-num">
  69. <text style="color:#009143;">空闲1</text>/总数5
  70. </view>
  71. <view class="distance">
  72. <text class="iconfont distance-font">&#xe615;</text>0.1公里 1分钟
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. export default {
  80. data() {
  81. return {
  82. }
  83. },
  84. // conponents:{charingSlows},
  85. methods: {
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. /deep/.u-content[data-v-1a326067] {
  91. flex: 0.95;
  92. color: #bdbdbd;
  93. }
  94. /deep/.u-action {
  95. margin-right: 0px;
  96. color: #c8c8c8;
  97. }
  98. .recommend {
  99. width: 100%;
  100. height: 44px;
  101. line-height: 44px;
  102. color: #101010;
  103. padding: 0 16px;
  104. background-color: #fff;
  105. font-weight: 600;
  106. }
  107. .charing-slow {
  108. width: 91%;
  109. background-color: #fff;
  110. margin: 12px auto 0;
  111. border-radius: 8px;
  112. padding: 10px 12px 0px;
  113. .trickle-charge {
  114. display: inline-block;
  115. width: 44px;
  116. height: 20px;
  117. line-height: 20px;
  118. border-radius: 50px;
  119. background-color: rgba(0, 185, 98, 100);
  120. color: rgba(255, 255, 255, 100);
  121. font-size: 12px;
  122. text-align: center;
  123. }
  124. .fast-charge {
  125. display: inline-block;
  126. width: 44px;
  127. height: 20px;
  128. line-height: 20px;
  129. border-radius: 50px;
  130. background-color: #9d9fff;
  131. color: rgba(255, 255, 255, 100);
  132. font-size: 12px;
  133. text-align: center;
  134. }
  135. .station-items {
  136. display: inline-block;
  137. height: 16px;
  138. line-height: 16px;
  139. font-size: 16px;
  140. margin-left: 4px;
  141. color: #101010;
  142. }
  143. .address {
  144. margin-top: 8px;
  145. line-height: 16px;
  146. font-size: 11px;
  147. color: rgba(119, 119, 119, 100);
  148. }
  149. .price{
  150. display: flex;
  151. height: 20px;
  152. .num{
  153. height: 20px;
  154. color: rgba(255, 98, 0, 100);
  155. font-size: 20px;
  156. text-align: left;
  157. font-family: Roboto-medium;
  158. }
  159. .unit{
  160. height: 14px;
  161. line-height: 14px;
  162. color: rgba(102, 102, 102, 100);
  163. font-size: 14px;
  164. text-align: left;
  165. font-family: AlibabaPuHui-regular;
  166. margin-top: 6px;
  167. margin-left: 4px;
  168. }
  169. }
  170. .park {
  171. margin-top: 8px;
  172. display: flex;
  173. .park-p {
  174. display: inline-block;
  175. width: 20px;
  176. height: 18px;
  177. line-height: 12px;
  178. text-align: center;
  179. background-color: rgba(125, 177, 255, 100);
  180. color: #fff;
  181. }
  182. .park-text {
  183. display: inline-block;
  184. width: 300px;
  185. height: 17px;
  186. color: rgba(102, 102, 102, 100);
  187. font-size: 12px;
  188. text-align: left;
  189. margin-left: 4px;
  190. margin-top: 2px;
  191. }
  192. }
  193. .free{
  194. display: flex;
  195. justify-content: space-between;
  196. height: 52px;
  197. border-top: 1px solid rgba(238, 242, 240, 100);
  198. margin-top: 10px;
  199. .free-num{
  200. line-height: 52px;
  201. font-size: 16px
  202. }
  203. .distance{
  204. width: 130px;
  205. height: 28px;
  206. line-height: 28px;
  207. color: rgba(255, 255, 255, 100);
  208. font-size: 14px;
  209. background-color: #00b962;
  210. border-radius: 50px;
  211. margin: 12px;
  212. text-align: center;
  213. .distance-font{
  214. font-size: 16px
  215. }
  216. }
  217. }
  218. }
  219. </style>