searchPileList.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <template>
  2. <view style="padding-bottom: 205px;">
  3. <!-- 头部 -->
  4. <view>
  5. <view class="top">
  6. <view class="">
  7. 荆州市 <text class="iconfont" style="color: #bdbdbd;">&#xe62a;</text>
  8. </view>
  9. <u-search :show-action="false" placeholder="搜索站点名称"></u-search>
  10. <view class="">
  11. <text class="iconfont">&#xe622;</text> <text class="list">地图</text>
  12. </view>
  13. </view>
  14. </view>
  15. <!-- 条件选项 -->
  16. <view class="condition">
  17. <view class="condition-distance">
  18. 10公里<text class="iconfont" style="color: #bdbdbd;">&#xe62a;</text>
  19. </view>
  20. <view class="condition-type">
  21. 直流快充<text class="iconfont" style="color: #bdbdbd;">&#xe62a;</text>
  22. </view>
  23. <view class="condition-screen">
  24. 筛选<text class="iconfont" style="color: #bdbdbd;">&#xe62a;</text>
  25. </view>
  26. </view>
  27. <view class="charing-slow">
  28. <text class="trickle-charge">慢充</text> <text class="station-items">荆沙大道救助站充电站</text>
  29. <view class="address">
  30. 湖北省荆州市沙市区江津东路附155号
  31. </view>
  32. <view class="price">
  33. <view class="num">1.20</view>
  34. <view class="unit">
  35. 起 元/度
  36. </view>
  37. </view>
  38. <view class="park">
  39. <text class="park-p">p</text>
  40. <text class="park-text">以实际费用为准</text>
  41. </view>
  42. <view class="free">
  43. <view class="free-num">
  44. <text style="color:#009143;">空闲1</text>/总数5
  45. </view>
  46. <view class="distance">
  47. <text class="iconfont distance-font">&#xe615;</text>0.1公里 1分钟
  48. </view>
  49. </view>
  50. </view>
  51. <view class="charing-slow">
  52. <text class="fast-charge">快充</text> <text class="station-items">荆沙大道救助站充电站</text>
  53. <view class="address">
  54. 湖北省荆州市沙市区江津东路附155号
  55. </view>
  56. <view class="price">
  57. <view class="num">1.25</view>
  58. <view class="unit">
  59. 起 元/度
  60. </view>
  61. </view>
  62. <view class="park">
  63. <text class="park-p">p</text>
  64. <text class="park-text">2小时免费停车</text>
  65. </view>
  66. <view class="free">
  67. <view class="free-num">
  68. <text style="color:#009143;">空闲10</text>/总数10
  69. </view>
  70. <view class="distance">
  71. <text class="iconfont distance-font">&#xe615;</text>1.2公里 3分钟
  72. </view>
  73. </view>
  74. </view>
  75. <view class="charing-slow">
  76. <text class="trickle-charge">慢充</text> <text class="station-items">荆鹏软件园充电站</text>
  77. <view class="address">
  78. 湖北省荆州市沙市区江津东路附155号
  79. </view>
  80. <view class="price">
  81. <view class="num">1.25</view>
  82. <view class="unit">
  83. 起 元/度
  84. </view>
  85. </view>
  86. <view class="park">
  87. <text class="park-p">p</text>
  88. <text class="park-text">2小时免费停车</text>
  89. </view>
  90. <view class="free">
  91. <view class="free-num">
  92. <text style="color:#009143;">空闲1</text>/总数5
  93. </view>
  94. <view class="distance">
  95. <text class="iconfont distance-font">&#xe615;</text>0.1公里 1分钟
  96. </view>
  97. </view>
  98. </view>
  99. <view class="charing-slow">
  100. <text class="fast-charge">快充</text> <text class="station-items">荆沙大道救助站充电站</text>
  101. <view class="address">
  102. 湖北省荆州市沙市区荆沙大道15号
  103. </view>
  104. <view class="price">
  105. <view class="num">1.20</view>
  106. <view class="unit">
  107. 起 元/度
  108. </view>
  109. </view>
  110. <view class="park">
  111. <text class="park-p">p</text>
  112. <text class="park-text">2小时免费停车</text>
  113. </view>
  114. <view class="free">
  115. <view class="free-num">
  116. <text style="color:#009143;">空闲10</text>/总数10
  117. </view>
  118. <view class="distance">
  119. <text class="iconfont distance-font">&#xe615;</text>1.2公里 3分钟
  120. </view>
  121. </view>
  122. </view>
  123. <u-divider margin-top="20" bg-color="#F2F4F4">已经到底了</u-divider>
  124. <u-tabbar v-model="current" :list="tabbarList" active-color="#009143"></u-tabbar>
  125. </view>
  126. </template>
  127. <script>
  128. export default {
  129. data() {
  130. return {
  131. tabbarList: [{
  132. iconPath: "home-3-line",
  133. selectedIconPath: "home-3-fill",
  134. text: '主页 ',
  135. count: 0,
  136. isDot: true,
  137. customIcon: true,
  138. },
  139. {
  140. iconPath: "road-map-line",
  141. selectedIconPath: "road-map-fill",
  142. text: '找桩',
  143. midButton: true,
  144. customIcon: true,
  145. },
  146. {
  147. iconPath: "user-5-line",
  148. selectedIconPath: "user-5-fill",
  149. text: '我的',
  150. count: 0,
  151. isDot: false,
  152. customIcon: true,
  153. }
  154. ],
  155. current: 0
  156. }
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .top {
  162. display: flex;
  163. justify-content: space-between;
  164. width: 100%;
  165. height: 44px;
  166. color: #666666;
  167. background-color: rgba(255, 255, 255, 100);
  168. padding: 12px 16px;
  169. position: fixed;
  170. top: 0;
  171. left: 0;
  172. .u-search[data-v-1a326067] {
  173. flex: 0.9;
  174. }
  175. .list {
  176. margin-left: 2px;
  177. }
  178. }
  179. .condition {
  180. height: 44px;
  181. line-height: 20px;
  182. padding: 12px 16px;
  183. display: flex;
  184. justify-content: space-between;
  185. background-color: #fff;
  186. .condition-type {
  187. margin-left: 12px;
  188. }
  189. .condition-screen {
  190. margin-left: 135px;
  191. }
  192. }
  193. .charing-slow {
  194. background-color: #fff;
  195. margin: 0 12px;
  196. border-radius: 8px;
  197. padding: 10px 12px 0px;
  198. margin-top: 12px;
  199. .trickle-charge {
  200. display: inline-block;
  201. width: 44px;
  202. height: 20px;
  203. line-height: 20px;
  204. border-radius: 50px;
  205. background-color: rgba(0, 185, 98, 100);
  206. color: rgba(255, 255, 255, 100);
  207. font-size: 12px;
  208. text-align: center;
  209. }
  210. .fast-charge {
  211. display: inline-block;
  212. width: 44px;
  213. height: 20px;
  214. line-height: 20px;
  215. border-radius: 50px;
  216. background-color: #9d9fff;
  217. color: rgba(255, 255, 255, 100);
  218. font-size: 12px;
  219. text-align: center;
  220. }
  221. .station-items {
  222. display: inline-block;
  223. height: 16px;
  224. line-height: 16px;
  225. font-size: 16px;
  226. margin-left: 4px;
  227. color: #101010;
  228. }
  229. .address {
  230. margin-top: 8px;
  231. line-height: 16px;
  232. font-size: 11px;
  233. color: rgba(119, 119, 119, 100);
  234. }
  235. .price {
  236. display: flex;
  237. height: 20px;
  238. .num {
  239. height: 20px;
  240. color: rgba(255, 98, 0, 100);
  241. font-size: 20px;
  242. text-align: left;
  243. font-family: Roboto-medium;
  244. }
  245. .unit {
  246. height: 14px;
  247. line-height: 14px;
  248. color: rgba(102, 102, 102, 100);
  249. font-size: 14px;
  250. text-align: left;
  251. font-family: AlibabaPuHui-regular;
  252. margin-top: 6px;
  253. margin-left: 4px;
  254. }
  255. }
  256. .park {
  257. margin-top: 8px;
  258. display: flex;
  259. .park-p {
  260. display: inline-block;
  261. width: 20px;
  262. height: 18px;
  263. line-height: 12px;
  264. text-align: center;
  265. background-color: rgba(125, 177, 255, 100);
  266. color: #fff;
  267. }
  268. .park-text {
  269. display: inline-block;
  270. width: 300px;
  271. height: 17px;
  272. color: rgba(102, 102, 102, 100);
  273. font-size: 12px;
  274. text-align: left;
  275. margin-left: 4px;
  276. margin-top: 2px;
  277. }
  278. }
  279. .free {
  280. display: flex;
  281. justify-content: space-between;
  282. height: 52px;
  283. border-top: 1px solid rgba(238, 242, 240, 100);
  284. margin-top: 10px;
  285. .free-num {
  286. line-height: 52px;
  287. font-size: 16px
  288. }
  289. .distance {
  290. width: 130px;
  291. height: 28px;
  292. line-height: 28px;
  293. color: rgba(255, 255, 255, 100);
  294. font-size: 14px;
  295. background-color: #00b962;
  296. border-radius: 50px;
  297. margin: 12px;
  298. text-align: center;
  299. .distance-font {
  300. font-size: 16px
  301. }
  302. }
  303. }
  304. }
  305. </style>