index.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. page {
  2. font-size: 16px;
  3. }
  4. ax-body {
  5. display: block;
  6. height: 100%;
  7. background: linear-gradient(to bottom, #C7FFFD, #FFF, #E6F3FF, #8BECFF, #72B8FE, #86D3FD);
  8. }
  9. ax-body>>>.ax-body .__root {
  10. display: flex;
  11. flex-direction: column;
  12. padding-left: 0 !important;
  13. padding-right: 0 !important;
  14. position: relative;
  15. overflow: hidden !important;
  16. padding-bottom: var(--app-navigation-heiht) !important;
  17. }
  18. .main-scroll-wrap {
  19. flex: 1;
  20. position: relative;
  21. }
  22. .root-scroll {
  23. position: absolute;
  24. top: 0;
  25. left: 0;
  26. right: 0;
  27. bottom: 0;
  28. }
  29. .contet-root {
  30. height: 100%;
  31. }
  32. .base {
  33. padding-left: 10px;
  34. padding-right: 10px;
  35. }
  36. /* 导航栏 */
  37. app-navigation {
  38. display: block;
  39. position: fixed;
  40. left: 0;
  41. right: 0;
  42. bottom: 0;
  43. }
  44. /* 标题栏 */
  45. .titlebar {
  46. display: flex;
  47. align-items: center;
  48. padding-left: 3px;
  49. }
  50. .titlebar .page-title {
  51. width: 133px;
  52. height: 33px;
  53. }
  54. .titlebar .page-subtitle {
  55. font-size: 12px;
  56. }
  57. /* 定位城市 */
  58. .search-view {
  59. position: sticky;
  60. top: 0;
  61. z-index: 90;
  62. }
  63. .locate-city {
  64. display: flex;
  65. align-items: center;
  66. margin-right: 10px;
  67. }
  68. .locate-city ._icon {
  69. display: inline-block;
  70. width: 20px;
  71. height: 20px;
  72. margin-right: 5px;
  73. }
  74. /* 搜索条 */
  75. .search-bar {
  76. flex: 1;
  77. display: flex;
  78. align-items: center;
  79. height: 30px;
  80. padding: 0 10px;
  81. border-radius: 8px;
  82. border: 1px solid #2B303A;
  83. background-color: #fff;
  84. }
  85. .search-bar input {
  86. flex: 1;
  87. display: block;
  88. font-size: 14px;
  89. background-color: transparent;
  90. }
  91. .search-bar ._icon-search {
  92. display: inline-block;
  93. width: 20px;
  94. height: 20px;
  95. margin-left: 10px;
  96. }
  97. /* 快捷栏 */
  98. .shortcut-bar {
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-between;
  102. padding: 15px 10px;
  103. }
  104. .shortcut-bar ._item {
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. flex-direction: column;
  109. }
  110. .shortcut-bar ._item ._icon {
  111. width: 40px;
  112. height: 40px;
  113. }
  114. .shortcut-bar ._item ._name {
  115. font-size: 12px;
  116. margin-top: 6px;
  117. }
  118. /* 版头广告 */
  119. .banner {
  120. width: 100%;
  121. height: calc((100vw - 20px) * (5/27));
  122. }
  123. .banner .swiper-item {
  124. display: flex;
  125. width: 100%;
  126. }
  127. .banner .swiper-item .swiper-item-image {
  128. display: block;
  129. width: 100%;
  130. border-radius: 5px;
  131. }
  132. /* 选项条 */
  133. .options-bar {
  134. align-items: center;
  135. padding: 15px 0px;
  136. font-size: 14px;
  137. }
  138. .options-bar .option-item {
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. flex-direction: column;
  143. font-size: inherit;
  144. }
  145. .options-bar .option-item+.option-item {
  146. margin-left: 30px;
  147. }
  148. .options-bar .option-item.active {
  149. font-size: 18px;
  150. font-weight: bold;
  151. }
  152. .options-bar .option-item::after {
  153. content: '';
  154. display: block;
  155. width: 30px;
  156. height: 6px;
  157. transform: translateY(5px) scaleX(0);
  158. border-radius: 10pc;
  159. background: linear-gradient(to right, #8FF8FB, #47AEFF);
  160. transition: all 400ms ease;
  161. }
  162. .options-bar .option-item.active::after {
  163. transform: translateY(5px) scaleX(1);
  164. }
  165. .options-bar .separ {
  166. flex: 1;
  167. }
  168. .options-bar .separ::before {
  169. content: '';
  170. display: block;
  171. height: 13px;
  172. border-left: 1px solid #3EB6F8;
  173. }
  174. .options-bar .map-mode {
  175. color: #3EB6F8;
  176. }
  177. .options-bar .map-mode ._icon {
  178. width: 17px;
  179. height: 17px;
  180. margin-right: 5px;
  181. }
  182. /* 电站列表 */
  183. .list-scroll-wrap {
  184. height: var(--list-heiht);
  185. position: relative;
  186. }
  187. .list-scroll-wrap>.list-scroll {
  188. position: absolute;
  189. top: 0;
  190. left: 0;
  191. right: 0;
  192. bottom: 0;
  193. }
  194. .list {
  195. padding: 10px;
  196. }
  197. .list .item {
  198. display: block;
  199. border-radius: 8px;
  200. background-color: #fff;
  201. box-shadow: 0 1px 10px rgba(0, 39, 52, 0.1);
  202. overflow: hidden;
  203. }
  204. .list .item+.item {
  205. margin-top: 10px;
  206. }
  207. .list .item .contet {
  208. padding: 10px;
  209. background: #F6F9FE url('@/static/img/charging_station_item_background.png') no-repeat center;
  210. }
  211. .list .item .name {
  212. display: flex;
  213. font-weight: bold;
  214. }
  215. .list .item .name>.txt {
  216. flex: 1;
  217. line-height: 1.5em;
  218. }
  219. .list .item .name>.icon {
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. width: 20px;
  224. height: 20px;
  225. border-radius: 4px;
  226. background: linear-gradient(to bottom, #2A67F0, #769FFC);
  227. margin-right: 10px;
  228. }
  229. .list .item .name>.icon image {
  230. display: block;
  231. width: 10px;
  232. }
  233. .list .item .parkade {
  234. display: flex;
  235. font-size: 12px;
  236. color: #aaa;
  237. margin-top: 15px;
  238. }
  239. .list .item .parkade>.txt {
  240. flex: 1;
  241. line-height: 1.5em;
  242. }
  243. .list .item .parkade>.icon {
  244. display: inline-flex;
  245. align-items: center;
  246. justify-content: center;
  247. width: 20px;
  248. height: 20px;
  249. background-color: #5BE7FF;
  250. margin-right: 10px;
  251. }
  252. .list .item .parkade>.icon image {
  253. display: block;
  254. width: 10px;
  255. }
  256. .list .item .info {
  257. margin-top: 15px;
  258. }
  259. .list .item .info .charge {
  260. display: inline-flex;
  261. align-items: center;
  262. justify-content: center;
  263. }
  264. .list .item .info .charge>.icon {
  265. display: inline-flex;
  266. align-items: center;
  267. justify-content: center;
  268. width: 20px;
  269. height: 20px;
  270. color: #fff;
  271. font-size: 13px;
  272. border-radius: 4px;
  273. background: linear-gradient(to bottom, #4FEF86, #00AA3A);
  274. }
  275. .list .item .info .charge>.icon.blue {
  276. background: linear-gradient(to bottom, #8EB1FF, #3071FF);
  277. }
  278. .list .item .info .charge>.value {
  279. margin-left: 5px;
  280. }
  281. .list .item .info .charge>.max {
  282. color: #aaa;
  283. font-size: 12px;
  284. }
  285. .list .item .info .charge>.max::before {
  286. content: '/';
  287. }
  288. .list .item .info .charge+.charge {
  289. margin-left: 30px;
  290. }
  291. .list .item .info .distance {
  292. display: flex;
  293. align-items: center;
  294. height: 22px;
  295. border: 1px solid #3EB6F8;
  296. border-radius: 100pc;
  297. font-size: 12px;
  298. color: #3EB6F8;
  299. padding-right: 7px;
  300. overflow: hidden;
  301. }
  302. .list .item .info .distance>.icon {
  303. display: inline-flex;
  304. align-items: center;
  305. justify-content: center;
  306. width: 20px;
  307. height: 20px;
  308. background-color: #3EB6F8;
  309. margin-right: 5px;
  310. }
  311. .list .item .info .distance>.icon image {
  312. display: block;
  313. width: 10px;
  314. }
  315. .list .item .price {
  316. display: flex;
  317. align-items: center;
  318. justify-content: space-between;
  319. background-color: #fff;
  320. height: 45px;
  321. font-size: 14px;
  322. padding: 0 10px;
  323. box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  324. }
  325. .list .item .price .value {
  326. font-size: 20px;
  327. font-weight: bold;
  328. }
  329. .list .item .price .unit {
  330. margin-left: 6rpx;
  331. font-weight: bold;
  332. font-size: 12px;
  333. margin-left: 6rpx;
  334. }
  335. .card-bottom-text {
  336. font-weight: bold;
  337. font-size: 20px;
  338. color:#FF5D50;
  339. }
  340. .card-bottom-text .mini-text {
  341. margin-left: 6rpx;
  342. font-size: 12px;
  343. }
  344. .operation-price-btn {
  345. margin-left:10rpx;
  346. width: 140rpx;
  347. height: 40rpx;
  348. background: #FF6457;
  349. border-radius: 22rpx 22rpx 22rpx 22rpx;
  350. font-style: italic;
  351. text-align: center;
  352. line-height: 40rpx;
  353. font-weight: 400;
  354. font-size: 22rpx;
  355. color: #FFFFFF;
  356. }
  357. .ordinary-price {
  358. margin-left: 12rpx;
  359. font-size: 24rpx;
  360. color: #AAAAAA;
  361. text-decoration: line-through;
  362. }