index.vue 19 KB

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