index.vue 19 KB

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