searchPile.vue 6.7 KB

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