index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299
  1. <template>
  2. <view>
  3. <!-- 头部图片 -->
  4. <view class="banner">
  5. <img src="/static/img/banner1.jpg" alt="">
  6. </view>
  7. <!-- 选项列表 -->
  8. <view class="option-list">
  9. <view class="list-item" @click="getScanCode">
  10. <view class="icon iconfont" style="background-color:#59d96e;">
  11. &#xe61a;
  12. </view>
  13. <view class="text">
  14. 扫码充电
  15. </view>
  16. </view>
  17. <view class="list-item" @click="fastRecharge">
  18. <view class="icon iconfont" style="background-color:#4BD2C0;">
  19. &#xe629;
  20. </view>
  21. <view class="text">
  22. 快速充值
  23. </view>
  24. </view>
  25. <view class="list-item" @click="chargingRecord">
  26. <view class="icon iconfont" style="background-color: #6FA5FF;">
  27. &#xe625;
  28. </view>
  29. <view class="text">
  30. 充电记录
  31. </view>
  32. </view>
  33. <view class="list-item">
  34. <view class="icon iconfont" style="background-color: #9D9FFF;">
  35. &#xe622;
  36. </view>
  37. <view class="text">
  38. 附近站点
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 站点 -->
  43. <!-- <view class="station">
  44. <view class="img-box">
  45. <img src="/static/img/Frame 198 (1).png" alt="">
  46. </view>
  47. <view class="text">
  48. <view class="station-title">
  49. <text class="title-left">快充</text>
  50. <text class="title-right">荆沙大道救助站充电站</text>
  51. </view>
  52. <view class="station-price">
  53. <view class="price-left">1.25</view>
  54. <view class="price-right">
  55. 起 元/度
  56. </view>
  57. </view>
  58. <view class="park">
  59. <text class="park-p">p</text>
  60. <text class="park-text">2小时免费停车</text>
  61. </view>
  62. <view class="count">
  63. <view class="count-left">空闲10/总数10</view>
  64. <view class="count-right"><text class="iconfont">&#xe615;</text>10公里</view>
  65. </view>
  66. </view>
  67. </view> -->
  68. <!-- 定位 -->
  69. <view class="location-box">
  70. <view class="location">
  71. <view class="location-text">
  72. <view class="text-1">
  73. 定位中...
  74. </view>
  75. <view class="text-2">
  76. 授权定位后可查询附近充电站
  77. </view>
  78. <view class="text-3" @click="getPoint()">
  79. 重新定位
  80. </view>
  81. </view>
  82. <view class="img-box">
  83. <img src="/static/img/暂无网络信号-缺省页 1.png">
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 充电状态 -->
  88. <!-- <view class="state1 state">
  89. <view class="state-text">
  90. <view class="text-1">
  91. 排队中
  92. </view>
  93. <view class="text-2">
  94. 前方等待两位
  95. </view>
  96. <view class="text-3">
  97. 荆鹏软件园充电站/1号有序充电桩
  98. </view>
  99. </view>
  100. <view class="img-box">
  101. <img src="/static/img/等待中-缺省页.png">
  102. </view>
  103. </view> -->
  104. <!-- <view class="state2 state">
  105. <view class="state-text">
  106. <view class="text-1" style="color: green">
  107. 充电中
  108. </view>
  109. <view class="text-2">
  110. 前方等待两位
  111. </view>
  112. <view class="text-3">
  113. 荆鹏软件园充电站/1号有序充电桩
  114. </view>
  115. </view>
  116. <view class="img-box">
  117. <img src="/static/img/充电中-缺省页.png">
  118. </view>
  119. </view> -->
  120. <!-- <view class="state3 state">
  121. <view class="state-text">
  122. <view class="text-1" style="color: red;">
  123. 已充满
  124. </view>
  125. <view class="text-2" style="color: red;">
  126. 超出时间将收取占位费
  127. </view>
  128. <view class="text-3">
  129. 荆鹏软件园充电站/1号有序充电桩
  130. </view>
  131. </view>
  132. <view class="img-box">
  133. <img src="/static/img/已充满-缺省页.png">
  134. </view>
  135. </view> -->
  136. <!-- 充值活动 -->
  137. <view class=" top-up">
  138. <view class="top-up-title"><text class="line"></text>充值活动</view>
  139. <view class="img-box">
  140. <view class="img-1" @click="rechargeActivity">
  141. <img src="/static/img/瓷片区1.png" alt="">
  142. <view class="img-text">
  143. 充100送20
  144. <view class="img-text2">即充即赠 立享优惠</view>
  145. </view>
  146. </view>
  147. <view class="img-1">
  148. <img src="/static/img/瓷片区2.png" alt="">
  149. <view class="img-text" style="color: #FF7C00;">
  150. 邀请有礼
  151. <view class="img-text2 color">最高可得500元</view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. <!-- 新闻 -->
  157. <view class="news-title">
  158. <view class="news-title-left">
  159. <view class="line" style="margin-top:4px;"></view>新闻公告
  160. </view>
  161. <view class="more" @click="toNewsNotice">更多<view class="more-icon iconfont"> &#xe600;</view>
  162. </view>
  163. </view>
  164. <view class="news">
  165. <view class="news-content" @click="gotoUrl('pages/article/articleDetails?id=')">
  166. <view class="content-text">
  167. 日印计划联手开发低成本充电桩 推动新兴市场电动车发展
  168. <view class="news-time">05-01 09:00</view>
  169. </view>
  170. <view class="content-img">
  171. <img src="/static/img/11091323191.jpg" alt="">
  172. </view>
  173. </view>
  174. <view class="news-content">
  175. <view class="content-text">
  176. 我国新能源汽车市场腾飞在即,充换电何时能够不再“拖后腿”?
  177. <view class="news-time">05-01 09:00</view>
  178. </view>
  179. <view class="content-img">
  180. <img src="/static/img/103613441.jpg" alt="">
  181. </view>
  182. </view>
  183. <view class="news-content">
  184. <view class="content-text">
  185. 新疆建成首个充电桩实验室
  186. <view class="news-time">05-01 09:00</view>
  187. </view>
  188. <view class="content-img">
  189. <img src="/static/img/180023631.jpg" alt="">
  190. </view>
  191. </view>
  192. </view>
  193. <view class="bottom" v-if="newsList.length == recordsTotal">
  194. <view class="bot">
  195. <view class="bot-line"></view>
  196. <view class="bot-text">已经到底了</view>
  197. <view class="bot-line"></view>
  198. </view>
  199. </view>
  200. <!-- 导航栏 -->
  201. <view class="navigation">
  202. <!-- <view class="nav-items">
  203. <view class="nav-icon iconfont ">
  204. &#xe610;
  205. </view>
  206. <view class="nav-text">主页</view>
  207. </view>
  208. <view class="nav-items">
  209. <view class="nav-icon iconfont">&#xe622;</view>
  210. <view class="nav-text">找桩</view>
  211. </view>
  212. <view class="nav-items">
  213. <view class="nav-icon iconfont">&#xe627;</view>
  214. <view class="nav-text">我的</view>
  215. </view> -->
  216. <!-- 登录提示 -->
  217. <view class="login-prompt" v-if="userId.length == 0">
  218. 登录显示更多会员服务
  219. <text class="button" @click="toLogin">登录/注册</text>
  220. </view>
  221. <Tabbar :current="0"></Tabbar>
  222. </view>
  223. </view>
  224. </template>
  225. <script>
  226. import * as Api from '@/apis/index.js'
  227. import * as newsApi from '@/apis/news.js'
  228. import * as WxJsApi from '@/utils/wxJsApi.js'
  229. import MapLoader from '@/utils/AMap'
  230. import Tabbar from '@/components/Tabbar.vue'
  231. export default {
  232. components: {
  233. Tabbar
  234. },
  235. data() {
  236. return {
  237. activityList: [],
  238. userId: '',
  239. newsList: [],
  240. pageIndex: 1,
  241. recordsTotal: 0,
  242. longitude: '',
  243. latitude: '',
  244. message: '',
  245. }
  246. },
  247. onReachBottom() {
  248. if (this.newsList.length < this.recordsTotal) {
  249. this.myLoadmore();
  250. }
  251. },
  252. onReady() {
  253. if (this.carhelp.getPersonInfo().id != null) {
  254. this.userId = this.carhelp.getPersonInfo().id;
  255. }
  256. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  257. // console.log(res)
  258. }).catch(error => {
  259. console.log(res)
  260. })
  261. this.getPoint();
  262. this.getNewsList();
  263. this.getActivityInfoList();
  264. },
  265. methods: {
  266. toLogin() {
  267. uni.redirectTo({
  268. url: '/pages/login/login'
  269. })
  270. },
  271. toNewsNotice() {
  272. uni.navigateTo({
  273. url: '/pages/article/newsNotice'
  274. })
  275. },
  276. //微信扫二维码
  277. getScanCode() {
  278. if (this.userId != '') {
  279. WxJsApi.scanQRCode(1).then(res => {
  280. if(res) {
  281. Api.scanCode(res).then((response) => {
  282. }).catch(error => {
  283. uni.showToast({
  284. title: error,
  285. icon: "none"
  286. })
  287. })
  288. }
  289. }).catch(error => {
  290. })
  291. } else {
  292. uni.redirectTo({
  293. url: '/pages/login/login'
  294. })
  295. }
  296. },
  297. fastRecharge() {
  298. if (this.userId != '') {
  299. this.gotoUrl('pages/user/finance/recharge?id=' + this.userId)
  300. } else {
  301. uni.redirectTo({
  302. url: '/pages/login/login'
  303. })
  304. }
  305. },
  306. chargingRecord() {
  307. if (this.userId != '') {
  308. this.gotoUrl('pages/user/finance/rechargeList?id=' + this.userId)
  309. } else {
  310. uni.redirectTo({
  311. url: '/pages/login/login'
  312. })
  313. }
  314. },
  315. rechargeActivity() {
  316. if (this.userId != '') {
  317. this.gotoUrl('pages/user/finance/recharge?id=' + this.userId)
  318. } else {
  319. uni.redirectTo({
  320. url: '/pages/login/login'
  321. })
  322. }
  323. },
  324. getActivityInfoList() {
  325. },
  326. getPoint() {
  327. WxJsApi.getLocation().then((res) => {
  328. this.latitude = parseFloat(res.latitude);
  329. this.longitude = parseFloat(res.longitude);
  330. this.message = res.errMsg;
  331. if (res.errMsg != 'getLocation:ok') {
  332. uni.showToast({
  333. title: JSON.stringify(res)
  334. })
  335. }
  336. }).catch(error => {
  337. uni.showToast({
  338. title: JSON.stringify(error)
  339. })
  340. })
  341. },
  342. getNewsList(bl) {
  343. uni.showLoading({
  344. title: "加载中",
  345. mask: true,
  346. })
  347. if (bl) {
  348. this.newsList = [];
  349. this.pageIndex = 1;
  350. }
  351. newsApi.newsInfoList({
  352. pageIndex: 1,
  353. pageSize: 10
  354. }).then((res) => {
  355. uni.hideLoading()
  356. this.newsList = [
  357. ...this.newsList,
  358. ...res.data.data
  359. ];
  360. this.recordsTotal = res.data.recordsTotal
  361. }).catch(error => {
  362. uni.showToast({
  363. title: error,
  364. icon: "none"
  365. })
  366. })
  367. },
  368. myLoadmore() {
  369. this.pageIndex += 1;
  370. this.getNewsList()
  371. },
  372. }
  373. }
  374. </script>
  375. <style lang="scss" scoped>
  376. // 头部图片
  377. img {
  378. width: 100%;
  379. height: 100%;
  380. }
  381. .banner {
  382. width: 100%;
  383. height: 300px;
  384. }
  385. // 选项列表
  386. .option-list {
  387. padding-top: 18px;
  388. width: 343px;
  389. height: 100px;
  390. line-height: 20px;
  391. border-radius: 8px;
  392. text-align: center;
  393. background-color: #fff;
  394. position: absolute;
  395. top: 260px;
  396. left: 0;
  397. right: 0;
  398. margin: auto;
  399. display: flex;
  400. justify-content: space-around;
  401. .list-item {
  402. // 图标
  403. .icon {
  404. width: 40px;
  405. height: 40px;
  406. border-radius: 99px;
  407. line-height: 40px;
  408. font-size: 24px;
  409. text-align: center;
  410. margin: auto;
  411. color: #ffffff;
  412. }
  413. }
  414. }
  415. // 站点
  416. .station {
  417. // width: 343px;
  418. height: 120px;
  419. margin-top: 70px;
  420. padding-top: 20px;
  421. padding: 0 12px;
  422. position: relative;
  423. .img-box {
  424. width: 100%;
  425. height: 100%;
  426. border-radius: 8px;
  427. overflow: hidden;
  428. }
  429. img {
  430. width: 100%;
  431. height: 100%;
  432. }
  433. .text {
  434. position: absolute;
  435. top: 0;
  436. left: 20px;
  437. // 头部
  438. .station-title {
  439. display: flex;
  440. margin-top: 12px;
  441. .title-left {
  442. display: inline-block;
  443. height: 20px;
  444. width: 44px;
  445. // margin-left: 12px;
  446. line-height: 20px;
  447. border-radius: 50px;
  448. background-color: rgba(133, 140, 255, 100);
  449. color: rgba(255, 255, 255, 100);
  450. font-size: 12px;
  451. text-align: center;
  452. font-family: Arial;
  453. }
  454. .title-right {
  455. display: inline-block;
  456. margin-left: 4px;
  457. margin-top: 2px;
  458. width: 271px;
  459. height: 16px;
  460. line-height: 16px;
  461. color: rgba(16, 16, 16, 100);
  462. font-size: 16px;
  463. text-align: left;
  464. font-family: AlibabaPuHui-regular;
  465. }
  466. }
  467. // 价格
  468. .station-price {
  469. margin-top: 4px;
  470. display: flex;
  471. .price-left {
  472. width: 40px;
  473. height: 20px;
  474. color: rgba(255, 98, 0, 100);
  475. font-size: 20px;
  476. text-align: left;
  477. font-family: Roboto-medium;
  478. }
  479. .price-right {
  480. height: 20px;
  481. line-height: 20px;
  482. margin-left: 2px;
  483. margin-top: 3px;
  484. color: rgba(102, 102, 102, 100);
  485. font-size: 14px;
  486. text-align: left;
  487. font-family: AlibabaPuHui-regular;
  488. }
  489. }
  490. // park
  491. .park {
  492. margin-top: 4px;
  493. display: flex;
  494. .park-p {
  495. display: inline-block;
  496. width: 20px;
  497. height: 18px;
  498. line-height: 12px;
  499. text-align: center;
  500. background-color: rgba(125, 177, 255, 100);
  501. color: #fff;
  502. }
  503. .park-text {
  504. display: inline-block;
  505. width: 300px;
  506. height: 17px;
  507. color: rgba(102, 102, 102, 100);
  508. font-size: 12px;
  509. text-align: left;
  510. margin-left: 2px;
  511. margin-top: 2px;
  512. }
  513. }
  514. // 数量
  515. .count {
  516. margin-top: 12px !important;
  517. width: 96%;
  518. display: flex;
  519. justify-content: space-between;
  520. }
  521. }
  522. }
  523. //定位
  524. .location {
  525. background-color: #ffffff;
  526. height: 120px;
  527. display: flex;
  528. margin: 70px auto 0;
  529. border-radius: 8px;
  530. border: #F2F4F4 1px;
  531. .location-text {
  532. padding: 24px 28px;
  533. .text-1 {
  534. height: 16px;
  535. line-height: 16px;
  536. color: rgba(16, 16, 16, 100);
  537. font-size: 16px;
  538. text-align: left;
  539. }
  540. .text-2 {
  541. height: 17px;
  542. line-height: 17px;
  543. color: rgba(102, 102, 102, 100);
  544. font-size: 12px;
  545. text-align: left;
  546. margin-top: 4px;
  547. }
  548. .text-3 {
  549. width: 80px;
  550. height: 24px;
  551. border-radius: 50px;
  552. color: rgba(0, 185, 98, 100);
  553. font-size: 12px;
  554. text-align: center;
  555. font-family: Microsoft Yahei;
  556. border: 1px solid rgba(0, 185, 98, 100);
  557. margin-top: 11px;
  558. }
  559. }
  560. .img-box {
  561. width: 120px;
  562. height: 120px;
  563. float: right;
  564. }
  565. }
  566. .state{
  567. // width: 343px;
  568. width: 91.4%;
  569. background-color: #ffffff;
  570. height: 120px;
  571. display: flex;
  572. margin: 70px auto 0;
  573. border-radius: 8px;
  574. border: #F2F4F4 1px;
  575. .state-text{
  576. width: 61.8%;
  577. padding: 24px 0 0 28px;
  578. .text-1 {
  579. height: 16px;
  580. line-height: 16px;
  581. color: blueviolet;
  582. font-size: 16px;
  583. text-align: left;
  584. }
  585. .text-2 {
  586. height: 17px;
  587. line-height: 17px;
  588. color: #101010;
  589. text-align: left;
  590. margin-top: 12px;
  591. }
  592. .text-3 {
  593. font-size: 12px;
  594. text-align: center;
  595. margin-top: 6px;
  596. color: #999999;
  597. }
  598. }
  599. .img-box {
  600. width: 120px;
  601. height: 120px;
  602. float: right;
  603. }
  604. }
  605. //充值
  606. .top-up {
  607. margin-left: 16px;
  608. margin-top: 17px;
  609. .top-up-title {
  610. color: rgba(16, 16, 16, 100);
  611. font-size: 16px;
  612. }
  613. .img-box {
  614. margin-top: 12px;
  615. width: 345px;
  616. height: 146px;
  617. display: flex;
  618. justify-content: space-between;
  619. .img-1 {
  620. width: 166px;
  621. height: 146px;
  622. position: relative;
  623. .img-text {
  624. position: absolute;
  625. top: 12px;
  626. left: 12px;
  627. height: 33px;
  628. color: #ff4444;
  629. font-size: 24px;
  630. text-align: left;
  631. margin-left: 12px;
  632. .img-text2 {
  633. font-size: 14px
  634. }
  635. }
  636. }
  637. img {
  638. width: 100%;
  639. height: 100%;
  640. }
  641. }
  642. }
  643. // 小竖线
  644. .line {
  645. display: inline-block;
  646. width: 3px;
  647. height: 12px;
  648. margin-right: 7px;
  649. background-color: rgba(0, 145, 67, 100);
  650. }
  651. // 新闻公告
  652. .news-title {
  653. padding: 0 16px;
  654. margin-top: 12px;
  655. color: rgba(16, 16, 16, 100);
  656. font-size: 16px;
  657. display: flex;
  658. justify-content: space-between;
  659. background-color: #F2F4F4;
  660. .news-title-left {
  661. display: flex;
  662. }
  663. .more {
  664. font-size: 14px;
  665. color: #777777;
  666. display: flex;
  667. line-height: 20px;
  668. .more-icon {
  669. font-size: 24px
  670. }
  671. }
  672. }
  673. .news {
  674. background-color: #fff;
  675. margin: 12px 16px 20px;
  676. border-radius: 8px;
  677. .news-content {
  678. display: flex;
  679. justify-content: space-between;
  680. padding: 12px;
  681. .content-text {
  682. width: 211px;
  683. height: 42px;
  684. line-height: 21px;
  685. color: #101010;
  686. text-align: left;
  687. font-size: 14px
  688. }
  689. ;
  690. .content-img {
  691. width: 100px;
  692. height: 80px;
  693. background-color: #777777;
  694. border-radius: 4px;
  695. overflow: hidden;
  696. img {
  697. width: 100%;
  698. height: 100%;
  699. }
  700. }
  701. .news-time {
  702. margin-top: 12px;
  703. color: #999999;
  704. width: 80px;
  705. height: 20px;
  706. font-size: 14px;
  707. }
  708. }
  709. }
  710. .bottom {
  711. width: 100%;
  712. height: 150px;
  713. .bot {
  714. width: 100%;
  715. padding-left: 66px;
  716. display: flex;
  717. .bot-line {
  718. margin-top: 20px;
  719. width: 80px;
  720. height: 0px;
  721. border: 1px solid rgba(207, 210, 213, 100);
  722. }
  723. .bot-text {
  724. width: 60px;
  725. height: 17px;
  726. margin-top: 13px;
  727. margin-left: 12px;
  728. margin-right: 12px;
  729. font-size: 12px;
  730. text-align: center;
  731. color: rgba(182, 189, 195, 100);
  732. }
  733. }
  734. }
  735. // 导航栏
  736. .navigation {
  737. width: 100%;
  738. // height: 40px;
  739. padding: 10px 0;
  740. background-color: #fff;
  741. position: fixed;
  742. bottom: 0;
  743. left: 0;
  744. display: flex;
  745. justify-content: space-around;
  746. text-align: center;
  747. color: #999999;
  748. .nav-icon {
  749. width: 54px;
  750. font-size: 24px
  751. }
  752. .nav-text {
  753. font-size: 14px;
  754. }
  755. }
  756. img {
  757. width: 100%;
  758. height: 100%;
  759. }
  760. .banner {
  761. width: 100%;
  762. height: 300px;
  763. }
  764. // 选项列表
  765. .option-list {
  766. padding-top: 18px;
  767. width: 343px;
  768. height: 100px;
  769. line-height: 20px;
  770. border-radius: 8px;
  771. text-align: center;
  772. background-color: #fff;
  773. position: absolute;
  774. top: 260px;
  775. left: 0;
  776. right: 0;
  777. margin: auto;
  778. display: flex;
  779. justify-content: space-around;
  780. .list-item {
  781. // 图标
  782. .icon {
  783. width: 40px;
  784. height: 40px;
  785. border-radius: 99px;
  786. line-height: 40px;
  787. font-size: 24px;
  788. text-align: center;
  789. margin: auto;
  790. color: #ffffff;
  791. }
  792. }
  793. }
  794. // 站点
  795. .station {
  796. // width: 343px;
  797. height: 120px;
  798. margin-top: 70px;
  799. padding-top: 20px;
  800. padding: 0 12px;
  801. position: relative;
  802. .img-box {
  803. width: 100%;
  804. height: 100%;
  805. border-radius: 8px;
  806. overflow: hidden;
  807. }
  808. img {
  809. width: 100%;
  810. height: 100%;
  811. }
  812. .text {
  813. position: absolute;
  814. top: 0;
  815. left: 20px;
  816. // 头部
  817. .station-title {
  818. display: flex;
  819. margin-top: 12px;
  820. .title-left {
  821. display: inline-block;
  822. height: 20px;
  823. width: 44px;
  824. // margin-left: 12px;
  825. line-height: 20px;
  826. border-radius: 50px;
  827. background-color: rgba(133, 140, 255, 100);
  828. color: rgba(255, 255, 255, 100);
  829. font-size: 12px;
  830. text-align: center;
  831. font-family: Arial;
  832. }
  833. .title-right {
  834. display: inline-block;
  835. margin-left: 4px;
  836. margin-top: 2px;
  837. width: 271px;
  838. height: 16px;
  839. line-height: 16px;
  840. color: rgba(16, 16, 16, 100);
  841. font-size: 16px;
  842. text-align: left;
  843. font-family: AlibabaPuHui-regular;
  844. }
  845. }
  846. // 价格
  847. .station-price {
  848. margin-top: 4px;
  849. display: flex;
  850. .price-left {
  851. width: 40px;
  852. height: 20px;
  853. color: rgba(255, 98, 0, 100);
  854. font-size: 20px;
  855. text-align: left;
  856. font-family: Roboto-medium;
  857. }
  858. .price-right {
  859. height: 20px;
  860. line-height: 20px;
  861. margin-left: 2px;
  862. margin-top: 3px;
  863. color: rgba(102, 102, 102, 100);
  864. font-size: 14px;
  865. text-align: left;
  866. font-family: AlibabaPuHui-regular;
  867. }
  868. }
  869. // park
  870. .park {
  871. margin-top: 4px;
  872. display: flex;
  873. .park-p {
  874. display: inline-block;
  875. width: 20px;
  876. height: 18px;
  877. line-height: 12px;
  878. text-align: center;
  879. background-color: rgba(125, 177, 255, 100);
  880. color: #fff;
  881. }
  882. .park-text {
  883. display: inline-block;
  884. width: 300px;
  885. height: 17px;
  886. color: rgba(102, 102, 102, 100);
  887. font-size: 12px;
  888. text-align: left;
  889. margin-left: 2px;
  890. margin-top: 2px;
  891. }
  892. }
  893. // 数量
  894. .count {
  895. margin-top: 8px;
  896. width: 96%;
  897. display: flex;
  898. justify-content: space-between;
  899. }
  900. }
  901. }
  902. //定位
  903. .location {
  904. width: 343px;
  905. background-color: #ffffff;
  906. height: 120px;
  907. display: flex;
  908. margin: 70px auto 0;
  909. border-radius: 8px;
  910. border: #F2F4F4 1px;
  911. .location-text {
  912. padding: 24px 28px;
  913. .text-1 {
  914. height: 16px;
  915. color: rgba(16, 16, 16, 100);
  916. font-size: 16px;
  917. text-align: left;
  918. }
  919. .text-2 {
  920. height: 17px;
  921. color: rgba(102, 102, 102, 100);
  922. font-size: 12px;
  923. text-align: left;
  924. margin-top: 4px;
  925. }
  926. .text-3 {
  927. width: 80px;
  928. height: 24px;
  929. border-radius: 50px;
  930. color: rgba(0, 185, 98, 100);
  931. font-size: 12px;
  932. text-align: center;
  933. font-family: Microsoft Yahei;
  934. border: 1px solid rgba(0, 185, 98, 100);
  935. margin-top: 11px;
  936. }
  937. }
  938. .img-box {
  939. width: 120px;
  940. height: 120px;
  941. float: right;
  942. }
  943. }
  944. // 状态
  945. .state{
  946. width: 91.4%;
  947. background-color: #ffffff;
  948. height: 120px;
  949. display: flex;
  950. margin: 70px auto 0;
  951. border-radius: 8px;
  952. border: #F2F4F4 1px;
  953. .img-box {
  954. width: 120px;
  955. height: 120px;
  956. float: right;
  957. }
  958. }
  959. //充值
  960. .top-up {
  961. margin-left: 16px;
  962. margin-top: 17px;
  963. .top-up-title {
  964. color: rgba(16, 16, 16, 100);
  965. font-size: 16px;
  966. }
  967. .img-box {
  968. margin-top: 12px;
  969. width: 345px;
  970. height: 146px;
  971. display: flex;
  972. justify-content: space-between;
  973. .img-1 {
  974. width: 166px;
  975. height: 146px;
  976. position: relative;
  977. .img-text {
  978. position: absolute;
  979. top: 0;
  980. left: 0;
  981. height: 33px;
  982. color: #ff4444;
  983. font-size: 24px;
  984. text-align: left;
  985. margin-left: 12px;
  986. .img-text2 {
  987. font-size: 12px
  988. }
  989. }
  990. }
  991. img {
  992. width: 100%;
  993. height: 100%;
  994. }
  995. }
  996. }
  997. // 小竖线
  998. .line {
  999. display: inline-block;
  1000. width: 3px;
  1001. height: 12px;
  1002. margin-right: 7px;
  1003. background-color: rgba(0, 145, 67, 100);
  1004. }
  1005. // 新闻公告
  1006. .news-title {
  1007. padding: 0 16px;
  1008. margin-top: 12px;
  1009. color: rgba(16, 16, 16, 100);
  1010. font-size: 16px;
  1011. display: flex;
  1012. justify-content: space-between;
  1013. background-color: #F2F4F4;
  1014. .news-title-left {
  1015. display: flex;
  1016. }
  1017. .more {
  1018. font-size: 14px;
  1019. color: #777777;
  1020. display: flex;
  1021. line-height: 20px;
  1022. .more-icon {
  1023. font-size: 24px
  1024. }
  1025. }
  1026. }
  1027. .news {
  1028. background-color: #fff;
  1029. margin: 17px 16px 0;
  1030. .news-content {
  1031. display: flex;
  1032. justify-content: space-between;
  1033. padding: 12px;
  1034. .content-text {
  1035. width: 211px;
  1036. height: 42px;
  1037. line-height: 21px;
  1038. color: #101010;
  1039. text-align: left;
  1040. font-size: 14px
  1041. }
  1042. ;
  1043. .content-img {
  1044. width: 100px;
  1045. height: 80px;
  1046. border-radius: 4px;
  1047. img {
  1048. width: 100%;
  1049. height: 100%;
  1050. }
  1051. }
  1052. .news-time {
  1053. margin-top: 12px;
  1054. color: #999999;
  1055. width: 80px;
  1056. height: 20px;
  1057. font-size: 14px;
  1058. }
  1059. }
  1060. }
  1061. .bottom {
  1062. width: 100%;
  1063. height: 150px;
  1064. .bot {
  1065. width: 100%;
  1066. padding-left: 66px;
  1067. display: flex;
  1068. .bot-line {
  1069. margin-top: 20px;
  1070. width: 80px;
  1071. height: 0px;
  1072. border: 1px solid rgba(207, 210, 213, 100);
  1073. }
  1074. .bot-text {
  1075. width: 60px;
  1076. height: 17px;
  1077. margin-top: 13px;
  1078. margin-left: 12px;
  1079. margin-right: 12px;
  1080. font-size: 12px;
  1081. text-align: center;
  1082. }
  1083. }
  1084. }
  1085. // 导航栏
  1086. .navigation {
  1087. width: 100%;
  1088. height: 60px;
  1089. padding: 10px 0;
  1090. background-color: #fff;
  1091. position: fixed;
  1092. bottom: 0;
  1093. left: 0;
  1094. display: flex;
  1095. justify-content: space-around;
  1096. text-align: center;
  1097. color: #999999;
  1098. .nav-icon {
  1099. width: 54px;
  1100. font-size: 24px
  1101. }
  1102. .nav-text {
  1103. font-size: 14px;
  1104. }
  1105. }
  1106. // 登录提示
  1107. .login-prompt {
  1108. width: 91.4%;
  1109. height: 40px;
  1110. line-height: 40px;
  1111. border-radius: 50px;
  1112. text-align: left;
  1113. padding-left: 16px;
  1114. padding-right: 4px;
  1115. background-color: rgba(0, 0, 0, 0.6);
  1116. position: fixed;
  1117. bottom: 75px;
  1118. color: #ffffff;
  1119. .button {
  1120. width: 88px;
  1121. height: 32px;
  1122. line-height: 32px;
  1123. border-radius: 50px;
  1124. background-color: rgba(0, 185, 98, 100);
  1125. text-align: center;
  1126. float: right;
  1127. margin-top: 4px;
  1128. }
  1129. }
  1130. </style>