index.vue 20 KB

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