index.vue 20 KB

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