index.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. @font-face {
  2. font-family: "ysbth";
  3. src: url("ysbth.ttf") format("truetype");
  4. }
  5. page {
  6. font-size: 16px;
  7. }
  8. ax-body {
  9. display: block;
  10. height: 100%;
  11. background: linear-gradient(
  12. 180deg,
  13. #c7fffd 0%,
  14. #97e8fa 10%,
  15. #f6f6f6 74%,
  16. #f6f6f6 100%
  17. );
  18. }
  19. ax-body >>> .ax-body .__root {
  20. display: flex;
  21. flex-direction: column;
  22. padding-left: 0 !important;
  23. padding-right: 0 !important;
  24. position: relative;
  25. overflow: hidden !important;
  26. padding-bottom: var(--app-navigation-heiht) !important;
  27. }
  28. .main-scroll-wrap {
  29. flex: 1;
  30. position: relative;
  31. height: 1200rpx;
  32. }
  33. .root-scroll {
  34. position: absolute;
  35. top: 0;
  36. left: 0;
  37. right: 0;
  38. bottom: 0;
  39. }
  40. .concat-father {
  41. position: absolute;
  42. bottom: 170rpx;
  43. right: 16rpx;
  44. }
  45. .concat-icon {
  46. width: 120rpx;
  47. height: 120rpx;
  48. }
  49. .contet-root {
  50. height: 100%;
  51. }
  52. .base {
  53. padding-left: 10px;
  54. padding-right: 10px;
  55. }
  56. /* 导航栏 */
  57. app-navigation {
  58. display: block;
  59. position: fixed;
  60. left: 0;
  61. right: 0;
  62. bottom: 0;
  63. }
  64. /* 标题栏 */
  65. .titlebar {
  66. display: flex;
  67. align-items: center;
  68. padding-left: 3px;
  69. }
  70. .titlebar .page-title {
  71. width: 133px;
  72. height: 33px;
  73. }
  74. .titlebar .page-subtitle {
  75. font-size: 12px;
  76. }
  77. /* 定位城市 */
  78. .search-view {
  79. position: sticky;
  80. top: 0;
  81. z-index: 90;
  82. }
  83. .arrears-tips {
  84. margin: auto;
  85. margin-top: 20rpx;
  86. display: flex;
  87. align-items: center;
  88. justify-content: space-between;
  89. transition: opacity 0.3s;
  90. opacity: 1;
  91. width: 702rpx;
  92. height: 72rpx;
  93. background: #fff6e8;
  94. border-radius: 16rpx;
  95. }
  96. .arrears-left {
  97. display: flex;
  98. align-items: center;
  99. gap: 20rpx;
  100. }
  101. .arrears-icon {
  102. width: 30rpx;
  103. height: 30rpx;
  104. margin-left: 20rpx;
  105. }
  106. .arrears-text {
  107. font-size: 24rpx;
  108. color: #fab04d;
  109. }
  110. .arrears-btn {
  111. width: 112rpx;
  112. height: 48rpx;
  113. background: #fab14f;
  114. border-radius: 24rpx;
  115. font-size: 24rpx;
  116. color: #ffffff;
  117. text-align: center;
  118. line-height: 48rpx;
  119. margin-right: 20rpx;
  120. }
  121. .locate-city {
  122. display: flex;
  123. align-items: center;
  124. margin-right: 6px;
  125. justify-content: ;
  126. }
  127. .locate-city ._icon {
  128. display: inline-block;
  129. width: 20px;
  130. height: 20px;
  131. margin-right: 5px;
  132. }
  133. .locate-city .__name {
  134. margin-bottom: 6rpx;
  135. }
  136. /* 搜索条 */
  137. .search-bar {
  138. flex: 1;
  139. display: flex;
  140. align-items: center;
  141. height: 30px;
  142. padding: 0 10px;
  143. border-radius: 8px;
  144. background: rgba(255, 255, 255, 0.6);
  145. }
  146. .search-bar input {
  147. flex: 1;
  148. display: block;
  149. font-size: 14px;
  150. background-color: transparent;
  151. }
  152. .search-bar ._icon-search {
  153. display: inline-block;
  154. width: 20px;
  155. height: 20px;
  156. margin-left: 10px;
  157. }
  158. .search-map-mode {
  159. display: flex;
  160. align-items: center;
  161. gap: 20rpx;
  162. width: 220rpx;
  163. height: 60rpx;
  164. background: rgba(255, 255, 255, 0.6);
  165. border-radius: 16rpx;
  166. justify-content: center;
  167. }
  168. .search-map-icon {
  169. width: 40rpx;
  170. height: 40rpx;
  171. }
  172. /* 快捷栏 */
  173. .shortcut-bar {
  174. display: flex;
  175. align-items: center;
  176. justify-content: space-between;
  177. gap: 20rpx;
  178. padding: 15px 0px;
  179. }
  180. .buy-charge-coupon {
  181. position: relative;
  182. width: 340rpx;
  183. height: 376rpx;
  184. background: #ffffff;
  185. box-shadow: inset 0rpx 20rpx 40rpx 2rpx rgba(100, 255, 218, 0.26);
  186. border-radius: 16rpx;
  187. text-align: center;
  188. }
  189. .coupon-tag {
  190. position: absolute;
  191. top: 0;
  192. right: 0;
  193. width: 116rpx;
  194. height: 52rpx;
  195. background: linear-gradient(134deg, #25eb64 0%, #0ad549 100%);
  196. box-shadow: inset 0rpx 20rpx 40rpx 2rpx rgba(100, 255, 218, 0.26);
  197. border-radius: 0rpx 16rpx 0rpx 16rpx;
  198. font-size: 28rpx;
  199. color: #ffffff;
  200. line-height: 52rpx;
  201. }
  202. .charge-title {
  203. margin-top: 62rpx;
  204. display: flex;
  205. align-items: center;
  206. gap: 20rpx;
  207. margin-left: 24rpx;
  208. }
  209. .title-coupon-text {
  210. font-family: Consolas, Menlo, "Courier New", monospace;
  211. font-weight: 800;
  212. font-size: 34rpx;
  213. /* font-style: italic; */
  214. }
  215. .title-right-text {
  216. width: 34rpx;
  217. height: 34rpx;
  218. background: #000;
  219. border-radius: 50%;
  220. text-align: center;
  221. line-height: 34rpx;
  222. }
  223. .ax-iconline {
  224. color: #fff;
  225. display: flex;
  226. align-items: center;
  227. justify-content: center;
  228. }
  229. .charge-text-dsc {
  230. margin-top: 20rpx;
  231. font-size: 28rpx;
  232. color: #aaaaaa;
  233. text-align: left;
  234. margin-left: 24rpx;
  235. }
  236. .charge-coupon-img {
  237. position: absolute;
  238. bottom: 0;
  239. left: 50%;
  240. transform: translate(-50%, 0);
  241. width: 202rpx;
  242. height: 208rpx;
  243. }
  244. .order-center {
  245. display: flex;
  246. align-items: center;
  247. width: 340rpx;
  248. height: 178rpx;
  249. background: #ffffff;
  250. box-shadow: inset 0rpx 20rpx 60rpx 2rpx rgba(100, 234, 255, 0.26);
  251. border-radius: 16rpx;
  252. }
  253. .order-center-number {
  254. margin-top: 20rpx;
  255. margin-left: 24rpx;
  256. font-size: 28rpx;
  257. color: #aaaaaa;
  258. }
  259. .order-center-icon {
  260. width: 100rpx;
  261. height: 100rpx;
  262. }
  263. .shortcut-bar ._item {
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. flex-direction: column;
  268. }
  269. .shortcut-bar ._item ._icon {
  270. width: 40px;
  271. height: 40px;
  272. }
  273. .shortcut-bar ._item ._name {
  274. font-size: 12px;
  275. margin-top: 6px;
  276. }
  277. /* 版头广告 */
  278. .banner {
  279. width: 100%;
  280. height: calc((100vw - 20px) * (5 / 20));
  281. }
  282. .banner .swiper-item {
  283. display: flex;
  284. width: 100%;
  285. }
  286. .banner .swiper-item .swiper-item-image {
  287. display: block;
  288. width: 100%;
  289. border-radius: 5px;
  290. }
  291. /* 选项条 */
  292. .options-bar {
  293. display: flex;
  294. align-items: center;
  295. padding: 15px 0px;
  296. gap: 20rpx;
  297. }
  298. .options-tabs {
  299. width: 152rpx;
  300. height: 60rpx;
  301. background: #ffffff;
  302. border-radius: 16rpx;
  303. font-size: 28rpx;
  304. color: #2b303a;
  305. text-align: center;
  306. line-height: 60rpx;
  307. transition: all 0.3s ease-in-out;
  308. position: relative;
  309. overflow: hidden;
  310. }
  311. .options-tabs::before {
  312. content: "";
  313. position: absolute;
  314. top: 0;
  315. left: 0;
  316. right: 0;
  317. bottom: 0;
  318. background: linear-gradient(99deg, #8ff8fb 0%, #47aeff 100%);
  319. border-radius: 16rpx;
  320. opacity: 0;
  321. transition: opacity 0.3s ease-in-out;
  322. z-index: 1;
  323. }
  324. .options-tabs text {
  325. position: relative;
  326. z-index: 2;
  327. }
  328. .options-bar .options-tabs.active {
  329. width: 152rpx;
  330. height: 60rpx;
  331. background: #ffffff;
  332. /* 保持白色背景,用伪元素显示渐变 */
  333. border-radius: 16rpx;
  334. font-size: 28rpx;
  335. color: #2b303a;
  336. text-align: center;
  337. line-height: 60rpx;
  338. font-weight: bold;
  339. /* 过渡效果 */
  340. transition: all 0.3s ease-in-out;
  341. }
  342. .options-bar .options-tabs.active::before {
  343. opacity: 1;
  344. }
  345. /* 可选:添加点击反馈动画 */
  346. .options-tabs:active {
  347. transform: scale(0.95);
  348. transition: transform 0.1s ease;
  349. }
  350. .options-bar .option-item::after {
  351. content: "";
  352. display: block;
  353. width: 30px;
  354. height: 6px;
  355. transform: translateY(5px) scaleX(0);
  356. border-radius: 10pc;
  357. background: linear-gradient(to right, #8ff8fb, #47aeff);
  358. transition: all 400ms ease;
  359. }
  360. .options-bar .option-item.active::after {
  361. transform: translateY(5px) scaleX(1);
  362. }
  363. .options-bar .separ {
  364. flex: 1;
  365. }
  366. .options-bar .separ::before {
  367. content: "";
  368. display: block;
  369. height: 13px;
  370. border-left: 1px solid #3eb6f8;
  371. }
  372. .options-bar .map-mode {
  373. color: #3eb6f8;
  374. }
  375. .options-bar .map-mode ._icon {
  376. width: 17px;
  377. height: 17px;
  378. margin-right: 5px;
  379. }
  380. /* 电站列表 */
  381. .list-scroll-wrap {
  382. height: var(--list-heiht);
  383. position: relative;
  384. }
  385. .list-scroll-wrap > .list-scroll {
  386. position: absolute;
  387. top: 0;
  388. left: 0;
  389. right: 0;
  390. bottom: 0;
  391. }
  392. .list {
  393. padding: 10px;
  394. }
  395. .list .item {
  396. display: block;
  397. border-radius: 8px;
  398. background-color: #fff;
  399. box-shadow: 0 1px 10px rgba(0, 39, 52, 0.1);
  400. overflow: hidden;
  401. }
  402. .list .item + .item {
  403. margin-top: 10px;
  404. }
  405. .list .item .contet {
  406. padding: 10px;
  407. background: #fff;
  408. /* url('@/static/img/charging_station_item_background.png') no-repeat center */
  409. }
  410. .list .item .name {
  411. display: flex;
  412. font-weight: bold;
  413. position: relative;
  414. }
  415. .list .item .name > .txt {
  416. flex: 1;
  417. line-height: 1.5em;
  418. }
  419. .list .item .name > .firm-price {
  420. position: absolute;
  421. right: -20rpx;
  422. top: -20rpx;
  423. width: 200rpx;
  424. height: 52rpx;
  425. background: linear-gradient(132deg, #ff6464 0%, #ff3a3a 100%);
  426. border-radius: 0rpx 16rpx 0rpx 40rpx;
  427. text-align: center;
  428. line-height: 52rpx;
  429. color: #fff;
  430. }
  431. .list .item .name > .icon {
  432. display: flex;
  433. align-items: center;
  434. justify-content: center;
  435. width: 20px;
  436. height: 20px;
  437. border-radius: 4px;
  438. background: linear-gradient(to bottom, #2a67f0, #769ffc);
  439. margin-right: 10px;
  440. }
  441. .list .item .name > .icon image {
  442. display: block;
  443. width: 10px;
  444. }
  445. .list .item .parkade {
  446. display: flex;
  447. font-size: 12px;
  448. color: #aaa;
  449. margin-top: 15px;
  450. }
  451. .list .item .parkade > .txt {
  452. flex: 1;
  453. line-height: 1.5em;
  454. }
  455. .list .item .parkade > .icon {
  456. display: inline-flex;
  457. align-items: center;
  458. justify-content: center;
  459. width: 20px;
  460. height: 20px;
  461. background-color: #5be7ff;
  462. margin-right: 10px;
  463. }
  464. .list .item .parkade > .icon image {
  465. display: block;
  466. width: 10px;
  467. }
  468. .list .item .info {
  469. margin-top: 24rpx;
  470. width: 654rpx;
  471. height: 84rpx;
  472. background: linear-gradient(
  473. 90deg,
  474. rgba(170, 255, 235, 0.3) 0%,
  475. rgba(175, 247, 252, 0.2) 44%,
  476. rgba(139, 232, 252, 0) 100%
  477. );
  478. border-radius: 16rpx 16rpx 16rpx 16rpx;
  479. padding-left: 20rpx;
  480. }
  481. .list .item .info .charge {
  482. display: inline-flex;
  483. align-items: center;
  484. justify-content: center;
  485. }
  486. .list .item .info .charge > .icon {
  487. display: inline-flex;
  488. align-items: center;
  489. justify-content: center;
  490. width: 20px;
  491. height: 20px;
  492. color: #fff;
  493. font-size: 13px;
  494. border-radius: 4px;
  495. background: linear-gradient(to bottom, #4fef86, #00aa3a);
  496. }
  497. .list .item .info .charge > .icon.blue {
  498. background: linear-gradient(to bottom, #8eb1ff, #3071ff);
  499. }
  500. .list .item .info .charge > .value {
  501. margin-left: 5px;
  502. }
  503. .list .item .info .charge > .max {
  504. color: #aaa;
  505. font-size: 12px;
  506. }
  507. .list .item .info .charge > .max::before {
  508. content: "/";
  509. }
  510. .list .item .info .charge + .charge {
  511. margin-left: 30px;
  512. }
  513. .list .item .info .distance {
  514. display: flex;
  515. align-items: center;
  516. height: 22px;
  517. border: 1px solid #3eb6f8;
  518. border-radius: 100pc;
  519. font-size: 12px;
  520. color: #3eb6f8;
  521. padding-right: 7px;
  522. overflow: hidden;
  523. }
  524. .list .item .info .distance > .icon {
  525. display: inline-flex;
  526. align-items: center;
  527. justify-content: center;
  528. width: 20px;
  529. height: 20px;
  530. background-color: #3eb6f8;
  531. margin-right: 5px;
  532. }
  533. .list .item .info .distance > .icon image {
  534. display: block;
  535. width: 10px;
  536. }
  537. .list .item .price {
  538. display: flex;
  539. align-items: center;
  540. justify-content: space-between;
  541. background-color: #fff;
  542. height: 45px;
  543. font-size: 14px;
  544. padding: 0 10px;
  545. box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  546. }
  547. .list .item .price .value {
  548. font-size: 20px;
  549. font-weight: bold;
  550. }
  551. .list .item .price .unit {
  552. margin-left: 6rpx;
  553. font-weight: bold;
  554. font-size: 12px;
  555. margin-left: 6rpx;
  556. }
  557. .card-bottom-text {
  558. width: 212rpx;
  559. height: 52rpx;
  560. background: url("@/static/img/firm-bg.png");
  561. background-size: cover;
  562. background-position: center;
  563. line-height: 52rpx;
  564. }
  565. .card-bottom-text-minitext {
  566. margin-left: 110rpx;
  567. font-weight: bold;
  568. font-size: 28rpx;
  569. color: #ff5d50;
  570. }
  571. .operation-price-btn {
  572. margin-left: 10rpx;
  573. width: 140rpx;
  574. height: 40rpx;
  575. background: #ff6457;
  576. border-radius: 22rpx 22rpx 22rpx 22rpx;
  577. font-style: italic;
  578. text-align: center;
  579. line-height: 40rpx;
  580. font-weight: 400;
  581. font-size: 22rpx;
  582. color: #ffffff;
  583. }
  584. .ordinary-price {
  585. margin-left: 12rpx;
  586. font-size: 24rpx;
  587. color: #aaaaaa;
  588. text-decoration: line-through;
  589. }
  590. .ad-popup {
  591. height: 1000rpx;
  592. }
  593. .ad-swiper {
  594. height: 100%;
  595. }
  596. .ad-swiper-item {
  597. height: 700rpx;
  598. }
  599. .close-get {
  600. margin-left: 550rpx;
  601. width: 50rpx;
  602. height: 50rpx;
  603. border-radius: 50%;
  604. border: 2rpx solid #133a4f;
  605. color: #fff;
  606. font-size: 28rpx;
  607. font-weight: bold;
  608. text-align: center;
  609. line-height: 50rpx;
  610. }
  611. .ad-image {
  612. margin-top: 10rpx;
  613. width: 600rpx;
  614. border-radius: 16rpx;
  615. }