searchPileList.vue 7.7 KB

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