index.acss 6.8 KB

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