index.vue 20 KB

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