index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  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-top: 20px auto 0 ;
  474. padding-top: 20px;
  475. position: relative;
  476. .img-box {
  477. width: 100%;
  478. height: 100%;
  479. border-radius: 8px;
  480. overflow: hidden;
  481. }
  482. img {
  483. width: 100%;
  484. height: 100%;
  485. }
  486. .text {
  487. position: absolute;
  488. top: 0;
  489. left: 20px;
  490. // 头部
  491. .station-title {
  492. display: flex;
  493. margin-top: 12px;
  494. .title-left {
  495. display: inline-block;
  496. height: 20px;
  497. width: 44px;
  498. // margin-left: 12px;
  499. line-height: 20px;
  500. border-radius: 50px;
  501. background-color: rgba(133, 140, 255, 100);
  502. color: rgba(255, 255, 255, 100);
  503. font-size: 12px;
  504. text-align: center;
  505. font-family: Arial;
  506. }
  507. .title-right {
  508. display: inline-block;
  509. margin-left: 4px;
  510. margin-top: 2px;
  511. width: 271px;
  512. height: 16px;
  513. line-height: 16px;
  514. color: rgba(16, 16, 16, 100);
  515. font-size: 16px;
  516. text-align: left;
  517. font-family: AlibabaPuHui-regular;
  518. }
  519. }
  520. // 价格
  521. .station-price {
  522. margin-top: 4px;
  523. display: flex;
  524. .price-left {
  525. width: 40px;
  526. height: 20px;
  527. color: rgba(255, 98, 0, 100);
  528. font-size: 20px;
  529. text-align: left;
  530. font-family: Roboto-medium;
  531. }
  532. .price-right {
  533. height: 20px;
  534. line-height: 20px;
  535. margin-left: 2px;
  536. margin-top: 3px;
  537. color: rgba(102, 102, 102, 100);
  538. font-size: 14px;
  539. text-align: left;
  540. font-family: AlibabaPuHui-regular;
  541. }
  542. }
  543. // park
  544. .park {
  545. margin-top: 4px;
  546. display: flex;
  547. .park-p {
  548. display: inline-block;
  549. width: 20px;
  550. height: 18px;
  551. line-height: 12px;
  552. text-align: center;
  553. background-color: rgba(125, 177, 255, 100);
  554. color: #fff;
  555. }
  556. .park-text {
  557. display: inline-block;
  558. width: 300px;
  559. height: 17px;
  560. color: rgba(102, 102, 102, 100);
  561. font-size: 12px;
  562. text-align: left;
  563. margin-left: 2px;
  564. margin-top: 2px;
  565. }
  566. }
  567. // 数量
  568. .count {
  569. margin-top: 12px !important;
  570. width: 100%;
  571. display: flex;
  572. justify-content: space-between;
  573. padding: 0 5px;
  574. }
  575. }
  576. }
  577. //定位
  578. .location {
  579. width: 91.4%;
  580. background-color: #ffffff;
  581. height: 120px;
  582. display: flex;
  583. margin: 20px auto 0;
  584. border-radius: 8px;
  585. border: #F2F4F4 1px;
  586. .location-text {
  587. padding: 24px 28px;
  588. .text-1 {
  589. height: 16px;
  590. line-height: 16px;
  591. color: rgba(16, 16, 16, 100);
  592. font-size: 16px;
  593. text-align: left;
  594. }
  595. .text-2 {
  596. height: 17px;
  597. line-height: 17px;
  598. color: rgba(102, 102, 102, 100);
  599. font-size: 12px;
  600. text-align: left;
  601. margin-top: 4px;
  602. }
  603. .text-3 {
  604. width: 80px;
  605. height: 24px;
  606. border-radius: 50px;
  607. color: rgba(0, 185, 98, 100);
  608. font-size: 12px;
  609. text-align: center;
  610. font-family: Microsoft Yahei;
  611. border: 1px solid rgba(0, 185, 98, 100);
  612. margin-top: 11px;
  613. }
  614. }
  615. .img-box {
  616. width: 120px;
  617. height: 120px;
  618. float: right;
  619. }
  620. }
  621. .state{
  622. width: 91.4%;
  623. background-color: #ffffff;
  624. height: 120px;
  625. display: flex;
  626. margin: 20px auto 0;
  627. border-radius: 8px;
  628. border: #F2F4F4 1px;
  629. .state-text{
  630. width: 61.8%;
  631. padding: 24px 0 0 28px;
  632. .text-1 {
  633. height: 16px;
  634. line-height: 16px;
  635. color: blueviolet;
  636. font-size: 16px;
  637. text-align: left;
  638. }
  639. .text-2 {
  640. height: 17px;
  641. line-height: 17px;
  642. color: #101010;
  643. text-align: left;
  644. margin-top: 12px;
  645. }
  646. .text-3 {
  647. font-size: 12px;
  648. line-height: 20px;
  649. margin-top: 6px;
  650. color: #999999;
  651. }
  652. }
  653. .img-box {
  654. width: 120px;
  655. height: 120px;
  656. float: right;
  657. }
  658. }
  659. //充值
  660. .top-up {
  661. margin-left: 16px;
  662. margin-top: 17px;
  663. .top-up-title {
  664. color: rgba(16, 16, 16, 100);
  665. font-size: 16px;
  666. }
  667. .img-box {
  668. margin-top: 12px;
  669. width: 345px;
  670. height: 146px;
  671. display: flex;
  672. justify-content: space-between;
  673. .img-1 {
  674. width: 166px;
  675. height: 146px;
  676. position: relative;
  677. .img-text {
  678. position: absolute;
  679. top: 12px;
  680. left: 12px;
  681. height: 33px;
  682. color: #ff4444;
  683. font-size: 24px;
  684. text-align: left;
  685. margin-left: 12px;
  686. .img-text2 {
  687. font-size: 14px
  688. }
  689. }
  690. }
  691. img {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. }
  697. // 小竖线
  698. .line {
  699. display: inline-block;
  700. width: 3px;
  701. height: 12px;
  702. margin-right: 7px;
  703. background-color: rgba(0, 145, 67, 100);
  704. }
  705. // 新闻公告
  706. .news-title {
  707. padding: 0 16px;
  708. margin-top: 12px;
  709. color: rgba(16, 16, 16, 100);
  710. font-size: 16px;
  711. display: flex;
  712. justify-content: space-between;
  713. background-color: #F2F4F4;
  714. .news-title-left {
  715. display: flex;
  716. }
  717. .more {
  718. font-size: 14px;
  719. color: #777777;
  720. display: flex;
  721. line-height: 20px;
  722. .more-icon {
  723. font-size: 24px
  724. }
  725. }
  726. }
  727. .news {
  728. background-color: #fff;
  729. width: 91.4%;
  730. margin: 12px auto 0;
  731. border-radius: 8px;
  732. .news-content {
  733. display: flex;
  734. justify-content: space-between;
  735. padding: 12px;
  736. .content-text {
  737. width: 56.2%;
  738. height: 42px;
  739. line-height: 21px;
  740. color: #101010;
  741. text-align: left;
  742. font-size: 14px
  743. }
  744. ;
  745. .content-img {
  746. width: 26.7%;
  747. height: 80px;
  748. background-color: #777777;
  749. border-radius: 4px;
  750. overflow: hidden;
  751. img {
  752. width: 100%;
  753. height: 100%;
  754. }
  755. }
  756. .news-time {
  757. margin-top: 12px;
  758. color: #999999;
  759. width: 80px;
  760. height: 20px;
  761. font-size: 14px;
  762. }
  763. }
  764. }
  765. .bottom {
  766. width: 100%;
  767. height: 100px;
  768. .bot {
  769. width: 100%;
  770. padding-left: 66px;
  771. display: flex;
  772. .bot-line {
  773. margin-top: 20px;
  774. width: 80px;
  775. height: 0px;
  776. border: 1px solid rgba(207, 210, 213, 100);
  777. }
  778. .bot-text {
  779. width: 60px;
  780. height: 17px;
  781. margin-top: 13px;
  782. margin-left: 12px;
  783. margin-right: 12px;
  784. font-size: 12px;
  785. text-align: center;
  786. color: rgba(182, 189, 195, 100);
  787. }
  788. }
  789. }
  790. // 导航栏
  791. .navigation {
  792. width: 100%;
  793. // height: 40px;
  794. padding: 10px 0;
  795. background-color: #fff;
  796. position: fixed;
  797. bottom: 0;
  798. left: 0;
  799. display: flex;
  800. justify-content: space-around;
  801. text-align: center;
  802. color: #999999;
  803. .nav-icon {
  804. width: 54px;
  805. font-size: 24px
  806. }
  807. .nav-text {
  808. font-size: 14px;
  809. }
  810. }
  811. // 登录提示
  812. .login-prompt {
  813. width: 91.4%;
  814. height: 40px;
  815. line-height: 40px;
  816. border-radius: 50px;
  817. text-align: left;
  818. padding-left: 16px;
  819. padding-right: 4px;
  820. background-color: rgba(0, 0, 0, 0.6);
  821. position: fixed;
  822. bottom: 75px;
  823. color: #ffffff;
  824. .button {
  825. width: 88px;
  826. height: 32px;
  827. line-height: 32px;
  828. border-radius: 50px;
  829. background-color: rgba(0, 185, 98, 100);
  830. text-align: center;
  831. float: right;
  832. margin-top: 4px;
  833. }
  834. }
  835. </style>