index.vue 18 KB

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