index.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  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. z-index: 100;
  45. }
  46. .concat-icon {
  47. width: 120rpx;
  48. height: 120rpx;
  49. }
  50. .contet-root {
  51. height: 100%;
  52. }
  53. .base {
  54. padding-left: 10px;
  55. padding-right: 10px;
  56. }
  57. /* 导航栏 */
  58. app-navigation {
  59. display: block;
  60. position: fixed;
  61. left: 0;
  62. right: 0;
  63. bottom: 0;
  64. }
  65. /* 标题栏 */
  66. .titlebar {
  67. display: flex;
  68. align-items: center;
  69. padding-left: 3px;
  70. }
  71. .titlebar .page-title {
  72. width: 133px;
  73. height: 33px;
  74. }
  75. .titlebar .page-subtitle {
  76. font-size: 12px;
  77. }
  78. /* 定位城市 */
  79. .search-view {
  80. position: sticky;
  81. top: 0;
  82. z-index: 90;
  83. }
  84. .arrears-tips {
  85. margin: auto;
  86. margin-top: 20rpx;
  87. display: flex;
  88. align-items: center;
  89. justify-content: space-between;
  90. transition: opacity 0.3s;
  91. opacity: 1;
  92. width: 702rpx;
  93. height: 72rpx;
  94. background: #fff6e8;
  95. border-radius: 16rpx;
  96. }
  97. .arrears-left {
  98. display: flex;
  99. align-items: center;
  100. gap: 20rpx;
  101. }
  102. .arrears-icon {
  103. width: 30rpx;
  104. height: 30rpx;
  105. margin-left: 20rpx;
  106. }
  107. .arrears-text {
  108. font-size: 24rpx;
  109. color: #fab04d;
  110. }
  111. .arrears-btn {
  112. width: 112rpx;
  113. height: 48rpx;
  114. background: #fab14f;
  115. border-radius: 24rpx;
  116. font-size: 24rpx;
  117. color: #ffffff;
  118. text-align: center;
  119. line-height: 48rpx;
  120. margin-right: 20rpx;
  121. }
  122. .locate-city {
  123. display: flex;
  124. align-items: center;
  125. margin-right: 6px;
  126. justify-content: ;
  127. }
  128. .locate-city ._icon {
  129. display: inline-block;
  130. width: 20px;
  131. height: 20px;
  132. margin-right: 5px;
  133. }
  134. .locate-city .__name {
  135. margin-bottom: 6rpx;
  136. }
  137. /* 搜索条 */
  138. .search-bar {
  139. flex: 1;
  140. display: flex;
  141. align-items: center;
  142. height: 30px;
  143. padding: 0 10px;
  144. border-radius: 8px;
  145. background: rgba(255, 255, 255, 0.6);
  146. }
  147. .search-bar input {
  148. flex: 1;
  149. display: block;
  150. font-size: 14px;
  151. background-color: transparent;
  152. }
  153. .search-bar ._icon-search {
  154. display: inline-block;
  155. width: 20px;
  156. height: 20px;
  157. margin-left: 10px;
  158. }
  159. .search-map-mode {
  160. display: flex;
  161. align-items: center;
  162. gap: 20rpx;
  163. width: 220rpx;
  164. height: 60rpx;
  165. background: rgba(255, 255, 255, 0.6);
  166. border-radius: 16rpx;
  167. justify-content: center;
  168. }
  169. .search-map-icon {
  170. width: 40rpx;
  171. height: 40rpx;
  172. }
  173. /* 快捷栏 */
  174. .shortcut-bar {
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. gap: 20rpx;
  179. padding: 15px 0px;
  180. }
  181. .buy-charge-coupon {
  182. position: relative;
  183. width: 340rpx;
  184. height: 376rpx;
  185. background: #ffffff;
  186. box-shadow: inset 0rpx 20rpx 40rpx 2rpx rgba(100, 255, 218, 0.26);
  187. border-radius: 16rpx;
  188. text-align: center;
  189. }
  190. .coupon-tag {
  191. position: absolute;
  192. top: 0;
  193. right: 0;
  194. width: 116rpx;
  195. height: 52rpx;
  196. background: linear-gradient(90deg, #f32027 0%, #ffaa70 100%);
  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: 290rpx;
  242. height: 268rpx;
  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. height: 200rpx;
  282. border-radius: 10rpx;
  283. overflow: hidden;
  284. }
  285. .banner .swiper-item {
  286. display: flex;
  287. width: 100%;
  288. }
  289. .banner .swiper-item .swiper-item-image {
  290. display: block;
  291. width: 100%;
  292. }
  293. /* 选项条 */
  294. .options-bar {
  295. display: flex;
  296. align-items: center;
  297. height: 120rpx;
  298. gap: 20rpx;
  299. position: relative;
  300. z-index: 100;
  301. }
  302. .options-tabs {
  303. width: 152rpx;
  304. height: 60rpx;
  305. background: #ffffff;
  306. border-radius: 16rpx;
  307. font-size: 28rpx;
  308. color: #2b303a;
  309. text-align: center;
  310. line-height: 60rpx;
  311. transition: all 0.3s ease-in-out;
  312. position: relative;
  313. overflow: hidden;
  314. }
  315. .options-tabs::before {
  316. content: "";
  317. position: absolute;
  318. top: 0;
  319. left: 0;
  320. right: 0;
  321. bottom: 0;
  322. background: linear-gradient(99deg, #8ff8fb 0%, #47aeff 100%);
  323. border-radius: 16rpx;
  324. opacity: 0;
  325. transition: opacity 0.3s ease-in-out;
  326. z-index: 1;
  327. }
  328. .options-tabs text {
  329. position: relative;
  330. z-index: 2;
  331. }
  332. .options-bar .options-tabs.active {
  333. width: 152rpx;
  334. height: 60rpx;
  335. background: #ffffff;
  336. /* 保持白色背景,用伪元素显示渐变 */
  337. border-radius: 16rpx;
  338. font-size: 28rpx;
  339. color: #2b303a;
  340. text-align: center;
  341. line-height: 60rpx;
  342. font-weight: bold;
  343. /* 过渡效果 */
  344. transition: all 0.3s ease-in-out;
  345. }
  346. .options-bar .options-tabs.active::before {
  347. opacity: 1;
  348. }
  349. /* 可选:添加点击反馈动画 */
  350. .options-tabs:active {
  351. transform: scale(0.95);
  352. transition: transform 0.1s ease;
  353. }
  354. .options-bar .option-item::after {
  355. content: "";
  356. display: block;
  357. width: 30px;
  358. height: 6px;
  359. transform: translateY(5px) scaleX(0);
  360. border-radius: 10pc;
  361. background: linear-gradient(to right, #8ff8fb, #47aeff);
  362. transition: all 400ms ease;
  363. }
  364. .options-bar .option-item.active::after {
  365. transform: translateY(5px) scaleX(1);
  366. }
  367. .options-bar .separ {
  368. flex: 1;
  369. }
  370. .options-bar .separ::before {
  371. content: "";
  372. display: block;
  373. height: 13px;
  374. border-left: 1px solid #3eb6f8;
  375. }
  376. .options-bar .map-mode {
  377. color: #3eb6f8;
  378. }
  379. .options-bar .map-mode ._icon {
  380. width: 17px;
  381. height: 17px;
  382. margin-right: 5px;
  383. }
  384. /* 电站列表 */
  385. .list-scroll-wrap {
  386. height: var(--list-heiht);
  387. position: relative;
  388. padding-top: -20rpx;
  389. /* background: #4fef86; */
  390. }
  391. .list-scroll-wrap > .list-scroll {
  392. position: absolute;
  393. top: 0;
  394. left: 0;
  395. right: 0;
  396. bottom: 0;
  397. }
  398. .list {
  399. padding: 0 20rpx 20rpx 20rpx;
  400. position: relative;
  401. }
  402. .list-top {
  403. width: 710rpx;
  404. height: 70rpx;
  405. position: relative;
  406. overflow: visible;
  407. }
  408. .list .list-top-img {
  409. width: 710rpx;
  410. position: absolute;
  411. top: 0;
  412. left: 0;
  413. z-index: 1;
  414. transform: translateY(0);
  415. }
  416. .list .list-top-img-img {
  417. width: 100%;
  418. height: 100rpx;
  419. }
  420. .list .item {
  421. display: block;
  422. border-radius: 8px;
  423. background-color: #fff;
  424. box-shadow: 0 1px 10px rgba(0, 39, 52, 0.1);
  425. overflow: hidden;
  426. position: relative;
  427. z-index: 2;
  428. }
  429. .list .item + .item {
  430. margin-top: 10px;
  431. }
  432. .list .item .contet {
  433. padding: 10px;
  434. background: #fff;
  435. /* url('@/static/img/charging_station_item_background.png') no-repeat center */
  436. }
  437. .list .item .name {
  438. display: flex;
  439. font-weight: bold;
  440. position: relative;
  441. }
  442. .list .item .name > .txt {
  443. flex: 1;
  444. line-height: 1.5em;
  445. }
  446. .list .item .name > .firm-price {
  447. position: absolute;
  448. right: -20rpx;
  449. top: -20rpx;
  450. width: 200rpx;
  451. height: 52rpx;
  452. background: linear-gradient(132deg, #ff6464 0%, #ff3a3a 100%);
  453. border-radius: 0rpx 16rpx 0rpx 37rpx;
  454. text-align: center;
  455. line-height: 52rpx;
  456. color: #fff;
  457. }
  458. .list .item .name > .icon {
  459. display: flex;
  460. align-items: center;
  461. justify-content: center;
  462. width: 20px;
  463. height: 20px;
  464. border-radius: 4px;
  465. background: linear-gradient(to bottom, #2a67f0, #769ffc);
  466. margin-right: 10px;
  467. }
  468. .list .item .name > .icon image {
  469. display: block;
  470. width: 10px;
  471. }
  472. .list .item .parkade {
  473. display: flex;
  474. font-size: 12px;
  475. color: #aaa;
  476. margin-top: 15px;
  477. }
  478. .list .item .parkade > .txt {
  479. flex: 1;
  480. line-height: 1.5em;
  481. }
  482. .list .item .parkade > .icon {
  483. display: inline-flex;
  484. align-items: center;
  485. justify-content: center;
  486. width: 20px;
  487. height: 20px;
  488. background-color: #5be7ff;
  489. margin-right: 10px;
  490. }
  491. .list .item .parkade > .icon image {
  492. display: block;
  493. width: 10px;
  494. }
  495. .list .item .info {
  496. margin-top: 24rpx;
  497. width: 654rpx;
  498. height: 84rpx;
  499. background: linear-gradient(
  500. 90deg,
  501. rgba(170, 255, 235, 0.3) 0%,
  502. rgba(175, 247, 252, 0.2) 44%,
  503. rgba(139, 232, 252, 0) 100%
  504. );
  505. border-radius: 16rpx 16rpx 16rpx 16rpx;
  506. padding-left: 20rpx;
  507. }
  508. .list .item .info .charge {
  509. display: inline-flex;
  510. align-items: center;
  511. justify-content: center;
  512. }
  513. .list .item .info .charge > .icon {
  514. display: inline-flex;
  515. align-items: center;
  516. justify-content: center;
  517. width: 20px;
  518. height: 20px;
  519. color: #fff;
  520. font-size: 13px;
  521. border-radius: 4px;
  522. background: linear-gradient(to bottom, #4fef86, #00aa3a);
  523. }
  524. .list .item .info .charge > .icon.blue {
  525. background: linear-gradient(to bottom, #8eb1ff, #3071ff);
  526. }
  527. .list .item .info .charge > .value {
  528. margin-left: 5px;
  529. }
  530. .list .item .info .charge > .max {
  531. color: #aaa;
  532. font-size: 12px;
  533. }
  534. .list .item .info .charge > .max::before {
  535. content: "/";
  536. }
  537. .list .item .info .charge + .charge {
  538. margin-left: 30px;
  539. }
  540. .list .item .info .distance {
  541. display: flex;
  542. align-items: center;
  543. height: 22px;
  544. border: 1px solid #3eb6f8;
  545. border-radius: 100pc;
  546. font-size: 12px;
  547. color: #3eb6f8;
  548. padding-right: 7px;
  549. overflow: hidden;
  550. }
  551. .list .item .info .distance > .icon {
  552. display: inline-flex;
  553. align-items: center;
  554. justify-content: center;
  555. width: 20px;
  556. height: 20px;
  557. background-color: #3eb6f8;
  558. margin-right: 5px;
  559. }
  560. .list .item .info .distance > .icon image {
  561. display: block;
  562. width: 10px;
  563. }
  564. .list .item .price {
  565. display: flex;
  566. align-items: center;
  567. justify-content: space-between;
  568. background-color: #fff;
  569. height: 45px;
  570. font-size: 14px;
  571. padding: 0 10px;
  572. box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  573. }
  574. .normal-user-price {
  575. display: flex;
  576. align-items: center;
  577. position: relative;
  578. }
  579. .normal-user-price-label {
  580. width: 330rpx;
  581. height: 60rpx;
  582. background: #fff2ec;
  583. border-radius: 42rpx;
  584. }
  585. .normal-user-price .normal-user-price-icon {
  586. width: 136rpx;
  587. height: 60rpx;
  588. position: absolute;
  589. right: 0;
  590. }
  591. .normal-user-text {
  592. position: absolute;
  593. right: 14rpx;
  594. font-weight: bold;
  595. font-size: 28rpx;
  596. color: #ffffff;
  597. }
  598. .list .item .price .value {
  599. font-size: 20px;
  600. font-weight: bold;
  601. }
  602. .list .item .price .unit {
  603. margin-left: 6rpx;
  604. font-weight: bold;
  605. font-size: 12px;
  606. margin-left: 6rpx;
  607. }
  608. .card-bottom-text {
  609. width: 212rpx;
  610. height: 52rpx;
  611. background: url("@/static/img/firm-bg.png");
  612. background-size: cover;
  613. background-position: center;
  614. line-height: 52rpx;
  615. margin-left: 8rpx;
  616. }
  617. .card-bottom-text-minitext {
  618. margin-left: 110rpx;
  619. font-weight: bold;
  620. font-size: 28rpx;
  621. color: #ff5d50;
  622. }
  623. .operation-price-btn {
  624. margin-left: 10rpx;
  625. width: 140rpx;
  626. height: 40rpx;
  627. background: #ff6457;
  628. border-radius: 22rpx 22rpx 22rpx 22rpx;
  629. font-style: italic;
  630. text-align: center;
  631. line-height: 40rpx;
  632. font-weight: 400;
  633. font-size: 22rpx;
  634. color: #ffffff;
  635. }
  636. .ordinary-price {
  637. margin-left: 12rpx;
  638. font-size: 24rpx;
  639. color: #aaaaaa;
  640. text-decoration: line-through;
  641. }
  642. .ad-popup {
  643. height: 1000rpx;
  644. }
  645. .ad-swiper {
  646. height: 100%;
  647. }
  648. .ad-swiper-item {
  649. height: 700rpx;
  650. }
  651. .close-get {
  652. margin-left: 550rpx;
  653. width: 50rpx;
  654. height: 50rpx;
  655. border-radius: 50%;
  656. border: 2rpx solid #133a4f;
  657. color: #fff;
  658. font-size: 28rpx;
  659. font-weight: bold;
  660. text-align: center;
  661. line-height: 50rpx;
  662. }
  663. .ad-image {
  664. margin-top: 10rpx;
  665. width: 600rpx;
  666. border-radius: 16rpx;
  667. }