index.vue 18 KB

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