searchPileMap.vue 8.2 KB

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