index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. <template>
  2. <view>
  3. <u-navbar v-show="false" title="首页" title-color="#101010"></u-navbar>
  4. <view class="back-blue">
  5. <view class="back-color">
  6. </view>
  7. </view>
  8. <view class="main_top">
  9. <view class="main_top1">
  10. <view class="logo_img">
  11. <image class="img" src="@/assets/img/logo/logo.png" mode=""></image>
  12. </view>
  13. <view class="logo_text">
  14. <view class="logo_text1">
  15. 优电联盟
  16. </view>
  17. <view class="logo_text2">
  18. 巡检端
  19. </view>
  20. </view>
  21. </view>
  22. <view class="main_top2">
  23. <!-- 消息提醒位置 -->
  24. </view>
  25. </view>
  26. <view class="main_navigation panel">
  27. <view class="item-na end" @click="gotoUrl('/pages/task/addTask')">
  28. <view class="na-img">
  29. <image class="img" src="@/assets/img/index/na-1.png" mode=""></image>
  30. </view>
  31. <view class="na-text ">
  32. 故障上报
  33. </view>
  34. </view>
  35. <view class="item-na-b" v-if="isAdmin">
  36. </view>
  37. <view class="item-na end" @click="gotoUrl('/pages/team/teamList')" v-if="isAdmin">
  38. <view class="na-img">
  39. <image class="img" src="@/assets/img/index/na-3.png" mode=""></image>
  40. </view>
  41. <view class="na-text">
  42. 团队管理
  43. </view>
  44. </view>
  45. <view class="item-na-b">
  46. </view>
  47. <view class="item-na end" @click="gotoUrl('/pages/inspection/list')">
  48. <view class="na-img">
  49. <image class="img" src="@/assets/img/index/na-2.png" mode=""></image>
  50. </view>
  51. <view class="na-text">
  52. 巡检记录
  53. </view>
  54. </view>
  55. </view>
  56. <view class="main_statuspanel panel">
  57. <view class="top-main">
  58. <view class="title-main">
  59. 充电枪状态
  60. </view>
  61. <view class="goto-main" @click="gotoUrl('/pages/station/stationList')">
  62. 查看详情
  63. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  64. </view>
  65. </view>
  66. <view class="body">
  67. <view class="pie">
  68. <view id="body1pie1" class="body1pie">
  69. </view>
  70. <view class="body2pie" v-if="datafloorStatus.gunNum">
  71. <view class="v1">{{datafloorStatus.gunNum}}</view>
  72. <view class="v2">单位:把</view>
  73. </view>
  74. </view>
  75. <view class="item-list">
  76. <view class="item-status">
  77. <view class="num">
  78. {{datafloorStatus.gunWorkNum}}
  79. </view>
  80. <view class="statusN">
  81. <view class="statusC status1">
  82. </view>
  83. <view class="statusT">
  84. 在用
  85. </view>
  86. </view>
  87. </view>
  88. <view class="item-status">
  89. <view class="num">
  90. {{datafloorStatus.gunFaultNum}}
  91. </view>
  92. <view class="statusN">
  93. <view class="statusC status2">
  94. </view>
  95. <view class="statusT">
  96. 故障
  97. </view>
  98. </view>
  99. </view>
  100. <view class="item-status">
  101. <view class="num">
  102. {{datafloorStatus.gunFreeNum}}
  103. </view>
  104. <view class="statusN">
  105. <view class="statusC status4">
  106. </view>
  107. <view class="statusT">
  108. 空闲
  109. </view>
  110. </view>
  111. </view>
  112. <view class="item-status">
  113. <view class="num">
  114. {{datafloorStatus.gunOfflineNum}}
  115. </view>
  116. <view class="statusN">
  117. <view class="statusC status3">
  118. </view>
  119. <view class="statusT">
  120. 离线
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="main_list1 panel ">
  128. <view class="top-main">
  129. <view class="title-main">
  130. 故障未处理记录
  131. <span v-if="dataerrRecordsTotal" class="badge">
  132. {{dataerrRecordsTotal}}
  133. </span>
  134. </view>
  135. <view class="goto-main" @click="gotoUrl('/pages/task/listTask')">
  136. 全部故障记录
  137. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  138. </view>
  139. </view>
  140. <view class="top-main">
  141. <u-tabs :list="tabslist" :current="current1" @change="change1"></u-tabs>
  142. </view>
  143. <view class="list">
  144. <view class="item" v-for="(item,index) in dataerrList"
  145. @click="gotoUrl('/pages/task/maintenanceTaks?id='+item.id)" :key="index">
  146. <view class="body">
  147. <view class="line1">
  148. <view class="title">
  149. {{item.stationName}}
  150. </view>
  151. <view class="value">
  152. {{item.errorCodeText}}
  153. </view>
  154. </view>
  155. <view class="line2">
  156. <view v-if="item.type==1" >
  157. {{item.deviceName}} {{item.deviceNo}}
  158. </view>
  159. <view v-if="item.type==2" >
  160. 人工上报
  161. </view>
  162. <view class="value" style=" white-space: pre;">
  163. {{item.errorReportTime}}
  164. </view>
  165. </view>
  166. <view class="line2" v-if="item.type==1">
  167. <view v-if="getHourDistanceArr(item.errorReportTime)==0" :class="{
  168. getHourDistanceArrNum10:true,
  169. }">
  170. </view>
  171. <view v-else :class="{
  172. getHourDistanceArrNum10:true,
  173. getHourDistanceArrNum12:getHourDistanceArr(item.errorReportTime)>12,
  174. getHourDistanceArrNum24:getHourDistanceArr(item.errorReportTime)>24,
  175. }">
  176. 超{{getHourDistanceArr(item.errorReportTime) }}小时未处理</view>
  177. </view>
  178. </view>
  179. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  180. </view>
  181. <u-divider color="#F44336" nonetop="0" :isnone="dataerrRecordsTotal==0" nonetext="暂无数据"
  182. v-if="dataerrRecordsTotal==0"></u-divider>
  183. </view>
  184. </view>
  185. <view class="main_list1 panel ">
  186. <view class="top-main">
  187. <view class="title-main">
  188. 未巡检记录
  189. <span v-if="datainsRecordsTotal" class="badge">
  190. {{datainsRecordsTotal}}
  191. </span>
  192. </view>
  193. <view class="goto-main" @click="gotoUrl('/pages/inspection/list')">
  194. 全部巡检记录
  195. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  196. </view>
  197. </view>
  198. <view class="top-main">
  199. <u-tabs :list="tabslist" :current="current2" @change="change2"></u-tabs>
  200. </view>
  201. <view class="list-body">
  202. <view class="item" v-for="(item,index) in datainsList"
  203. @click="gotoUrl('/pages/inspection/add?back=1&stationId='+item.stationId)" :key="index">
  204. <view class="line1">
  205. <view class="title">
  206. {{item.stationName}}
  207. </view>
  208. <view class="value" v-if="0">
  209. 上次巡检时间:{{lastChargeTime(item.lastInspectionTime)}}
  210. </view>
  211. <view class="value">
  212. 巡检截止时间:{{lastChargeTime(item.inspectionEndTime)}}
  213. </view>
  214. </view>
  215. <view class="line2">
  216. <view v-if="getdaysDistance(item.inspectionEndTime)=='-'"
  217. style="color:#777777 ;" >
  218. 未初始化
  219. </view>
  220. <view v-else-if="getdaysDistance(item.inspectionEndTime)>0"
  221. style="color:#FF7B00 ;" >
  222. {{getdaysDistance(item.inspectionEndTime)}}天后到期
  223. </view>
  224. <view class="value" v-else-if="getdaysDistance(item.inspectionEndTime)==0" style="color: #EE3138 ;" >
  225. &le;1天后到期
  226. </view>
  227. <view v-else style="color: #EE3138 ;" >
  228. 已逾期
  229. </view>
  230. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  231. </view>
  232. </view>
  233. <u-divider color="#F44336" nonetop="0" :isnone="datainsRecordsTotal==0" nonetext="暂无数据"
  234. v-if="datainsRecordsTotal==0"></u-divider>
  235. </view>
  236. </view>
  237. <tabbar :current="0"></tabbar>
  238. </view>
  239. </template>
  240. <script>
  241. import * as API from '@/apis/pagejs/pagejsIndex.js'
  242. import * as echarts from 'echarts';
  243. import Tabbar from '@/components/Tabbar.vue'
  244. import {
  245. newDate,
  246. hourDistanceArr,
  247. daysDistanceTrue
  248. } from '@/apis/utils'
  249. export default {
  250. components: {
  251. Tabbar,
  252. },
  253. data() {
  254. return {
  255. echartsList: {},
  256. isReadyfloorStatus: false,
  257. datafloorStatus: {},
  258. roleList: [],
  259. isReadyerrList: false,
  260. isReadyinsList: false,
  261. dataerrList: [],
  262. dataerrRecordsTotal: 0,
  263. datainsList: [],
  264. datainsRecordsTotal: 0,
  265. tabslist: [{
  266. name: '电动车充电站',
  267. code: "1"
  268. }, {
  269. name: '电单车充电站',
  270. code: "0"
  271. }],
  272. current1: 0,
  273. current2: 0,
  274. };
  275. },
  276. onLoad() {
  277. // this.roleList=
  278. },
  279. onShow() {
  280. // this.roleList=this.jphelp.getPersonInfoPlus().roleList
  281. if (this.isReadyfloorStatus) {
  282. this.getfloorStatus()
  283. }
  284. if (this.isReadyerrList) {
  285. this.geterrList()
  286. }
  287. if (this.isReadyinsList) {
  288. this.getinsList()
  289. }
  290. },
  291. computed: {
  292. isAdmin() {
  293. console.log(this.jphelp.getPersonInfo().role)
  294. if (this.jphelp.getPersonInfo().role == '1') {
  295. return true
  296. }
  297. return false
  298. }
  299. },
  300. onReady() {
  301. this.geterrList()
  302. this.getfloorStatus()
  303. this.getinsList()
  304. //this.getbody1pie1()
  305. this.query()
  306. },
  307. methods: {
  308. lastChargeTime(time) {
  309. if (time) {
  310. return time.split(" ")[0]
  311. } else {
  312. return ''
  313. }
  314. },
  315. getinsList() {
  316. var status = 0
  317. var code = this.tabslist[this.current2].code
  318. API.recordList({
  319. pageIndex: 1,
  320. pageSize: 20,
  321. status: 0,
  322. chargingType:code
  323. }).then((response) => {
  324. this.datainsList = response.data.data
  325. this.datainsRecordsTotal = response.data.recordsTotal
  326. this.isReadyinsList = true
  327. }).catch(error => {
  328. uni.showToast({
  329. title: error,
  330. icon: "none"
  331. })
  332. })
  333. },
  334. getdaysDistance( time2) {
  335. if (!time2) {
  336. return '-'
  337. }
  338. return daysDistanceTrue(new Date(),time2)
  339. },
  340. getHourDistanceArr(time) {
  341. if (!time) {
  342. return '-'
  343. }
  344. return hourDistanceArr(time, new Date())[0]
  345. },
  346. change1(e) {
  347. this.current1 = e
  348. this.dataerrList = []
  349. this.geterrList()
  350. },
  351. change2(e) {
  352. this.current2 = e
  353. this.datainsList = []
  354. this.getinsList()
  355. },
  356. isToday(dateStr) {
  357. if (!dateStr) {
  358. return false
  359. }
  360. // 将传入的日期字符串转换为Date对象
  361. const targetDate = newDate(dateStr);
  362. // 获取当前日期
  363. const today = new Date();
  364. // 比较年份、月份和日期是否相等
  365. return (
  366. targetDate.getFullYear() === today.getFullYear() &&
  367. targetDate.getMonth() === today.getMonth() &&
  368. targetDate.getDate() === today.getDate()
  369. );
  370. },
  371. query() {
  372. uni.showLoading({
  373. title: "加载中",
  374. mask: true,
  375. })
  376. API.findByOpenId({
  377. noerror: true,
  378. openId: this.jphelp.getOpenId(),
  379. }).then((response) => {
  380. uni.hideLoading();
  381. if (response.message) {
  382. uni.hideLoading();
  383. } else {
  384. this.loginset(response)
  385. }
  386. this.roleList = this.jphelp.getPersonInfoPlus().roleList
  387. }).catch(error => {
  388. uni.hideLoading();
  389. })
  390. },
  391. geterrList() {
  392. var status = 0
  393. var code = this.tabslist[this.current1].code
  394. API.errList({
  395. pageIndex: 1,
  396. pageSize: 5,
  397. status: 0,
  398. chargingType:code
  399. }).then((response) => {
  400. this.dataerrList = response.data.data
  401. this.dataerrRecordsTotal = response.data.recordsTotal
  402. this.isReadyerrList = true
  403. }).catch(error => {
  404. uni.showToast({
  405. title: error,
  406. icon: "none"
  407. })
  408. })
  409. },
  410. getfloorStatus() {
  411. API.floorStatus().then((response) => {
  412. var obj = response.data;
  413. var sz = ['gunFaultNum', 'gunFreeNum', 'gunOfflineNum', 'gunWorkNum']
  414. var bl = false
  415. for (var i in sz) {
  416. if (obj[sz[i]] != this.datafloorStatus[sz[i]]) {
  417. bl = true
  418. this.datafloorStatus = obj
  419. }
  420. }
  421. this.isReadyfloorStatus = true
  422. if (bl) {
  423. this.getbody1pie1()
  424. }
  425. }).catch(error => {
  426. uni.showToast({
  427. title: error,
  428. icon: "none"
  429. })
  430. })
  431. },
  432. getbody1pie1() {
  433. var key = "body1pie1"
  434. var myChart = this.echartsList[key];
  435. if (!myChart) {
  436. myChart = echarts.init(document.getElementById(key), null, {
  437. width: uni.upx2px(88 * 2),
  438. height: uni.upx2px(88 * 2)
  439. })
  440. }
  441. myChart.clear()
  442. var option = {
  443. series: [{
  444. silent: true,
  445. type: 'pie',
  446. radius: ['80%', '100%'],
  447. label: {
  448. show: false,
  449. },
  450. data: [{
  451. value: this.datafloorStatus.gunWorkNum,
  452. itemStyle: {
  453. color: 'rgba(0, 185, 98, 1)'
  454. }
  455. },
  456. {
  457. value: this.datafloorStatus.gunFreeNum,
  458. itemStyle: {
  459. color: '#999999'
  460. }
  461. },
  462. {
  463. value: this.datafloorStatus.gunOfflineNum,
  464. itemStyle: {
  465. color: '#FF9600'
  466. }
  467. },
  468. {
  469. value: this.datafloorStatus.gunFaultNum,
  470. itemStyle: {
  471. color: '#FF3D00'
  472. }
  473. }
  474. ]
  475. }],
  476. grid: {
  477. top: 0,
  478. left: 0,
  479. right: 0,
  480. bottom: 0,
  481. containLabel: true
  482. },
  483. }
  484. myChart.setOption(option);
  485. console.log(option)
  486. this.echartsList[key] = myChart;
  487. }
  488. }
  489. }
  490. </script>
  491. <style>
  492. page {
  493. /* background-color: #FFFFFF; */
  494. }
  495. </style>
  496. <style lang="scss">
  497. .back-blue {
  498. height: 0px;
  499. .back-color {
  500. height: 656rpx;
  501. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 53%, rgba(203, 234, 255, 0) 100%);
  502. }
  503. }
  504. .top-main {
  505. display: flex;
  506. align-items: center;
  507. justify-content: space-between;
  508. .title-main {
  509. color: rgba(51, 51, 51, 1);
  510. font-size: 32rpx;
  511. font-weight: bold;
  512. display: flex;
  513. align-items: center;
  514. }
  515. .goto-main {
  516. color: rgba(131, 131, 131, 1);
  517. font-size: 24rpx;
  518. }
  519. }
  520. .panel,
  521. .main_top {
  522. margin: 0 32rpx;
  523. }
  524. .panel {
  525. border-radius: 16rpx;
  526. background-color: rgba(255, 255, 255, 1);
  527. box-shadow: 0px 8rpx 16rpx 0px rgba(22, 119, 255, 0.1);
  528. }
  529. .main_top {
  530. margin-top: 32rpx;
  531. display: flex;
  532. justify-content: space-between;
  533. .main_top1 {
  534. display: flex;
  535. align-items: center;
  536. .logo_img {
  537. .img {
  538. border-radius: 16rpx;
  539. width: 96rpx;
  540. height: 96rpx;
  541. }
  542. margin-right: 16rpx;
  543. }
  544. .logo_text {
  545. color: #fff;
  546. .logo_text1 {
  547. font-size: 40rpx;
  548. }
  549. .logo_text2 {
  550. font-size: 32rpx;
  551. }
  552. }
  553. }
  554. .main_top2 {}
  555. }
  556. .main_navigation {
  557. margin-top: 32rpx;
  558. display: flex;
  559. justify-content: space-around;
  560. align-items: center;
  561. padding: 24rpx 0 20rpx 0;
  562. .item-na-b {
  563. border-left: 2rpx solid rgba(187, 187, 187, 0.43);
  564. height: 70rpx;
  565. }
  566. .item-na {
  567. width: 32%;
  568. text-align: center;
  569. .na-img {
  570. display: flex;
  571. justify-content: center;
  572. .img {
  573. width: 80rpx;
  574. height: 80rpx;
  575. }
  576. }
  577. }
  578. }
  579. .main_statuspanel {
  580. margin-top: 24rpx;
  581. padding: 24rpx;
  582. padding-bottom: 0;
  583. .body2pie {
  584. position: relative;
  585. top: -140rpx;
  586. height: 0px;
  587. left: 0px;
  588. width: 176rpx;
  589. text-align: center;
  590. .v1 {
  591. color: rgba(16, 16, 16, 1);
  592. font-size: 48rpx;
  593. font-weight: bold;
  594. }
  595. .v2 {
  596. color: rgba(119, 119, 119, 1);
  597. font-size: 24rpx;
  598. }
  599. }
  600. .body {
  601. display: flex;
  602. padding: 24rpx;
  603. .item-list {
  604. margin-left: 48rpx;
  605. display: flex;
  606. width: 100%;
  607. flex-wrap: wrap;
  608. .item-status {
  609. width: 50%;
  610. .num {
  611. color: rgba(51, 51, 51, 1);
  612. font-size: 36rpx;
  613. font-weight: bold;
  614. }
  615. }
  616. .statusN {
  617. display: flex;
  618. align-items: center;
  619. .statusC {
  620. margin-right: 8rpx;
  621. width: 16rpx;
  622. height: 16rpx;
  623. background-color: rgba(153, 153, 153, 1);
  624. }
  625. .status1 {
  626. background-color: rgba(0, 185, 98, 1);
  627. }
  628. .status2 {
  629. background-color: #FF3D00;
  630. }
  631. .status3 {
  632. background-color: #FF9600;
  633. }
  634. .status4 {
  635. background-color: #999999;
  636. }
  637. }
  638. }
  639. }
  640. }
  641. .main_list1 {
  642. background-color: #fff;
  643. margin-top: 24rpx;
  644. padding: 24rpx;
  645. padding-bottom: 36rpx;
  646. .title {
  647. display: flex;
  648. color: rgba(51, 51, 51, 1);
  649. font-size: 32rpx;
  650. font-weight: bold;
  651. }
  652. .list-body {
  653. padding: 24rpx 0;
  654. .item {
  655. border-bottom: 2rpx solid rgba(232, 232, 232, 1);
  656. display: flex;
  657. justify-content: space-between;
  658. padding: 12rpx 0;
  659. margin: 12rpx 0;
  660. .line1 {
  661. .value {
  662. color: #777777;
  663. font-size: 24rpx;
  664. margin-top: 8rpx;
  665. }
  666. }
  667. .line2 {
  668. display: flex;
  669. align-items: center;
  670. font-size: 32rpx;
  671. white-space: pre;
  672. }
  673. }
  674. }
  675. .item:not(:first-child) {
  676. //background-color: red;
  677. border-top: 0rpx solid rgba(232, 232, 232, 1);
  678. }
  679. .list {
  680. //padding: 24rpx 0;
  681. .item {
  682. display: flex;
  683. border-top: 2rpx solid rgba(232, 232, 232, 1);
  684. padding: 12rpx 0;
  685. margin: 12rpx 0;
  686. .img {
  687. width: 72rpx;
  688. height: 72rpx;
  689. }
  690. .body {
  691. //margin: 0 12rpx;
  692. width: 100%;
  693. .line1,
  694. .line2 {
  695. display: flex;
  696. justify-content: space-between;
  697. }
  698. .line2 {
  699. color: rgba(119, 119, 119, 1);
  700. font-size: 24rpx;
  701. margin-top: 8rpx;
  702. }
  703. .line1 {
  704. font-size: 32rpx;
  705. .status {
  706. background-color: rgba(255, 61, 0, 1);
  707. font-size: 24rpx;
  708. color: #fff;
  709. padding: 2rpx 8rpx;
  710. //border-radius: 8rpx;
  711. }
  712. .status0 {
  713. background-color: #FF7B00;
  714. }
  715. .status1 {
  716. background-color: #007aff;
  717. }
  718. .status2 {
  719. background-color: #ff9900;
  720. }
  721. .status3 {
  722. background-color: #19be6b;
  723. }
  724. .status4 {
  725. border: 2rpx solid rgba(255, 61, 0, 1);
  726. color: rgba(255, 61, 0, 1);
  727. }
  728. }
  729. .errorDesc {
  730. margin: 8rpx 0;
  731. width: 480rpx;
  732. color: #777777;
  733. font-size: 24rpx;
  734. overflow: hidden;
  735. text-overflow: ellipsis;
  736. white-space: nowrap;
  737. /* 禁止换行,强制单行 */
  738. }
  739. }
  740. }
  741. // .item:not(:last-child) {
  742. // border-bottom:2rpx solid rgba(232,232,232,1);
  743. // }
  744. }
  745. }
  746. .getHourDistanceArrNum10 {
  747. color: #FF7B00;
  748. }
  749. .getHourDistanceArrNum12 {
  750. color: red;
  751. }
  752. .getHourDistanceArrNum24 {
  753. color: #8161FF;
  754. }
  755. .badge{
  756. //width: 40rpx;
  757. //height: 40rpx;
  758. background-color: red;
  759. border-radius: 50px;
  760. display: inline-block;
  761. padding: 2rpx 8rpx;
  762. color: #fff;
  763. text-align: center;
  764. font-size: 22rpx;
  765. display: flex;
  766. align-items: center;
  767. }
  768. </style>