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