index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  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.dueFee != null ? item.dueFee : '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. }
  231. },
  232. onReachBottom() {
  233. if (this.newsList.length < this.recordsTotal) {
  234. this.myLoadmore();
  235. }
  236. },
  237. onReady() {
  238. if (this.carhelp.getPersonInfo()) {
  239. this.userId = this.carhelp.getPersonInfo().id;
  240. this.getFindChargeData();
  241. }
  242. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  243. // console.log(res)
  244. }).catch(error => {
  245. console.log(res)
  246. })
  247. this.getPoint();
  248. this.getNewsList();
  249. this.getActivityInfoList();
  250. },
  251. methods: {
  252. getFindChargeData() {
  253. uni.showLoading({
  254. title: "加载中",
  255. mask: true,
  256. })
  257. API.findChargeData().then((res) => {
  258. uni.hideLoading()
  259. this.chargeList = res.data.chargingRecordList;
  260. }).catch(error => {
  261. uni.showToast({
  262. title: error,
  263. icon: "none"
  264. })
  265. })
  266. },
  267. toSearchPile() {
  268. uni.navigateTo({
  269. url: '/pages/searchPile/searchPile'
  270. })
  271. },
  272. toLogin() {
  273. uni.navigateTo({
  274. url: '/pages/login/login'
  275. })
  276. },
  277. toNewsNotice() {
  278. uni.navigateTo({
  279. url: '/pages/article/newsNotice'
  280. })
  281. },
  282. //微信扫二维码
  283. getScanCode() {
  284. if (this.userId) {
  285. WxJsApi.scanQRCode(1).then(res => {
  286. if(res) {
  287. API.scanCode(res).then((response) => {
  288. }).catch(error => {
  289. uni.showToast({
  290. title: error,
  291. icon: "none"
  292. })
  293. })
  294. }
  295. }).catch(error => {
  296. })
  297. } else {
  298. uni.navigateTo({
  299. url: '/pages/login/login'
  300. })
  301. }
  302. },
  303. fastRecharge() {
  304. if (this.userId) {
  305. uni.navigateTo({
  306. url: '/pages/user/finance/recharge'
  307. })
  308. } else {
  309. uni.navigateTo({
  310. url: '/pages/login/login'
  311. })
  312. }
  313. },
  314. chargingRecord() {
  315. if (this.userId) {
  316. uni.navigateTo({
  317. url: '/pages/record/index'
  318. })
  319. } else {
  320. uni.navigateTo({
  321. url: '/pages/login/login'
  322. })
  323. }
  324. },
  325. rechargeActivity() {
  326. if (this.userId) {
  327. uni.navigateTo({
  328. url: '/pages/user/finance/recharge'
  329. })
  330. } else {
  331. uni.navigateTo({
  332. url: '/pages/login/login'
  333. })
  334. }
  335. },
  336. getActivityInfoList() {
  337. uni.showLoading({
  338. title: "加载中",
  339. mask: true,
  340. })
  341. API.activityInfoList({
  342. pageIndex: 1,
  343. pageSize: 10
  344. }).then((res) => {
  345. uni.hideLoading()
  346. this.activityList = res.data.data;
  347. }).catch(error => {
  348. uni.showToast({
  349. title: error,
  350. icon: "none"
  351. })
  352. })
  353. },
  354. getPoint() {
  355. WxJsApi.getLocation().then((res) => {
  356. this.latitude = parseFloat(res.latitude);
  357. this.longitude = parseFloat(res.longitude);
  358. this.message = res.errMsg;
  359. if (res.errMsg != 'getLocation:ok') {
  360. uni.showToast({
  361. title: res
  362. })
  363. } else {
  364. siteApi.searchStationData({
  365. longitude: this.longitude,
  366. latitude: this.latitude
  367. }).then((response) => {
  368. this.stationData = response.data.data[0];
  369. }).catch(error => {
  370. uni.showToast({
  371. title: error,
  372. icon: "none"
  373. })
  374. })
  375. }
  376. }).catch(error => {
  377. uni.showToast({
  378. title: error,
  379. icon: "none"
  380. })
  381. })
  382. },
  383. getNewsList(bl) {
  384. uni.showLoading({
  385. title: "加载中",
  386. mask: true,
  387. })
  388. if (bl) {
  389. this.newsList = [];
  390. this.pageIndex = 1;
  391. }
  392. newsApi.newsInfoList({
  393. pageIndex: 1,
  394. pageSize: 10
  395. }).then((res) => {
  396. uni.hideLoading()
  397. this.newsList = [
  398. ...this.newsList,
  399. ...res.data.data
  400. ];
  401. this.recordsTotal = res.data.recordsTotal
  402. }).catch(error => {
  403. uni.showToast({
  404. title: error,
  405. icon: "none"
  406. })
  407. })
  408. },
  409. myLoadmore() {
  410. this.pageIndex += 1;
  411. this.getNewsList()
  412. },
  413. }
  414. }
  415. </script>
  416. <style lang="scss" scoped>
  417. // 头部图片
  418. img {
  419. width: 100%;
  420. height: 100%;
  421. }
  422. .banner {
  423. width: 100%;
  424. height: 300px;
  425. }
  426. // 选项列表
  427. .option-list {
  428. width: 91.4%;
  429. padding-top: 18px;
  430. height: 100px;
  431. line-height: 20px;
  432. border-radius: 8px;
  433. text-align: center;
  434. background-color: #fff;
  435. position: absolute;
  436. top: 260px;
  437. left: 0;
  438. right: 0;
  439. margin: auto;
  440. display: flex;
  441. justify-content: space-around;
  442. .list-item {
  443. // 图标
  444. .icon {
  445. width: 40px;
  446. height: 40px;
  447. border-radius: 99px;
  448. line-height: 40px;
  449. font-size: 24px;
  450. text-align: center;
  451. margin: auto;
  452. color: #ffffff;
  453. }
  454. }
  455. }
  456. // 站点
  457. .station {
  458. width:91.4%;
  459. height: 120px;
  460. margin-top: 70px auto 0 ;
  461. padding-top: 20px;
  462. padding: 0 12px;
  463. position: relative;
  464. .img-box {
  465. width: 100%;
  466. height: 100%;
  467. border-radius: 8px;
  468. overflow: hidden;
  469. }
  470. img {
  471. width: 100%;
  472. height: 100%;
  473. }
  474. .text {
  475. position: absolute;
  476. top: 0;
  477. left: 20px;
  478. // 头部
  479. .station-title {
  480. display: flex;
  481. margin-top: 12px;
  482. .title-left {
  483. display: inline-block;
  484. height: 20px;
  485. width: 44px;
  486. // margin-left: 12px;
  487. line-height: 20px;
  488. border-radius: 50px;
  489. background-color: rgba(133, 140, 255, 100);
  490. color: rgba(255, 255, 255, 100);
  491. font-size: 12px;
  492. text-align: center;
  493. font-family: Arial;
  494. }
  495. .title-right {
  496. display: inline-block;
  497. margin-left: 4px;
  498. margin-top: 2px;
  499. width: 271px;
  500. height: 16px;
  501. line-height: 16px;
  502. color: rgba(16, 16, 16, 100);
  503. font-size: 16px;
  504. text-align: left;
  505. font-family: AlibabaPuHui-regular;
  506. }
  507. }
  508. // 价格
  509. .station-price {
  510. margin-top: 4px;
  511. display: flex;
  512. .price-left {
  513. width: 40px;
  514. height: 20px;
  515. color: rgba(255, 98, 0, 100);
  516. font-size: 20px;
  517. text-align: left;
  518. font-family: Roboto-medium;
  519. }
  520. .price-right {
  521. height: 20px;
  522. line-height: 20px;
  523. margin-left: 2px;
  524. margin-top: 3px;
  525. color: rgba(102, 102, 102, 100);
  526. font-size: 14px;
  527. text-align: left;
  528. font-family: AlibabaPuHui-regular;
  529. }
  530. }
  531. // park
  532. .park {
  533. margin-top: 4px;
  534. display: flex;
  535. .park-p {
  536. display: inline-block;
  537. width: 20px;
  538. height: 18px;
  539. line-height: 12px;
  540. text-align: center;
  541. background-color: rgba(125, 177, 255, 100);
  542. color: #fff;
  543. }
  544. .park-text {
  545. display: inline-block;
  546. width: 300px;
  547. height: 17px;
  548. color: rgba(102, 102, 102, 100);
  549. font-size: 12px;
  550. text-align: left;
  551. margin-left: 2px;
  552. margin-top: 2px;
  553. }
  554. }
  555. // 数量
  556. .count {
  557. margin-top: 12px !important;
  558. width: 100%;
  559. display: flex;
  560. justify-content: space-between;
  561. }
  562. }
  563. }
  564. //定位
  565. .location {
  566. width: 91.4%;
  567. background-color: #ffffff;
  568. height: 120px;
  569. display: flex;
  570. margin: 70px auto 0;
  571. border-radius: 8px;
  572. border: #F2F4F4 1px;
  573. .location-text {
  574. padding: 24px 28px;
  575. .text-1 {
  576. height: 16px;
  577. line-height: 16px;
  578. color: rgba(16, 16, 16, 100);
  579. font-size: 16px;
  580. text-align: left;
  581. }
  582. .text-2 {
  583. height: 17px;
  584. line-height: 17px;
  585. color: rgba(102, 102, 102, 100);
  586. font-size: 12px;
  587. text-align: left;
  588. margin-top: 4px;
  589. }
  590. .text-3 {
  591. width: 80px;
  592. height: 24px;
  593. border-radius: 50px;
  594. color: rgba(0, 185, 98, 100);
  595. font-size: 12px;
  596. text-align: center;
  597. font-family: Microsoft Yahei;
  598. border: 1px solid rgba(0, 185, 98, 100);
  599. margin-top: 11px;
  600. }
  601. }
  602. .img-box {
  603. width: 120px;
  604. height: 120px;
  605. float: right;
  606. }
  607. }
  608. .state{
  609. width: 91.4%;
  610. background-color: #ffffff;
  611. height: 120px;
  612. display: flex;
  613. margin: 70px auto 0;
  614. border-radius: 8px;
  615. border: #F2F4F4 1px;
  616. .state-text{
  617. width: 61.8%;
  618. padding: 24px 0 0 28px;
  619. .text-1 {
  620. height: 16px;
  621. line-height: 16px;
  622. color: blueviolet;
  623. font-size: 16px;
  624. text-align: left;
  625. }
  626. .text-2 {
  627. height: 17px;
  628. line-height: 17px;
  629. color: #101010;
  630. text-align: left;
  631. margin-top: 12px;
  632. }
  633. .text-3 {
  634. font-size: 12px;
  635. text-align: center;
  636. margin-top: 6px;
  637. color: #999999;
  638. }
  639. }
  640. .img-box {
  641. width: 120px;
  642. height: 120px;
  643. float: right;
  644. }
  645. }
  646. //充值
  647. .top-up {
  648. margin-left: 16px;
  649. margin-top: 17px;
  650. .top-up-title {
  651. color: rgba(16, 16, 16, 100);
  652. font-size: 16px;
  653. }
  654. .img-box {
  655. margin-top: 12px;
  656. width: 345px;
  657. height: 146px;
  658. display: flex;
  659. justify-content: space-between;
  660. .img-1 {
  661. width: 166px;
  662. height: 146px;
  663. position: relative;
  664. .img-text {
  665. position: absolute;
  666. top: 12px;
  667. left: 12px;
  668. height: 33px;
  669. color: #ff4444;
  670. font-size: 24px;
  671. text-align: left;
  672. margin-left: 12px;
  673. .img-text2 {
  674. font-size: 14px
  675. }
  676. }
  677. }
  678. img {
  679. width: 100%;
  680. height: 100%;
  681. }
  682. }
  683. }
  684. // 小竖线
  685. .line {
  686. display: inline-block;
  687. width: 3px;
  688. height: 12px;
  689. margin-right: 7px;
  690. background-color: rgba(0, 145, 67, 100);
  691. }
  692. // 新闻公告
  693. .news-title {
  694. padding: 0 16px;
  695. margin-top: 12px;
  696. color: rgba(16, 16, 16, 100);
  697. font-size: 16px;
  698. display: flex;
  699. justify-content: space-between;
  700. background-color: #F2F4F4;
  701. .news-title-left {
  702. display: flex;
  703. }
  704. .more {
  705. font-size: 14px;
  706. color: #777777;
  707. display: flex;
  708. line-height: 20px;
  709. .more-icon {
  710. font-size: 24px
  711. }
  712. }
  713. }
  714. .news {
  715. background-color: #fff;
  716. width: 91.4%;
  717. margin: 12px auto 0;
  718. border-radius: 8px;
  719. .news-content {
  720. display: flex;
  721. justify-content: space-between;
  722. padding: 12px;
  723. .content-text {
  724. width: 56.2%;
  725. height: 42px;
  726. line-height: 21px;
  727. color: #101010;
  728. text-align: left;
  729. font-size: 14px
  730. }
  731. ;
  732. .content-img {
  733. width: 26.7%;
  734. height: 80px;
  735. background-color: #777777;
  736. border-radius: 4px;
  737. overflow: hidden;
  738. img {
  739. width: 100%;
  740. height: 100%;
  741. }
  742. }
  743. .news-time {
  744. margin-top: 12px;
  745. color: #999999;
  746. width: 80px;
  747. height: 20px;
  748. font-size: 14px;
  749. }
  750. }
  751. }
  752. .bottom {
  753. width: 100%;
  754. height: 100px;
  755. .bot {
  756. width: 100%;
  757. padding-left: 66px;
  758. display: flex;
  759. .bot-line {
  760. margin-top: 20px;
  761. width: 80px;
  762. height: 0px;
  763. border: 1px solid rgba(207, 210, 213, 100);
  764. }
  765. .bot-text {
  766. width: 60px;
  767. height: 17px;
  768. margin-top: 13px;
  769. margin-left: 12px;
  770. margin-right: 12px;
  771. font-size: 12px;
  772. text-align: center;
  773. color: rgba(182, 189, 195, 100);
  774. }
  775. }
  776. }
  777. // 导航栏
  778. .navigation {
  779. width: 100%;
  780. // height: 40px;
  781. padding: 10px 0;
  782. background-color: #fff;
  783. position: fixed;
  784. bottom: 0;
  785. left: 0;
  786. display: flex;
  787. justify-content: space-around;
  788. text-align: center;
  789. color: #999999;
  790. .nav-icon {
  791. width: 54px;
  792. font-size: 24px
  793. }
  794. .nav-text {
  795. font-size: 14px;
  796. }
  797. }
  798. // 登录提示
  799. .login-prompt {
  800. width: 91.4%;
  801. height: 40px;
  802. line-height: 40px;
  803. border-radius: 50px;
  804. text-align: left;
  805. padding-left: 16px;
  806. padding-right: 4px;
  807. background-color: rgba(0, 0, 0, 0.6);
  808. position: fixed;
  809. bottom: 75px;
  810. color: #ffffff;
  811. .button {
  812. width: 88px;
  813. height: 32px;
  814. line-height: 32px;
  815. border-radius: 50px;
  816. background-color: rgba(0, 185, 98, 100);
  817. text-align: center;
  818. float: right;
  819. margin-top: 4px;
  820. }
  821. }
  822. </style>