index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  1. <template>
  2. <view>
  3. <!-- 头部图片 -->
  4. <view class="banner">
  5. <img :src="indexLogo?indexLogo:'static/img/banner1.jpg'" alt="">
  6. </view>
  7. <!-- 选项列表 -->
  8. <view class="option-list">
  9. <view class="list-item" @click="getScanCode">
  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" @click="toSearchPile">
  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="shema">
  44. </view>
  45. <view style="height:50px"></view>
  46. <!-- 站点 -->
  47. <view class="station" v-if="message == 'getLocation:ok' && chargeList.length == 0" @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  48. <view class="img-box">
  49. <img src="static/img/Frame 198 (1).png" alt="">
  50. </view>
  51. <view class="text">
  52. <view class="station-title">
  53. <text class="title-left" v-if="stationData.type == '1'" style="background-color: #9D9FFF;">快充</text>
  54. <text class="title-left" v-if="stationData.type == '2'" style="background-color: #00B962;">慢充</text>
  55. <text class="title-left" v-if="stationData.type == '1,2'" style="background-color: #00BAC8;">快/慢</text>
  56. <text class="title-right">{{stationData.name}}</text>
  57. </view>
  58. <view class="station-price">
  59. <view class="price-left">{{stationData.costPrice}}</view>
  60. <view class="price-right">
  61. 起 元/度
  62. </view>
  63. </view>
  64. <view class="park">
  65. <text class="park-p">p</text>
  66. <text class="park-text">2小时免费停车</text>
  67. </view>
  68. <view class="count">
  69. <view class="count-left">空闲{{stationData.availableNum}}/总数{{stationData.totalNum}}</view>
  70. <view class="count-right"><text class="iconfont">&#xe615;</text>{{stationData.distance}}公里</view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 定位 -->
  75. <view class="location-box" v-if="message != 'getLocation:ok' && chargeList.length == 0">
  76. <view class="location">
  77. <view class="location-text">
  78. <view class="text-1">
  79. 定位中...
  80. </view>
  81. <view class="text-2">
  82. 授权定位后可查询附近充电站
  83. </view>
  84. <view class="text-3" @click="getPoint()">
  85. 重新定位
  86. </view>
  87. </view>
  88. <view class="img-box">
  89. <img src="static/img/暂无网络信号-缺省页 1.png">
  90. </view>
  91. </view>
  92. </view>
  93. <!-- 充电状态 -->
  94. <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" :key="item.id" @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
  95. <view class="state-text">
  96. <view class="text-1">
  97. {{item.statusText}}
  98. </view>
  99. <view v-if="item.status == '0'" class="text-2">
  100. 启动中
  101. </view>
  102. <view v-if="item.status == '1'" class="text-2">
  103. 已充{{item.dueFee != null ? item.dueFee : '0.00'}}元
  104. </view>
  105. <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
  106. 超出时间将收取占位费
  107. </view> -->
  108. <view v-if="item.status == '4'" class="text-2">
  109. 前方等待{{item.waitNum}}位
  110. </view>
  111. <view class="text-3">
  112. {{item.deviceName}}/<br />{{item.deviceNo}}
  113. </view>
  114. </view>
  115. <view class="img-box">
  116. <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
  117. <img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
  118. <img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
  119. <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
  120. </view>
  121. </view>
  122. <!-- <view class="state2 state">
  123. <view class="state-text">
  124. <view class="text-1" style="color: green">
  125. 充电中
  126. </view>
  127. <view class="text-2">
  128. 前方等待两位
  129. </view>
  130. <view class="text-3">
  131. 荆鹏软件园充电站/1号有序充电桩
  132. </view>
  133. </view>
  134. <view class="img-box">
  135. <img src="static/img/充电中-缺省页.png">
  136. </view>
  137. </view> -->
  138. <!-- <view class="state3 state">
  139. <view class="state-text">
  140. <view class="text-1" style="color: red;">
  141. 已充满
  142. </view>
  143. <view class="text-2" style="color: red;">
  144. 超出时间将收取占位费
  145. </view>
  146. <view class="text-3">
  147. 荆鹏软件园充电站/1号有序充电桩
  148. </view>
  149. </view>
  150. <view class="img-box">
  151. <img src="static/img/已充满-缺省页.png">
  152. </view>
  153. </view> -->
  154. <!-- 充值活动 -->
  155. <view class=" top-up" v-if="activityList.length > 0">
  156. <view class="top-up-title"><text class="line"></text>充值活动</view>
  157. <view class="img-box">
  158. <view class="img-1" v-for="(item,index) in activityList" :key="item.id" @click="rechargeActivity(index)">
  159. <img :src="item.picUrl" alt="">
  160. </view>
  161. </view>
  162. </view>
  163. <!-- 新闻 -->
  164. <view class="news-title" v-if="newsList.length > 0">
  165. <view class="news-title-left">
  166. <view class="line" style="margin-top:4px;"></view>新闻公告
  167. </view>
  168. <view class="more" @click="toNewsNotice">更多<view class="more-icon iconfont"> &#xe600;</view>
  169. </view>
  170. </view>
  171. <view class="news">
  172. <view class="news-content" v-for="(item,index) in newsList" :key="item.id" @click="gotoUrl('pages/article/articleDetails?id=' + item.id)">
  173. <view class="content-text">
  174. <view class="content-title">{{item.title}}</view>
  175. <view class="news-time">{{item.createTime?item.createTime.slice(5,10):''}}</view>
  176. </view>
  177. <view class="content-img">
  178. <img :src="item.pic ? item.pic : 'static/img/image_default.png'" alt="">
  179. </view>
  180. </view>
  181. </view>
  182. <view class="bottom" v-if="newsList.length == recordsTotal && newsList.length != 0">
  183. <view class="bot">
  184. <view class="bot-line"></view>
  185. <view class="bot-text">已经到底了</view>
  186. <view class="bot-line"></view>
  187. </view>
  188. </view>
  189. <!-- 导航栏 -->
  190. <view class="navigation">
  191. <view class="login-prompt" v-if="!userId">
  192. 登录显示更多会员服务
  193. <text class="button" @click="toLogin">登录/注册</text>
  194. </view>
  195. </view>
  196. <Tabbar :current="0"></Tabbar>
  197. </view>
  198. </template>
  199. <script>
  200. import * as API from '@/apis/index.js'
  201. import * as newsApi from '@/apis/news.js'
  202. import * as WxJsApi from '@/utils/wxJsApi.js'
  203. import * as siteApi from '@/apis/site.js';
  204. import MapLoader from '@/utils/AMap'
  205. import Tabbar from '@/components/Tabbar.vue'
  206. export default {
  207. components: {
  208. Tabbar
  209. },
  210. data() {
  211. return {
  212. timeOut: false,
  213. pointTimeOut: true,
  214. stationData: {},
  215. chargeList: [],
  216. activityList: [],
  217. userId: '',
  218. newsList: [],
  219. pageIndex: 1,
  220. recordsTotal: 0,
  221. longitude: '',
  222. latitude: '',
  223. message: '',
  224. indexLogo:''
  225. }
  226. },
  227. onLoad(op) {
  228. var indexLogo=this.carhelp.getConfig().indexLogo
  229. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  230. if(indexLogo){
  231. this.indexLogo=indexLogo;
  232. }
  233. if(op.jpcode){
  234. var k=API.codeOperation(op.jpcode)
  235. if(k){
  236. uni.navigateTo({
  237. url:k
  238. })
  239. }
  240. }
  241. },
  242. onUnload() {
  243. this.timeOut = false;
  244. this.pointTimeOut = false;
  245. },
  246. onReachBottom() {
  247. if (this.newsList.length < this.recordsTotal) {
  248. this.myLoadmore();
  249. }
  250. },
  251. onReady() {
  252. if (this.carhelp.getPersonInfo()) {
  253. this.userId = this.carhelp.getPersonInfo().id;
  254. this.getFindChargeData();
  255. }
  256. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  257. // console.log(res)
  258. }).catch(error => {
  259. console.log(res)
  260. })
  261. this.getPointTimeOut();
  262. this.getNewsList();
  263. this.getActivityInfoList();
  264. },
  265. methods: {
  266. getPointTimeOut() {
  267. if(this.pointTimeOut){
  268. setTimeout(()=>{
  269. this.getPoint();
  270. },1000)
  271. }
  272. },
  273. getFindChargeData() {
  274. uni.showLoading({
  275. title: "加载中",
  276. mask: true,
  277. })
  278. API.findChargeData().then((res) => {
  279. uni.hideLoading();
  280. this.chargeList = res.data.chargingRecordList;
  281. var list = res.data.chargingRecordList;
  282. for(var i=0;i<list.length;i++) {
  283. if(list[i].status == '1' || list[i].status == '4') {
  284. this.timeOut = true;
  285. }
  286. }
  287. if(this.timeOut){
  288. setTimeout(()=>{
  289. this.getFindChargeData();
  290. },5000)
  291. }
  292. }).catch(error => {
  293. uni.showToast({
  294. title: error,
  295. icon: "none"
  296. })
  297. })
  298. },
  299. toSearchPile() {
  300. uni.navigateTo({
  301. url: '/pages/searchPile/searchPile'
  302. })
  303. },
  304. toLogin() {
  305. uni.navigateTo({
  306. url: '/pages/login/login'
  307. })
  308. },
  309. toNewsNotice() {
  310. uni.navigateTo({
  311. url: '/pages/article/newsNotice'
  312. })
  313. },
  314. //微信扫二维码
  315. getScanCode() {
  316. if (this.userId) {
  317. WxJsApi.scanQRCode(1).then(res => {
  318. console.log("scanQRCode------"+res)
  319. if(res) {
  320. API.scanCode(res).then((response) => {
  321. }).catch(error => {
  322. uni.showToast({
  323. title: error,
  324. icon: "none"
  325. })
  326. })
  327. }
  328. }).catch(error => {
  329. })
  330. } else {
  331. uni.navigateTo({
  332. url: '/pages/login/login'
  333. })
  334. }
  335. },
  336. fastRecharge() {
  337. if (this.userId) {
  338. uni.navigateTo({
  339. url: '/pages/user/finance/recharge'
  340. })
  341. } else {
  342. uni.navigateTo({
  343. url: '/pages/login/login'
  344. })
  345. }
  346. },
  347. chargingRecord() {
  348. if (this.userId) {
  349. uni.navigateTo({
  350. url: '/pages/record/index'
  351. })
  352. } else {
  353. uni.navigateTo({
  354. url: '/pages/login/login'
  355. })
  356. }
  357. },
  358. rechargeActivity(index) {
  359. var mod= this.activityList[index]
  360. if(mod.clickUrl == null){
  361. } else if(mod.clickUrl.indexOf('http')==0) {
  362. window.location=mod.clickUrl;
  363. } else if(mod.clickUrl.indexOf('#/')==0) {
  364. if(mod.clickUrl.indexOf("?")==-1) {
  365. mod.clickUrl+='?';
  366. }
  367. window.location=mod.clickUrl;
  368. } else if(mod.clickUrl=='#'||mod.clickUrl=='') {
  369. } else {
  370. uni.navigateTo({
  371. url:mod.clickUrl
  372. })
  373. }
  374. },
  375. getActivityInfoList() {
  376. uni.showLoading({
  377. title: "加载中",
  378. mask: true,
  379. })
  380. API.activityInfoList({
  381. pageIndex: 1,
  382. pageSize: 10
  383. }).then((res) => {
  384. uni.hideLoading()
  385. this.activityList = res.data.data;
  386. }).catch(error => {
  387. uni.showToast({
  388. title: error,
  389. icon: "none"
  390. })
  391. })
  392. },
  393. getPoint() {
  394. WxJsApi.getLocation().then((res) => {
  395. this.latitude = parseFloat(res.latitude);
  396. this.longitude = parseFloat(res.longitude);
  397. this.message = res.errMsg;
  398. if (res.errMsg != 'getLocation:ok') {
  399. uni.showToast({
  400. title: res
  401. })
  402. } else {
  403. siteApi.searchStationData({
  404. longitude: this.longitude,
  405. latitude: this.latitude
  406. }).then((response) => {
  407. this.stationData = response.data.data[0];
  408. }).catch(error => {
  409. uni.showToast({
  410. title: error,
  411. icon: "none"
  412. })
  413. })
  414. }
  415. }).catch(error => {
  416. uni.showToast({
  417. title: error,
  418. icon: "none"
  419. })
  420. })
  421. },
  422. getNewsList(bl) {
  423. uni.showLoading({
  424. title: "加载中",
  425. mask: true,
  426. })
  427. if (bl) {
  428. this.newsList = [];
  429. this.pageIndex = 1;
  430. }
  431. newsApi.newsInfoList({
  432. pageIndex: 1,
  433. pageSize: 10
  434. }).then((res) => {
  435. uni.hideLoading()
  436. this.newsList = [
  437. ...this.newsList,
  438. ...res.data.data
  439. ];
  440. this.recordsTotal = res.data.recordsTotal
  441. }).catch(error => {
  442. uni.showToast({
  443. title: error,
  444. icon: "none"
  445. })
  446. })
  447. },
  448. myLoadmore() {
  449. this.pageIndex += 1;
  450. this.getNewsList()
  451. },
  452. }
  453. }
  454. </script>
  455. <style lang="scss" scoped>
  456. // 头部图片
  457. img {
  458. width: 100%;
  459. height: 100%;
  460. }
  461. .banner {
  462. width: 100%;
  463. height: 300px;
  464. }
  465. // 选项列表
  466. .option-list {
  467. width: 91.4%;
  468. padding-top: 18px;
  469. height: 100px;
  470. line-height: 20px;
  471. border-radius: 8px;
  472. text-align: center;
  473. background-color: #fff;
  474. position: absolute;
  475. top: 260px;
  476. left: 0;
  477. right: 0;
  478. margin: auto;
  479. display: flex;
  480. justify-content: space-around;
  481. .list-item {
  482. // 图标
  483. .icon {
  484. width: 40px;
  485. height: 40px;
  486. border-radius: 99px;
  487. line-height: 40px;
  488. font-size: 24px;
  489. text-align: center;
  490. margin: auto;
  491. color: #ffffff;
  492. }
  493. }
  494. }
  495. // 站点
  496. .station {
  497. width:91.4%;
  498. height: 120px;
  499. margin: 20px auto 0 ;
  500. position: relative;
  501. .img-box {
  502. width: 100%;
  503. height: 100%;
  504. border-radius: 8px;
  505. overflow: hidden;
  506. }
  507. img {
  508. width: 100%;
  509. height: 100%;
  510. }
  511. .text {
  512. width: 91.4%;
  513. position: absolute;
  514. top: 0;
  515. left: 20px;
  516. // 头部
  517. .station-title {
  518. display: flex;
  519. margin-top: 12px;
  520. .title-left {
  521. display: inline-block;
  522. height: 20px;
  523. width: 44px;
  524. // margin-left: 12px;
  525. line-height: 20px;
  526. border-radius: 50px;
  527. background-color: rgba(133, 140, 255, 100);
  528. color: rgba(255, 255, 255, 100);
  529. font-size: 12px;
  530. text-align: center;
  531. font-family: Arial;
  532. }
  533. .title-right {
  534. display: inline-block;
  535. margin-left: 4px;
  536. margin-top: 2px;
  537. width: 271px;
  538. height: 16px;
  539. line-height: 16px;
  540. color: rgba(16, 16, 16, 100);
  541. font-size: 16px;
  542. text-align: left;
  543. font-family: AlibabaPuHui-regular;
  544. }
  545. }
  546. // 价格
  547. .station-price {
  548. margin-top: 4px;
  549. display: flex;
  550. .price-left {
  551. width: 40px;
  552. height: 20px;
  553. line-height: 20px;
  554. color: rgba(255, 98, 0, 100);
  555. font-size: 20px;
  556. text-align: left;
  557. font-family: Roboto-medium;
  558. }
  559. .price-right {
  560. height: 20px;
  561. line-height: 14px;
  562. margin-left: 2px;
  563. margin-top: 3px;
  564. color: rgba(102, 102, 102, 100);
  565. font-size: 14px;
  566. text-align: left;
  567. font-family: AlibabaPuHui-regular;
  568. }
  569. }
  570. // park
  571. .park {
  572. margin-top: 4px;
  573. display: flex;
  574. .park-p {
  575. display: inline-block;
  576. width: 20px;
  577. height: 18px;
  578. line-height: 12px;
  579. text-align: center;
  580. background-color: rgba(125, 177, 255, 100);
  581. color: #fff;
  582. }
  583. .park-text {
  584. display: inline-block;
  585. width: 300px;
  586. height: 17px;
  587. color: rgba(102, 102, 102, 100);
  588. font-size: 12px;
  589. text-align: left;
  590. margin-left: 2px;
  591. margin-top: 2px;
  592. }
  593. }
  594. // 数量
  595. .count {
  596. margin-top: 14px !important;
  597. width: 91.4%;
  598. display: flex;
  599. justify-content: space-between;
  600. white-space:nowrap;
  601. overflow: hidden;
  602. }
  603. }
  604. }
  605. //定位
  606. .location {
  607. width: 91.4%;
  608. background-color: #ffffff;
  609. height: 120px;
  610. display: flex;
  611. justify-content: space-between;
  612. margin: 20px auto 0;
  613. border-radius: 8px;
  614. border: #F2F4F4 1px;
  615. .location-text {
  616. padding: 24px 0 0 28px;
  617. .text-1 {
  618. height: 16px;
  619. line-height: 16px;
  620. color: rgba(16, 16, 16, 100);
  621. font-size: 16px;
  622. text-align: left;
  623. }
  624. .text-2 {
  625. height: 17px;
  626. line-height: 17px;
  627. color: rgba(102, 102, 102, 100);
  628. font-size: 12px;
  629. text-align: left;
  630. margin-top: 4px;
  631. white-space:nowrap; //强制不换行
  632. text-overflow:ellipsis;//文本超出出现省略号
  633. overflow:hidden;
  634. }
  635. .text-3 {
  636. width: 80px;
  637. height: 24px;
  638. line-height: 22px;
  639. border-radius: 50px;
  640. color: rgba(0, 185, 98, 100);
  641. font-size: 12px;
  642. text-align: center;
  643. border: 1px solid rgba(0, 185, 98, 100);
  644. margin-top: 11px;
  645. }
  646. }
  647. .img-box {
  648. width: 120px;
  649. height: 120px;
  650. margin-right: 20px;
  651. }
  652. }
  653. .state{
  654. width: 91.4%;
  655. background-color: #ffffff;
  656. height: 120px;
  657. display: flex;
  658. margin: 20px auto 0;
  659. border-radius: 8px;
  660. border: #F2F4F4 1px;
  661. .state-text{
  662. width: 61.8%;
  663. padding: 24px 0 0 28px;
  664. .text-1 {
  665. height: 16px;
  666. line-height: 16px;
  667. color: blueviolet;
  668. font-size: 16px;
  669. text-align: left;
  670. }
  671. .text-2 {
  672. height: 17px;
  673. line-height: 17px;
  674. color: #101010;
  675. text-align: left;
  676. margin-top: 12px;
  677. }
  678. .text-3 {
  679. font-size: 12px;
  680. line-height: 20px;
  681. margin-top: 6px;
  682. color: #999999;
  683. }
  684. }
  685. .img-box {
  686. width: 120px;
  687. height: 120px;
  688. margin-right: 20px;
  689. }
  690. }
  691. //充值
  692. .top-up {
  693. margin-left: 16px;
  694. margin-top: 17px;
  695. .top-up-title {
  696. color: rgba(16, 16, 16, 100);
  697. font-size: 16px;
  698. }
  699. .img-box {
  700. margin-top: 12px;
  701. width: 95%;
  702. height: 146px;
  703. display: flex;
  704. justify-content: space-between;
  705. .img-1 {
  706. width: 166px;
  707. height: 146px;
  708. position: relative;
  709. .img-text {
  710. position: absolute;
  711. top: 12px;
  712. left: 12px;
  713. height: 33px;
  714. color: #ff4444;
  715. font-size: 24px;
  716. text-align: left;
  717. margin-left: 12px;
  718. .img-text2 {
  719. font-size: 14px
  720. }
  721. }
  722. }
  723. img {
  724. width: 100%;
  725. height: 100%;
  726. }
  727. }
  728. }
  729. // 小竖线
  730. .line {
  731. display: inline-block;
  732. width: 3px;
  733. height: 12px;
  734. margin-right: 7px;
  735. background-color: rgba(0, 145, 67, 100);
  736. }
  737. // 新闻公告
  738. .news-title {
  739. padding: 0 16px;
  740. margin-top: 12px;
  741. color: rgba(16, 16, 16, 100);
  742. font-size: 16px;
  743. display: flex;
  744. justify-content: space-between;
  745. background-color: #F2F4F4;
  746. .news-title-left {
  747. display: flex;
  748. }
  749. .more {
  750. font-size: 14px;
  751. color: #777777;
  752. display: flex;
  753. line-height: 20px;
  754. .more-icon {
  755. font-size: 24px
  756. }
  757. }
  758. }
  759. .news {
  760. background-color: #fff;
  761. width: 91.4%;
  762. margin: 12px auto 0;
  763. border-radius: 8px;
  764. .news-content {
  765. display: flex;
  766. justify-content: space-between;
  767. padding: 12px;
  768. .content-text {
  769. width: 56.2%;
  770. height: 100%;
  771. line-height: 21px;
  772. color: #101010;
  773. text-align: left;
  774. font-size: 14px;
  775. }
  776. .content-title {
  777. width: 100%;
  778. overflow: hidden;
  779. text-overflow: ellipsis;
  780. display: -webkit-box;
  781. -webkit-box-orient: vertical;
  782. -webkit-line-clamp: 3;
  783. }
  784. .content-img {
  785. width: 40.57%;
  786. height: 100%;
  787. border-radius: 4px;
  788. overflow: hidden;
  789. img {
  790. width: 100%;
  791. height: 80%;
  792. }
  793. }
  794. .news-time {
  795. margin-top: 5%;
  796. color: #999999;
  797. width: 80px;
  798. height: 20px;
  799. font-size: 14px;
  800. }
  801. }
  802. }
  803. .bottom {
  804. width: 100%;
  805. height: 100px;
  806. .bot {
  807. width: 100%;
  808. margin: 0 auto;
  809. padding:0 17.3%;
  810. justify-content: space-between;
  811. display: flex;
  812. .bot-line {
  813. margin-top: 20px;
  814. width: 21.3%;
  815. height: 0px;
  816. border: 1px solid rgba(207, 210, 213, 100);
  817. }
  818. .bot-text {
  819. white-space: nowrap;
  820. height: 17px;
  821. margin-top: 13px;
  822. margin-left: 12px;
  823. margin-right: 12px;
  824. font-size: 12px;
  825. text-align: center;
  826. color: rgba(182, 189, 195, 100);
  827. }
  828. }
  829. }
  830. // 导航栏
  831. .navigation {
  832. width: 100%;
  833. // height: 40px;
  834. padding: 10px 0;
  835. background-color: #fff;
  836. position: fixed;
  837. bottom: 0;
  838. left: 0;
  839. display: flex;
  840. justify-content: space-around;
  841. text-align: center;
  842. color: #999999;
  843. .nav-icon {
  844. width: 54px;
  845. font-size: 24px
  846. }
  847. .nav-text {
  848. font-size: 14px;
  849. }
  850. }
  851. .shema{
  852. }
  853. // 登录提示
  854. .login-prompt {
  855. width: 91.4%;
  856. height: 40px;
  857. line-height: 40px;
  858. border-radius: 50px;
  859. text-align: left;
  860. padding-left: 16px;
  861. padding-right: 4px;
  862. background-color: rgba(0, 0, 0, 0.6);
  863. position: fixed;
  864. bottom: 75px;
  865. color: #ffffff;
  866. .button {
  867. width: 88px;
  868. height: 32px;
  869. line-height: 32px;
  870. border-radius: 50px;
  871. background-color: rgba(0, 185, 98, 100);
  872. text-align: center;
  873. float: right;
  874. margin-top: 4px;
  875. }
  876. }
  877. </style>