index.vue 18 KB

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