index.vue 20 KB

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