index.vue 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274
  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="scanCode">
  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. scanCode() {
  278. if (this.userId != '') {
  279. WxJsApi.scanQRCode(1).then(res => {
  280. }).catch(error => {
  281. })
  282. } else {
  283. uni.redirectTo({
  284. url: '/pages/login/login'
  285. })
  286. }
  287. },
  288. fastRecharge() {
  289. if (this.userId != '') {
  290. this.gotoUrl('pages/user/finance/recharge?id=' + this.userId)
  291. } else {
  292. uni.redirectTo({
  293. url: '/pages/login/login'
  294. })
  295. }
  296. },
  297. chargingRecord() {
  298. if (this.userId != '') {
  299. this.gotoUrl('pages/user/finance/rechargeList?id=' + this.userId)
  300. } else {
  301. uni.redirectTo({
  302. url: '/pages/login/login'
  303. })
  304. }
  305. },
  306. rechargeActivity() {
  307. if (this.userId != '') {
  308. this.gotoUrl('pages/user/finance/recharge?id=' + this.userId)
  309. } else {
  310. uni.redirectTo({
  311. url: '/pages/login/login'
  312. })
  313. }
  314. },
  315. getActivityInfoList() {
  316. },
  317. getPoint() {
  318. WxJsApi.getLocation().then((res) => {
  319. this.latitude = parseFloat(res.latitude);
  320. this.longitude = parseFloat(res.longitude);
  321. this.message = res.errMsg;
  322. if (res.errMsg != 'getLocation:ok') {
  323. uni.showToast({
  324. title: JSON.stringify(res)
  325. })
  326. }
  327. }).catch(error => {
  328. uni.showToast({
  329. title: JSON.stringify(error)
  330. })
  331. })
  332. },
  333. getNewsList(bl) {
  334. uni.showLoading({
  335. title: "加载中",
  336. mask: true,
  337. })
  338. if (bl) {
  339. this.newsList = [];
  340. this.pageIndex = 1;
  341. }
  342. uni.hideLoading();
  343. },
  344. myLoadmore() {
  345. this.pageIndex += 1;
  346. this.getNewsList()
  347. },
  348. }
  349. }
  350. </script>
  351. <style lang="scss" scoped>
  352. // 头部图片
  353. img {
  354. width: 100%;
  355. height: 100%;
  356. }
  357. .banner {
  358. width: 100%;
  359. height: 300px;
  360. }
  361. // 选项列表
  362. .option-list {
  363. padding-top: 18px;
  364. width: 343px;
  365. height: 100px;
  366. line-height: 20px;
  367. border-radius: 8px;
  368. text-align: center;
  369. background-color: #fff;
  370. position: absolute;
  371. top: 260px;
  372. left: 0;
  373. right: 0;
  374. margin: auto;
  375. display: flex;
  376. justify-content: space-around;
  377. .list-item {
  378. // 图标
  379. .icon {
  380. width: 40px;
  381. height: 40px;
  382. border-radius: 99px;
  383. line-height: 40px;
  384. font-size: 24px;
  385. text-align: center;
  386. margin: auto;
  387. color: #ffffff;
  388. }
  389. }
  390. }
  391. // 站点
  392. .station {
  393. // width: 343px;
  394. height: 120px;
  395. margin-top: 70px;
  396. padding-top: 20px;
  397. padding: 0 12px;
  398. position: relative;
  399. .img-box {
  400. width: 100%;
  401. height: 100%;
  402. border-radius: 8px;
  403. overflow: hidden;
  404. }
  405. img {
  406. width: 100%;
  407. height: 100%;
  408. }
  409. .text {
  410. position: absolute;
  411. top: 0;
  412. left: 20px;
  413. // 头部
  414. .station-title {
  415. display: flex;
  416. margin-top: 12px;
  417. .title-left {
  418. display: inline-block;
  419. height: 20px;
  420. width: 44px;
  421. // margin-left: 12px;
  422. line-height: 20px;
  423. border-radius: 50px;
  424. background-color: rgba(133, 140, 255, 100);
  425. color: rgba(255, 255, 255, 100);
  426. font-size: 12px;
  427. text-align: center;
  428. font-family: Arial;
  429. }
  430. .title-right {
  431. display: inline-block;
  432. margin-left: 4px;
  433. margin-top: 2px;
  434. width: 271px;
  435. height: 16px;
  436. line-height: 16px;
  437. color: rgba(16, 16, 16, 100);
  438. font-size: 16px;
  439. text-align: left;
  440. font-family: AlibabaPuHui-regular;
  441. }
  442. }
  443. // 价格
  444. .station-price {
  445. margin-top: 4px;
  446. display: flex;
  447. .price-left {
  448. width: 40px;
  449. height: 20px;
  450. color: rgba(255, 98, 0, 100);
  451. font-size: 20px;
  452. text-align: left;
  453. font-family: Roboto-medium;
  454. }
  455. .price-right {
  456. height: 20px;
  457. line-height: 20px;
  458. margin-left: 2px;
  459. margin-top: 3px;
  460. color: rgba(102, 102, 102, 100);
  461. font-size: 14px;
  462. text-align: left;
  463. font-family: AlibabaPuHui-regular;
  464. }
  465. }
  466. // park
  467. .park {
  468. margin-top: 4px;
  469. display: flex;
  470. .park-p {
  471. display: inline-block;
  472. width: 20px;
  473. height: 18px;
  474. line-height: 12px;
  475. text-align: center;
  476. background-color: rgba(125, 177, 255, 100);
  477. color: #fff;
  478. }
  479. .park-text {
  480. display: inline-block;
  481. width: 300px;
  482. height: 17px;
  483. color: rgba(102, 102, 102, 100);
  484. font-size: 12px;
  485. text-align: left;
  486. margin-left: 2px;
  487. margin-top: 2px;
  488. }
  489. }
  490. // 数量
  491. .count {
  492. margin-top: 12px !important;
  493. width: 96%;
  494. display: flex;
  495. justify-content: space-between;
  496. }
  497. }
  498. }
  499. //定位
  500. .location {
  501. background-color: #ffffff;
  502. height: 120px;
  503. display: flex;
  504. margin: 70px auto 0;
  505. border-radius: 8px;
  506. border: #F2F4F4 1px;
  507. .location-text {
  508. padding: 24px 28px;
  509. .text-1 {
  510. height: 16px;
  511. line-height: 16px;
  512. color: rgba(16, 16, 16, 100);
  513. font-size: 16px;
  514. text-align: left;
  515. }
  516. .text-2 {
  517. height: 17px;
  518. line-height: 17px;
  519. color: rgba(102, 102, 102, 100);
  520. font-size: 12px;
  521. text-align: left;
  522. margin-top: 4px;
  523. }
  524. .text-3 {
  525. width: 80px;
  526. height: 24px;
  527. border-radius: 50px;
  528. color: rgba(0, 185, 98, 100);
  529. font-size: 12px;
  530. text-align: center;
  531. font-family: Microsoft Yahei;
  532. border: 1px solid rgba(0, 185, 98, 100);
  533. margin-top: 11px;
  534. }
  535. }
  536. .img-box {
  537. width: 120px;
  538. height: 120px;
  539. float: right;
  540. }
  541. }
  542. .state{
  543. // width: 343px;
  544. width: 91.4%;
  545. background-color: #ffffff;
  546. height: 120px;
  547. display: flex;
  548. margin: 70px auto 0;
  549. border-radius: 8px;
  550. border: #F2F4F4 1px;
  551. .state-text{
  552. width: 61.8%;
  553. padding: 24px 0 0 28px;
  554. .text-1 {
  555. height: 16px;
  556. line-height: 16px;
  557. color: blueviolet;
  558. font-size: 16px;
  559. text-align: left;
  560. }
  561. .text-2 {
  562. height: 17px;
  563. line-height: 17px;
  564. color: #101010;
  565. text-align: left;
  566. margin-top: 12px;
  567. }
  568. .text-3 {
  569. font-size: 12px;
  570. text-align: center;
  571. margin-top: 6px;
  572. color: #999999;
  573. }
  574. }
  575. .img-box {
  576. width: 120px;
  577. height: 120px;
  578. float: right;
  579. }
  580. }
  581. //充值
  582. .top-up {
  583. margin-left: 16px;
  584. margin-top: 17px;
  585. .top-up-title {
  586. color: rgba(16, 16, 16, 100);
  587. font-size: 16px;
  588. }
  589. .img-box {
  590. margin-top: 12px;
  591. width: 345px;
  592. height: 146px;
  593. display: flex;
  594. justify-content: space-between;
  595. .img-1 {
  596. width: 166px;
  597. height: 146px;
  598. position: relative;
  599. .img-text {
  600. position: absolute;
  601. top: 12px;
  602. left: 12px;
  603. height: 33px;
  604. color: #ff4444;
  605. font-size: 24px;
  606. text-align: left;
  607. margin-left: 12px;
  608. .img-text2 {
  609. font-size: 14px
  610. }
  611. }
  612. }
  613. img {
  614. width: 100%;
  615. height: 100%;
  616. }
  617. }
  618. }
  619. // 小竖线
  620. .line {
  621. display: inline-block;
  622. width: 3px;
  623. height: 12px;
  624. margin-right: 7px;
  625. background-color: rgba(0, 145, 67, 100);
  626. }
  627. // 新闻公告
  628. .news-title {
  629. padding: 0 16px;
  630. margin-top: 12px;
  631. color: rgba(16, 16, 16, 100);
  632. font-size: 16px;
  633. display: flex;
  634. justify-content: space-between;
  635. background-color: #F2F4F4;
  636. .news-title-left {
  637. display: flex;
  638. }
  639. .more {
  640. font-size: 14px;
  641. color: #777777;
  642. display: flex;
  643. line-height: 20px;
  644. .more-icon {
  645. font-size: 24px
  646. }
  647. }
  648. }
  649. .news {
  650. background-color: #fff;
  651. margin: 12px 16px 20px;
  652. border-radius: 8px;
  653. .news-content {
  654. display: flex;
  655. justify-content: space-between;
  656. padding: 12px;
  657. .content-text {
  658. width: 211px;
  659. height: 42px;
  660. line-height: 21px;
  661. color: #101010;
  662. text-align: left;
  663. font-size: 14px
  664. }
  665. ;
  666. .content-img {
  667. width: 100px;
  668. height: 80px;
  669. background-color: #777777;
  670. border-radius: 4px;
  671. overflow: hidden;
  672. img {
  673. width: 100%;
  674. height: 100%;
  675. }
  676. }
  677. .news-time {
  678. margin-top: 12px;
  679. color: #999999;
  680. width: 80px;
  681. height: 20px;
  682. font-size: 14px;
  683. }
  684. }
  685. }
  686. .bottom {
  687. width: 100%;
  688. height: 150px;
  689. .bot {
  690. width: 100%;
  691. padding-left: 66px;
  692. display: flex;
  693. .bot-line {
  694. margin-top: 20px;
  695. width: 80px;
  696. height: 0px;
  697. border: 1px solid rgba(207, 210, 213, 100);
  698. }
  699. .bot-text {
  700. width: 60px;
  701. height: 17px;
  702. margin-top: 13px;
  703. margin-left: 12px;
  704. margin-right: 12px;
  705. font-size: 12px;
  706. text-align: center;
  707. color: rgba(182, 189, 195, 100);
  708. }
  709. }
  710. }
  711. // 导航栏
  712. .navigation {
  713. width: 100%;
  714. // height: 40px;
  715. padding: 10px 0;
  716. background-color: #fff;
  717. position: fixed;
  718. bottom: 0;
  719. left: 0;
  720. display: flex;
  721. justify-content: space-around;
  722. text-align: center;
  723. color: #999999;
  724. .nav-icon {
  725. width: 54px;
  726. font-size: 24px
  727. }
  728. .nav-text {
  729. font-size: 14px;
  730. }
  731. }
  732. img {
  733. width: 100%;
  734. height: 100%;
  735. }
  736. .banner {
  737. width: 100%;
  738. height: 300px;
  739. }
  740. // 选项列表
  741. .option-list {
  742. padding-top: 18px;
  743. width: 343px;
  744. height: 100px;
  745. line-height: 20px;
  746. border-radius: 8px;
  747. text-align: center;
  748. background-color: #fff;
  749. position: absolute;
  750. top: 260px;
  751. left: 0;
  752. right: 0;
  753. margin: auto;
  754. display: flex;
  755. justify-content: space-around;
  756. .list-item {
  757. // 图标
  758. .icon {
  759. width: 40px;
  760. height: 40px;
  761. border-radius: 99px;
  762. line-height: 40px;
  763. font-size: 24px;
  764. text-align: center;
  765. margin: auto;
  766. color: #ffffff;
  767. }
  768. }
  769. }
  770. // 站点
  771. .station {
  772. // width: 343px;
  773. height: 120px;
  774. margin-top: 70px;
  775. padding-top: 20px;
  776. padding: 0 12px;
  777. position: relative;
  778. .img-box {
  779. width: 100%;
  780. height: 100%;
  781. border-radius: 8px;
  782. overflow: hidden;
  783. }
  784. img {
  785. width: 100%;
  786. height: 100%;
  787. }
  788. .text {
  789. position: absolute;
  790. top: 0;
  791. left: 20px;
  792. // 头部
  793. .station-title {
  794. display: flex;
  795. margin-top: 12px;
  796. .title-left {
  797. display: inline-block;
  798. height: 20px;
  799. width: 44px;
  800. // margin-left: 12px;
  801. line-height: 20px;
  802. border-radius: 50px;
  803. background-color: rgba(133, 140, 255, 100);
  804. color: rgba(255, 255, 255, 100);
  805. font-size: 12px;
  806. text-align: center;
  807. font-family: Arial;
  808. }
  809. .title-right {
  810. display: inline-block;
  811. margin-left: 4px;
  812. margin-top: 2px;
  813. width: 271px;
  814. height: 16px;
  815. line-height: 16px;
  816. color: rgba(16, 16, 16, 100);
  817. font-size: 16px;
  818. text-align: left;
  819. font-family: AlibabaPuHui-regular;
  820. }
  821. }
  822. // 价格
  823. .station-price {
  824. margin-top: 4px;
  825. display: flex;
  826. .price-left {
  827. width: 40px;
  828. height: 20px;
  829. color: rgba(255, 98, 0, 100);
  830. font-size: 20px;
  831. text-align: left;
  832. font-family: Roboto-medium;
  833. }
  834. .price-right {
  835. height: 20px;
  836. line-height: 20px;
  837. margin-left: 2px;
  838. margin-top: 3px;
  839. color: rgba(102, 102, 102, 100);
  840. font-size: 14px;
  841. text-align: left;
  842. font-family: AlibabaPuHui-regular;
  843. }
  844. }
  845. // park
  846. .park {
  847. margin-top: 4px;
  848. display: flex;
  849. .park-p {
  850. display: inline-block;
  851. width: 20px;
  852. height: 18px;
  853. line-height: 12px;
  854. text-align: center;
  855. background-color: rgba(125, 177, 255, 100);
  856. color: #fff;
  857. }
  858. .park-text {
  859. display: inline-block;
  860. width: 300px;
  861. height: 17px;
  862. color: rgba(102, 102, 102, 100);
  863. font-size: 12px;
  864. text-align: left;
  865. margin-left: 2px;
  866. margin-top: 2px;
  867. }
  868. }
  869. // 数量
  870. .count {
  871. margin-top: 8px;
  872. width: 96%;
  873. display: flex;
  874. justify-content: space-between;
  875. }
  876. }
  877. }
  878. //定位
  879. .location {
  880. width: 343px;
  881. background-color: #ffffff;
  882. height: 120px;
  883. display: flex;
  884. margin: 70px auto 0;
  885. border-radius: 8px;
  886. border: #F2F4F4 1px;
  887. .location-text {
  888. padding: 24px 28px;
  889. .text-1 {
  890. height: 16px;
  891. color: rgba(16, 16, 16, 100);
  892. font-size: 16px;
  893. text-align: left;
  894. }
  895. .text-2 {
  896. height: 17px;
  897. color: rgba(102, 102, 102, 100);
  898. font-size: 12px;
  899. text-align: left;
  900. margin-top: 4px;
  901. }
  902. .text-3 {
  903. width: 80px;
  904. height: 24px;
  905. border-radius: 50px;
  906. color: rgba(0, 185, 98, 100);
  907. font-size: 12px;
  908. text-align: center;
  909. font-family: Microsoft Yahei;
  910. border: 1px solid rgba(0, 185, 98, 100);
  911. margin-top: 11px;
  912. }
  913. }
  914. .img-box {
  915. width: 120px;
  916. height: 120px;
  917. float: right;
  918. }
  919. }
  920. // 状态
  921. .state{
  922. width: 91.4%;
  923. background-color: #ffffff;
  924. height: 120px;
  925. display: flex;
  926. margin: 70px auto 0;
  927. border-radius: 8px;
  928. border: #F2F4F4 1px;
  929. .img-box {
  930. width: 120px;
  931. height: 120px;
  932. float: right;
  933. }
  934. }
  935. //充值
  936. .top-up {
  937. margin-left: 16px;
  938. margin-top: 17px;
  939. .top-up-title {
  940. color: rgba(16, 16, 16, 100);
  941. font-size: 16px;
  942. }
  943. .img-box {
  944. margin-top: 12px;
  945. width: 345px;
  946. height: 146px;
  947. display: flex;
  948. justify-content: space-between;
  949. .img-1 {
  950. width: 166px;
  951. height: 146px;
  952. position: relative;
  953. .img-text {
  954. position: absolute;
  955. top: 0;
  956. left: 0;
  957. height: 33px;
  958. color: #ff4444;
  959. font-size: 24px;
  960. text-align: left;
  961. margin-left: 12px;
  962. .img-text2 {
  963. font-size: 12px
  964. }
  965. }
  966. }
  967. img {
  968. width: 100%;
  969. height: 100%;
  970. }
  971. }
  972. }
  973. // 小竖线
  974. .line {
  975. display: inline-block;
  976. width: 3px;
  977. height: 12px;
  978. margin-right: 7px;
  979. background-color: rgba(0, 145, 67, 100);
  980. }
  981. // 新闻公告
  982. .news-title {
  983. padding: 0 16px;
  984. margin-top: 12px;
  985. color: rgba(16, 16, 16, 100);
  986. font-size: 16px;
  987. display: flex;
  988. justify-content: space-between;
  989. background-color: #F2F4F4;
  990. .news-title-left {
  991. display: flex;
  992. }
  993. .more {
  994. font-size: 14px;
  995. color: #777777;
  996. display: flex;
  997. line-height: 20px;
  998. .more-icon {
  999. font-size: 24px
  1000. }
  1001. }
  1002. }
  1003. .news {
  1004. background-color: #fff;
  1005. margin: 17px 16px 0;
  1006. .news-content {
  1007. display: flex;
  1008. justify-content: space-between;
  1009. padding: 12px;
  1010. .content-text {
  1011. width: 211px;
  1012. height: 42px;
  1013. line-height: 21px;
  1014. color: #101010;
  1015. text-align: left;
  1016. font-size: 14px
  1017. }
  1018. ;
  1019. .content-img {
  1020. width: 100px;
  1021. height: 80px;
  1022. border-radius: 4px;
  1023. img {
  1024. width: 100%;
  1025. height: 100%;
  1026. }
  1027. }
  1028. .news-time {
  1029. margin-top: 12px;
  1030. color: #999999;
  1031. width: 80px;
  1032. height: 20px;
  1033. font-size: 14px;
  1034. }
  1035. }
  1036. }
  1037. .bottom {
  1038. width: 100%;
  1039. height: 150px;
  1040. .bot {
  1041. width: 100%;
  1042. padding-left: 66px;
  1043. display: flex;
  1044. .bot-line {
  1045. margin-top: 20px;
  1046. width: 80px;
  1047. height: 0px;
  1048. border: 1px solid rgba(207, 210, 213, 100);
  1049. }
  1050. .bot-text {
  1051. width: 60px;
  1052. height: 17px;
  1053. margin-top: 13px;
  1054. margin-left: 12px;
  1055. margin-right: 12px;
  1056. font-size: 12px;
  1057. text-align: center;
  1058. }
  1059. }
  1060. }
  1061. // 导航栏
  1062. .navigation {
  1063. width: 100%;
  1064. height: 60px;
  1065. padding: 10px 0;
  1066. background-color: #fff;
  1067. position: fixed;
  1068. bottom: 0;
  1069. left: 0;
  1070. display: flex;
  1071. justify-content: space-around;
  1072. text-align: center;
  1073. color: #999999;
  1074. .nav-icon {
  1075. width: 54px;
  1076. font-size: 24px
  1077. }
  1078. .nav-text {
  1079. font-size: 14px;
  1080. }
  1081. }
  1082. // 登录提示
  1083. .login-prompt {
  1084. width: 91.4%;
  1085. height: 40px;
  1086. line-height: 40px;
  1087. border-radius: 50px;
  1088. text-align: left;
  1089. padding-left: 16px;
  1090. padding-right: 4px;
  1091. background-color: rgba(0, 0, 0, 0.6);
  1092. position: fixed;
  1093. bottom: 75px;
  1094. color: #ffffff;
  1095. .button {
  1096. width: 88px;
  1097. height: 32px;
  1098. line-height: 32px;
  1099. border-radius: 50px;
  1100. background-color: rgba(0, 185, 98, 100);
  1101. text-align: center;
  1102. float: right;
  1103. margin-top: 4px;
  1104. }
  1105. }
  1106. </style>