searchPileMap.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <template>
  2. <view>
  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">&#xe613;</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. <!-- 地图 -->
  30. <view style="height: 88px;"></view>
  31. <view class="map">
  32. <view class="station-icon" style="background-color: #fff;"><text class="iconfont" >&#xe606;</text>
  33. <view class="corner"></view>
  34. </view>
  35. <view class="station-icon2">
  36. <view class="iconfont icon2-left">&#xe606;</view>
  37. <view class="icon2-right">
  38. <view class="corner2"></view>
  39. <view class="corner2-top">
  40. 1.25元
  41. </view>
  42. <view class="corner2-bottom">
  43. 空闲10
  44. </view>
  45. </view>
  46. </view>
  47. <view class="station-icon3"><text class="iconfont">&#xe606;</text>
  48. <view class="corner3"></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.20</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">以实际费用为准</text>
  65. <view class="free-num">
  66. <text style="color:#009143;">空闲10</text>/总数10
  67. </view>
  68. </view>
  69. <view class="free">
  70. <view class="scan-qrcode"> <text class="iconfont font">&#xe61b;</text><text class="text">扫码充电</text>
  71. </view>
  72. <view class="distance">
  73. <text class="iconfont distance-font">&#xe615;</text><text class="text">1.2公里 3分钟</text>
  74. </view>
  75. </view>
  76. <view class="img-box"><img src="@/assets/static/img/location.png" alt=""></view>
  77. </view>
  78. <view class="position-box">
  79. <view class="iconfont position" >&#xe634;</view>
  80. </view>
  81. <u-tabbar v-model="current" :list="tabbarList" active-color="#009143"></u-tabbar>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {
  88. tabbarList: [{
  89. iconPath: "home-3-line",
  90. selectedIconPath: "home-3-fill",
  91. text: '主页 ',
  92. count: 0,
  93. isDot: true,
  94. customIcon: true,
  95. },
  96. {
  97. iconPath: "road-map-line",
  98. selectedIconPath: "road-map-fill",
  99. text: '找桩',
  100. midButton: true,
  101. customIcon: true,
  102. },
  103. {
  104. iconPath: "user-5-line",
  105. selectedIconPath: "user-5-fill",
  106. text: '我的',
  107. count: 0,
  108. isDot: false,
  109. customIcon: true,
  110. }
  111. ],
  112. current: 0
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .top-box {
  119. width: 100%;
  120. height: 88px;
  121. position: fixed;
  122. top: 0;
  123. left: 0;
  124. z-index: 999;
  125. }
  126. .top {
  127. display: flex;
  128. justify-content: space-between;
  129. width: 100%;
  130. height: 44px;
  131. color: #666666;
  132. background-color: rgba(255, 255, 255, 100);
  133. padding: 12px 16px;
  134. .u-search[data-v-1a326067] {
  135. flex: 0.9;
  136. }
  137. .list {
  138. margin-left: 2px;
  139. }
  140. }
  141. .condition {
  142. width: 100%;
  143. height: 44px;
  144. line-height: 20px;
  145. padding: 12px 16px;
  146. display: flex;
  147. background-color: #fff;
  148. .condition-type {
  149. margin-left: 36px;
  150. }
  151. .condition-screen {
  152. margin-left: 159px;
  153. }
  154. }
  155. .map {
  156. width: 100%;
  157. flex: 1;
  158. position: relative;
  159. img {
  160. width: 100%;
  161. height: 100%;
  162. }
  163. .station-icon {
  164. width: 36px;
  165. height: 36px;
  166. line-height: 36px;
  167. text-align: center;
  168. border: 1px solid rgba(133, 140, 255, 100);
  169. color: #b58cff;
  170. border-radius: 999px;
  171. position: absolute;
  172. top: 89px;
  173. left: 38px;
  174. .corner {
  175. width: 0;
  176. height: 0;
  177. position: absolute;
  178. top: 34px;
  179. left: 0;
  180. right: 0;
  181. margin: auto;
  182. border-bottom: 4px solid transparent;
  183. border-left: 4px solid transparent;
  184. border-right: 4px solid transparent;
  185. border-top: 6px solid #b58cff;
  186. }
  187. }
  188. .station-icon2 {
  189. width: 100px;
  190. height: 36px;
  191. line-height: 20px;
  192. border-radius: 50px;
  193. background-color: #00bacb;
  194. text-align: center;
  195. display: flex;
  196. position: absolute;
  197. top: 188px;
  198. left: 146px;
  199. .icon2-left {
  200. width: 36px;
  201. height: 36px;
  202. line-height: 36px;
  203. text-align: center;
  204. border: 1px solid rgba(0, 185, 98, 100);
  205. border-radius: 999px;
  206. background-color: #fff;
  207. color: #00bacb;
  208. }
  209. .icon2-right {
  210. color: #ffffff;
  211. line-height: 14px;
  212. padding: 4px;
  213. font-size: 14px
  214. }
  215. .corner2 {
  216. width: 0;
  217. height: 0;
  218. position: absolute;
  219. top: 36px;
  220. left: 0;
  221. right: 0;
  222. margin: auto;
  223. border-bottom: 6px solid transparent;
  224. border-left: 6px solid transparent;
  225. border-right: 6px solid transparent;
  226. border-top: 8px solid #00bacb;
  227. }
  228. }
  229. .station-icon3 {
  230. width: 36px;
  231. height: 36px;
  232. line-height: 36px;
  233. text-align: center;
  234. border: 1px solid rgba(0, 185, 98, 100);
  235. color: #00b962;
  236. border-radius: 999px;
  237. position: absolute;
  238. top: 124px;
  239. left: 255px;
  240. .corner3 {
  241. width: 0;
  242. height: 0;
  243. position: absolute;
  244. top: 34px;
  245. left: 0;
  246. right: 0;
  247. margin: auto;
  248. border-bottom: 4px solid transparent;
  249. border-left: 4px solid transparent;
  250. border-right: 4px solid transparent;
  251. border-top: 6px solid #00b962;
  252. }
  253. }
  254. }
  255. .charing-slow {
  256. background-color: #fff;
  257. margin: 0 12px;
  258. border-radius: 8px;
  259. padding: 10px 12px 0px;
  260. position: fixed;
  261. bottom: 68px;
  262. left: 0;
  263. right: 0;
  264. z-index: 999;
  265. .fast-charge {
  266. display: inline-block;
  267. width: 44px;
  268. height: 20px;
  269. line-height: 20px;
  270. border-radius: 50px;
  271. background-color: #00bac8;
  272. color: rgba(255, 255, 255, 100);
  273. font-size: 12px;
  274. text-align: center;
  275. }
  276. .station-items {
  277. display: inline-block;
  278. height: 16px;
  279. line-height: 16px;
  280. font-size: 16px;
  281. margin-left: 4px;
  282. color: #101010;
  283. }
  284. .address {
  285. margin-top: 8px;
  286. line-height: 16px;
  287. font-size: 11px;
  288. color: rgba(119, 119, 119, 100);
  289. }
  290. .price {
  291. display: flex;
  292. height: 20px;
  293. .num {
  294. height: 20px;
  295. color: rgba(255, 98, 0, 100);
  296. font-size: 20px;
  297. text-align: left;
  298. font-family: Roboto-medium;
  299. }
  300. .unit {
  301. height: 14px;
  302. line-height: 14px;
  303. color: rgba(102, 102, 102, 100);
  304. font-size: 14px;
  305. text-align: left;
  306. font-family: AlibabaPuHui-regular;
  307. margin-top: 6px;
  308. margin-left: 4px;
  309. }
  310. }
  311. .park {
  312. margin-top: 8px;
  313. display: flex;
  314. .park-p {
  315. display: inline-block;
  316. width: 20px;
  317. height: 18px;
  318. line-height: 12px;
  319. text-align: center;
  320. background-color: rgba(125, 177, 255, 100);
  321. color: #fff;
  322. font-size: 14px
  323. }
  324. .park-text {
  325. display: inline-block;
  326. height: 17px;
  327. color: rgba(102, 102, 102, 100);
  328. font-size: 12px;
  329. text-align: left;
  330. margin-left: 4px;
  331. margin-top: 2px;
  332. }
  333. .free-num {
  334. margin-left: 119px;
  335. font-size: 14px;
  336. }
  337. }
  338. .free {
  339. display: flex;
  340. justify-content: space-between;
  341. height: 52px;
  342. border-top: 1px solid rgba(238, 242, 240, 100);
  343. margin-top: 10px;
  344. .iconfont {
  345. font-size: 15px
  346. }
  347. .text {
  348. margin-left: 4px;
  349. }
  350. .distance {
  351. width: 130px;
  352. height: 28px;
  353. line-height: 28px;
  354. color: rgba(255, 255, 255, 100);
  355. font-size: 14px;
  356. background-color: #00b962;
  357. border-radius: 50px;
  358. margin: 12px;
  359. text-align: center;
  360. }
  361. .scan-qrcode {
  362. width: 100px;
  363. height: 28px;
  364. line-height: 28px;
  365. border-radius: 50px;
  366. margin: 12px 0px 12px 89px;
  367. text-align: center;
  368. border: 1px solid rgba(0, 185, 98, 100);
  369. color: rgba(0, 185, 98, 100);
  370. font-size: 14px
  371. }
  372. }
  373. }
  374. .img-box{
  375. width: 36px;
  376. height: 36px;
  377. line-height: 36px;
  378. text-align: center;
  379. background-color: #fff;
  380. border-radius: 8px;
  381. position: fixed;
  382. top: 377px;
  383. right: 16px;
  384. img{
  385. width: 24px;
  386. height: 24px;
  387. vertical-align:middle;
  388. }
  389. }
  390. .position{
  391. color: #1677ff;
  392. font-size: 16px
  393. }
  394. .position-box{
  395. position:absolute;
  396. top: 341px;
  397. right: 118px;
  398. width: 16px;
  399. }
  400. </style>