dataLock.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. <template>
  2. <view>
  3. <u-navbar :title="title" :backIconColor="'#ffffff'" title-color="#ffffff"
  4. :background="backgroundObj"></u-navbar>
  5. <view class="gradient-header">
  6. <view class="jpback">
  7. </view>
  8. </view>
  9. <u-picker title="日期选择" :maskCloseAble="true" v-model="body0data.tabsFrom.show" :defaultTime="body0data.tabsFrom.showIndex+'-1'"
  10. mode="time" :params="body0data.tabsFrom.params" @confirm="selector2confirm" @cancel="selector2cancel"
  11. >
  12. </u-picker>
  13. <view class="main">
  14. <view class="statistics ">
  15. <view class="data1">
  16. <view class="item">
  17. <view class="line">
  18. <view class="name">
  19. {{info.name}}
  20. </view>
  21. <view class="item-tags">
  22. <view class="tag tag1" :class="'typeN typeN'+info.type">
  23. {{info.typeN}}
  24. </view>
  25. <!-- <view class="tag" :class="'statusN statusN'+info.status">
  26. {{info.statusN}}
  27. </view>
  28. <view class="tag" :class="'lockStatusN lockStatusN'+info.lockStatus">
  29. {{info.lockStatusN}}
  30. </view> -->
  31. </view>
  32. </view>
  33. <view class="line">
  34. 编号:{{info.lockNo}}
  35. </view>
  36. <view class="line" style=" color: #909399;">
  37. 更新时间:{{info.lastOnlineTime}}
  38. </view>
  39. </view>
  40. <view class="value" v-if="0">
  41. <u-button type="primary" size="mini" shape="circle">
  42. <img class="img" src="@/assets/img/button/lock.svg" alt="">
  43. 降锁
  44. </u-button>
  45. </view>
  46. </view>
  47. <view class="top-span">
  48. <view class="item-span">
  49. <img src="@/assets/img/topspan/span1.png">
  50. <span>地锁</span>
  51. <span v-if="info.parkingStatus==1" style="color: #1677FF;" >有车</span>
  52. <span v-else-if="info.parkingStatus==0" style="color: #00B962;" >无车</span>
  53. </view>
  54. <view class="item-span">
  55. <img src="@/assets/img/topspan/span2.png">
  56. <span>地锁</span>
  57. <span style="color: red;"
  58. v-if="info.lockStatus==4||info.lockStatus==0">
  59. 错误</span>
  60. <span v-else-if="info.lockStatus==1" style="color: #1677FF;" >升起</span>
  61. <span v-else-if="info.lockStatus==2" style="color: #00B962;" >降落</span>
  62. <span v-else >其他</span>
  63. </view>
  64. <view class="item-span">
  65. <img src="@/assets/img/topspan/span3.png">
  66. <span>电压</span>
  67. <span v-if="info.batteryLevel">{{info.batteryLevel}}V</span>
  68. <span v-else>未知</span>
  69. </view>
  70. <view class="item-span">
  71. <img src="@/assets/img/topspan/span4.png">
  72. <span>网络</span>
  73. <span v-if="info.status==1" style="color: #00B962;" >在线</span>
  74. <span v-else-if="info.status==0" style="color: red" >离线</span>
  75. </view>
  76. <view class="item-span">
  77. <img src="@/assets/img/topspan/span5.png">
  78. <span>雷达</span>
  79. <span v-if="info.radarStatus==0" style="color: #00B962;" >正常</span>
  80. <span v-else-if="info.radarStatus==1" style="color: red" >故障</span>
  81. </view>
  82. </view>
  83. </view>
  84. <view class=" no_statistics">
  85. <view class="data2">
  86. <view class="top">
  87. <view class="item">
  88. <view class="name">
  89. 停车时长
  90. </view>
  91. <view class="value" v-html="durationShow()">
  92. </view>
  93. </view>
  94. <view class="item">
  95. <view class="name">
  96. 使用率
  97. </view>
  98. <view class="value" v-if="lockUsageRateData&&lockUsageRateData.usageRate">
  99. {{lockUsageRateData.usageRate=='∞'?'/':lockUsageRateData.usageRate+'%'}}
  100. </view>
  101. </view>
  102. <view class="item">
  103. <view class="name">
  104. 异常次数
  105. </view>
  106. <view class="value">
  107. 0
  108. </view>
  109. </view>
  110. </view>
  111. <view class="body">
  112. <u-radio-group v-model="radiovalue" @change="radioGroupChange">
  113. <u-radio @change="radioChange" v-for="(item, index) in radiolist" :key="index"
  114. :name="item.value">
  115. {{item.name}}
  116. </u-radio>
  117. </u-radio-group>
  118. </view>
  119. </view>
  120. </view>
  121. <u-picker v-model="body2data.vue.show" :params="body2data.vue.params" :default-time="body2data.query.startTime"
  122. @confirm="body2dataconfirm" mode="time"></u-picker>
  123. <view class="statistics ">
  124. <view class="title">
  125. <view class="icon">
  126. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  127. </view>
  128. <view class="text">
  129. <view>地锁平均占用率(%)</view>
  130. <view class="tag" @click="body2data.vue.show=true">{{body2data.vue.queryN}}<u-icon
  131. name="arrow-down"></u-icon></view>
  132. </view>
  133. </view>
  134. <view class="contentBody">
  135. <jpContent :status="jpContentMap.body2">
  136. <view class="body2lineChart">
  137. <view id="body2line1" class="body2line">
  138. </view>
  139. </view>
  140. </jpContent>
  141. </view>
  142. </view>
  143. <view class="statistics " v-if="0">
  144. <view class="title">
  145. <view class="icon">
  146. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  147. </view>
  148. <view class="text">
  149. <view>地锁历史异常状态</view>
  150. </view>
  151. </view>
  152. <view class="contentBody">
  153. <jpContent :status="jpContentMap.body1">
  154. <view class="body1pieChart">
  155. <view id="body1pie1" class="body1pie">
  156. </view>
  157. </view>
  158. </jpContent>
  159. </view>
  160. </view>
  161. <view class="statistics ">
  162. <view class="title">
  163. <view class="icon">
  164. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  165. </view>
  166. <view class="text">
  167. <view>高频使用时段分布</view>
  168. </view>
  169. </view>
  170. <view class="contentBody">
  171. <jpContent :status="jpContentMap.body3">
  172. <view class="body3barChart">
  173. <view id="body3bar1" class="body3bar">
  174. </view>
  175. </view>
  176. </jpContent>
  177. </view>
  178. </view>
  179. <view class="statistics ">
  180. <view class="title">
  181. <view class="icon">
  182. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  183. </view>
  184. <view class="text">
  185. <view>用户停留时长分群特征</view>
  186. </view>
  187. </view>
  188. <view class="contentBody">
  189. <jpContent :status="jpContentMap.body4">
  190. <view class="body4pieChart">
  191. <view id="body4pie1" class="body4pie">
  192. </view>
  193. </view>
  194. </jpContent>
  195. </view>
  196. </view>
  197. <view class="statistics " v-if="0">
  198. <view class="title">
  199. <view class="icon">
  200. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  201. </view>
  202. <view class="text">
  203. <view>高频使用用户TOP</view>
  204. </view>
  205. </view>
  206. <view class="contentBody">
  207. <jpContent :status="jpContentMap.body5">
  208. <view class="body5data">
  209. <view class="line">
  210. <view class="data">
  211. <view class="item">
  212. 王二
  213. </view>
  214. <view class="value">
  215. 鄂DDT1268
  216. </view>
  217. <view class="value">
  218. 28次
  219. </view>
  220. </view>
  221. <view class="goto">
  222. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  223. </view>
  224. </view>
  225. <view class="line">
  226. <view class="data">
  227. <view class="item">
  228. 王三
  229. </view>
  230. <view class="value">
  231. 鄂DDT1268
  232. </view>
  233. <view class="value">
  234. 8次
  235. </view>
  236. </view>
  237. <view class="goto">
  238. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  239. </view>
  240. </view>
  241. </view>
  242. </jpContent>
  243. </view>
  244. </view>
  245. <!-- end-->
  246. <view class="statistics " v-if="0">
  247. <view class="title">
  248. <view class="icon">
  249. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  250. </view>
  251. <view class="text">
  252. <view>白名单用户清单</view>
  253. <view class="check-all">查看全部<u-icon name="arrow-right"></u-icon></view>
  254. </view>
  255. </view>
  256. <view class="contentBody">
  257. <jpContent :status="jpContentMap.body7">
  258. <view class="body7data">
  259. <view class="line">
  260. <view class="value">
  261. 用户姓名
  262. </view>
  263. <view class="value">
  264. 车主身份
  265. </view>
  266. <view class="value">
  267. 使用次数
  268. </view>
  269. </view>
  270. <view class="line">
  271. <view class="value">
  272. 孙培军
  273. </view>
  274. <view class="value">
  275. 地锁所有人
  276. </view>
  277. <view class="value">
  278. 22
  279. </view>
  280. </view>
  281. <view class="line">
  282. <view class="value">
  283. 刘洋
  284. </view>
  285. <view class="value">
  286. 白名单用户
  287. </view>
  288. <view class="value">
  289. 11
  290. </view>
  291. </view>
  292. </view>
  293. </jpContent>
  294. </view>
  295. </view>
  296. <!-- end-->
  297. <view class="statistics " v-if="0" >
  298. <view class="title">
  299. <view class="icon">
  300. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  301. </view>
  302. <view class="text">
  303. <view>地锁异常记录</view>
  304. <view class="check-all">查看全部<u-icon name="arrow-right"></u-icon></view>
  305. </view>
  306. </view>
  307. <view class="contentBody" >
  308. <jpContent :status="jpContentMap.body6">
  309. <view class="body6main">
  310. <view class="line" v-for="(item,index) in abnormalRecordsList" :key="index">
  311. <view class="abnormal-item">
  312. <!-- @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)"
  313. -->
  314. <view class="item-title">
  315. <view class="name">
  316. <span v-if="item.level==1" class="level level1 ">一级</span>
  317. <span v-if="item.level==2" class="level level2">二级</span>
  318. {{item.content}}
  319. </view>
  320. <view class="date"
  321. style="display: flex; justify-content: space-between;margin-top: 4rpx;">
  322. <view>{{item.title}}</view>
  323. <view>{{item.createTime}}</view>
  324. </view>
  325. </view>
  326. </view>
  327. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  328. </view>
  329. </view>
  330. </jpContent>
  331. </view>
  332. </view>
  333. <!-- end-->
  334. <view class="body8data-popup">
  335. <u-popup v-model="body8data.popup" mode="bottom" height="80%" border-radius="12">
  336. <view class="content">
  337. <view class="headline">
  338. 地锁信息
  339. </view>
  340. <view class="infos">
  341. <view class="item">
  342. <view class="item-title">
  343. 地锁名称
  344. </view>
  345. <view class="item-value">
  346. {{info.name}}
  347. </view>
  348. </view>
  349. <view class="item">
  350. <view class="item-title">
  351. 地锁管理者
  352. </view>
  353. <view class="item-value">
  354. {{info.contacts?info.contacts:info.administrator}}
  355. </view>
  356. </view>
  357. <view class="item">
  358. <view class="item-title">
  359. 地锁类型
  360. </view>
  361. <view class="item-value">
  362. {{info.typeN}}
  363. </view>
  364. </view>
  365. <view class="item">
  366. <view class="item-title">
  367. 地锁状态
  368. </view>
  369. <view class="item-value">
  370. {{info.lockStatusN}}
  371. </view>
  372. </view>
  373. <view class="item">
  374. <view class="item-title">
  375. 地锁型号
  376. </view>
  377. <view class="item-value">
  378. {{info.model}}
  379. </view>
  380. </view>
  381. <view class="item">
  382. <view class="item-title">
  383. 出厂编号
  384. </view>
  385. <view class="item-value">
  386. <span>{{info.factoryNumber}}</span>
  387. </view>
  388. </view>
  389. <view class="item">
  390. <view class="item-title">
  391. 固件版号
  392. </view>
  393. <view class="item-value">
  394. {{info.solidVersion}}
  395. </view>
  396. </view>
  397. <view class="item">
  398. <view class="item-title">
  399. 防护等级
  400. </view>
  401. <view class="item-value">
  402. {{info.protectionGrade}}
  403. </view>
  404. </view>
  405. <view class="item">
  406. <view class="item-title">
  407. 生产日期
  408. </view>
  409. <view class="item-value">
  410. {{info.manufactureDate}}
  411. </view>
  412. </view>
  413. <view class="item">
  414. <view class="item-title">
  415. 标准依据
  416. </view>
  417. <view class="item-value">
  418. {{info.enablingTime}}
  419. </view>
  420. </view>
  421. <view class="item">
  422. <view class="item-title">
  423. 联网卡号
  424. </view>
  425. <view class="item-value">
  426. {{info.standardBasis}}
  427. </view>
  428. </view>
  429. <view class="item" v-if="info.tariffStandard">
  430. <view class="item-title">
  431. 资费标准
  432. </view>
  433. <view class="item-value">
  434. {{info.tariffStandard}}元/月
  435. </view>
  436. </view>
  437. <view class="item">
  438. <view class="item-title">
  439. 地锁启动时间
  440. </view>
  441. <view class="item-value">
  442. {{info.activationTime}}
  443. </view>
  444. </view>
  445. <view class="item">
  446. <view class="item-title">
  447. 地锁质保期
  448. </view>
  449. <view class="item-value">
  450. {{info.shelfLife}}年
  451. </view>
  452. </view>
  453. </view>
  454. <view class="floating-view">
  455. <button class="get floating-button" @click="body8data.popup=false">知道了</button>
  456. </view>
  457. </view>
  458. </u-popup>
  459. </view>
  460. <view class="statistics ">
  461. <view class="title">
  462. <view class="icon">
  463. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  464. </view>
  465. <view class="text">
  466. <view>地锁信息</view>
  467. <view class="check-all" @click="body8data.popup=true" >查看全部<u-icon name="arrow-right"></u-icon></view>
  468. </view>
  469. </view>
  470. <view class="contentBody">
  471. <jpContent :status="jpContentMap.body8">
  472. <view class="body8main">
  473. <view class="line">
  474. <view class="value">
  475. 地锁型号
  476. </view>
  477. <view class="value">
  478. 出厂编号
  479. </view>
  480. <view class="value">
  481. 固件版号
  482. </view>
  483. </view>
  484. <view class="line">
  485. <view class="value">
  486. {{info.model}}
  487. </view>
  488. <view class="value">
  489. {{info.factoryNumber}}
  490. </view>
  491. <view class="value">
  492. {{info.solidVersion}}
  493. </view>
  494. </view>
  495. </view>
  496. </jpContent>
  497. </view>
  498. </view>
  499. <!-- end-->
  500. <u-divider border-color="#CFD2D5">已经到底了</u-divider>
  501. </view>
  502. </view>
  503. </template>
  504. <script>
  505. import jpContent from '@/components/JPcontent.vue'
  506. import * as echarts from 'echarts';
  507. import * as API from '@/apis/pagejs/deviceTab.js'
  508. import * as API_index from '@/apis/pagejs/index.js'
  509. import {
  510. parseUnixTime,
  511. beforeTimeStamp,
  512. newDate
  513. } from '@/apis/utils'
  514. export default {
  515. components: {
  516. jpContent
  517. },
  518. data() {
  519. return {
  520. id:"",
  521. info:{},
  522. echartsList: {},
  523. lockUsageRateData:{},
  524. body2data: {
  525. query: {},
  526. vue: {
  527. queryN: "",
  528. show: false,
  529. params: {
  530. year: true,
  531. month: true,
  532. day: false,
  533. hour: false,
  534. minute: false,
  535. second: false
  536. }
  537. },
  538. data: {}
  539. },
  540. body0data: {
  541. query: {},
  542. data: {},
  543. tabsFrom:{
  544. show:false,
  545. showIndex:"",
  546. params:{
  547. year: true,
  548. month: true,
  549. day: false,
  550. hour: false,
  551. minute: false,
  552. second: false
  553. }
  554. }
  555. },
  556. body4data: {
  557. query: {},
  558. data: {}
  559. },
  560. body8data: {
  561. query: {},
  562. data: {},
  563. popup:false,
  564. },
  565. body3data: {
  566. query: {},
  567. data: {}
  568. },
  569. jpContentMap: {
  570. body1: 2,
  571. body2: 2,
  572. body3: 2,
  573. body4: 2,
  574. body5: 2,
  575. body6: 2,
  576. body7: 2,
  577. body8: 2,
  578. body9: 2,
  579. body10: 2,
  580. },
  581. title: "",
  582. backgroundObj: {
  583. background: '#307AF6'
  584. },
  585. radiovalue: "1",
  586. radiolist: [{
  587. name: '上月',
  588. value: "3"
  589. },
  590. {
  591. name: '当月',
  592. value: "1"
  593. },
  594. {
  595. name: '今日',
  596. value: "2"
  597. }, {
  598. name: '当年',
  599. value: "4"
  600. }, {
  601. name: '合计',
  602. value: "5"
  603. },
  604. {
  605. name: '指定月份',
  606. value: "0"
  607. }
  608. ],
  609. abnormalRecordsList: [{
  610. level: 1,
  611. content: "1111111",
  612. title: "11",
  613. createTime: "123:123"
  614. },
  615. {
  616. level: 2,
  617. content: "1111111",
  618. title: "11",
  619. createTime: "123:123"
  620. }
  621. ],
  622. };
  623. },
  624. onLoad(op) {
  625. if(op.id){
  626. this.id=op.id
  627. this.init();
  628. }
  629. this.body0data.tabsFrom.showIndex=new Date().getFullYear()+'-'+(new Date().getMonth()+1)
  630. },
  631. onReady() {
  632. // if(this.id){
  633. // }
  634. },
  635. methods: {
  636. durationShow(){
  637. if(this.lockUsageRateData.duration){
  638. var m=this.lockUsageRateData.duration%60
  639. var h=parseInt(this.lockUsageRateData.duration/60)
  640. if(h>0){
  641. if(h>24){
  642. var day=parseInt(h/24)
  643. h=h%24
  644. var px= uni.upx2px(12*2)
  645. if(day>100){
  646. return `${day}<span style='font-size: ${px}px;'>天</span>`
  647. }else{
  648. return `${day}<span style='font-size: ${px}px;'>天</span>${h}h`
  649. }
  650. }else{
  651. return `${h}h${m}m`
  652. }
  653. }else{
  654. return `${m}m`
  655. }
  656. }else{
  657. return '0m'
  658. }
  659. },
  660. radioChange(e) {
  661. // console.log(e);
  662. },
  663. // 选中任一radio时,由radio-group触发
  664. selector2confirm(e){
  665. var time=e.year + "-" + e.month
  666. this.radiolist[5].name=e.year + "年" + e.month+"月"
  667. this.body0data.tabsFrom.showIndex=time
  668. this.getLockUsageRate()
  669. },
  670. selector2cancel(){
  671. this.radiovalue= "1"
  672. this.radiolist[5].name="指定月份"
  673. this.getLockUsageRate()
  674. },
  675. radioGroupChange(e) {
  676. console.log(e);
  677. if(e==0){
  678. this.body0data.tabsFrom.show=true
  679. }else{
  680. this.radiolist[5].name="指定月份"
  681. this.getLockUsageRate()
  682. }
  683. },
  684. init() {
  685. this.getInfo()
  686. this.getLockUsageRate()
  687. this.occupancyByTime(1)
  688. //this.getbody1()
  689. //this.getbody2()
  690. this.occupancyByTimeBar(1);
  691. //this.getbody3()
  692. //this.getbody4()
  693. this.durationDistribution()
  694. },
  695. occupancyByTime(init) {
  696. if (init) {
  697. var date = new Date();
  698. this.body2data.vue.queryN = date.getFullYear() + "年" + (date.getMonth() + 1) + '月';
  699. this.body2data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  700. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  701. this.body2data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  702. }
  703. this.jpContentMap.body2 = 0
  704. this.body2data.query.floorId = this.id
  705. API_index.occupancyByTime(
  706. this.body2data.query
  707. ).then((response) => {
  708. this.body2data.data = [
  709. ...response.data.locksTimeList,
  710. // ...response.data.locksTimeList,
  711. ];
  712. if (this.body2data.data.length == 0) {
  713. this.jpContentMap.body2 = 1
  714. } else {
  715. this.jpContentMap.body2 = 2
  716. this.getbody2()
  717. }
  718. }).catch(error => {
  719. uni.showToast({
  720. title: error,
  721. icon: "none"
  722. })
  723. })
  724. },
  725. body2dataconfirm(e) {
  726. var date = new Date(e.year + "-" + e.month + "-1");
  727. this.body2data.vue.queryN = date.getFullYear() + "年" + (date.getMonth() + 1) + '月';
  728. this.body2data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  729. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  730. this.body2data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  731. this.occupancyByTime()
  732. },
  733. getLockUsageRate(){
  734. var obj = {
  735. floorId: this.id,
  736. queryType:this.radiovalue
  737. }
  738. if(this.radiovalue==0){
  739. obj.queryMonth=this.body0data.tabsFrom.showIndex
  740. }
  741. API.lockUsageRate(obj).then((res) => {
  742. this.lockUsageRateData=res.data
  743. }).catch(error => {
  744. uni.hideLoading();
  745. uni.showToast({
  746. title: error,
  747. icon: "none"
  748. })
  749. })
  750. },
  751. durationDistribution() {
  752. this.jpContentMap.body4 = 0
  753. var date = new Date();
  754. //test
  755. //this.body4data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  756. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  757. // this.body4data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  758. this.body4data.query.floorId = this.id
  759. API_index.durationDistribution(
  760. this.body4data.query
  761. ).then((response) => {
  762. this.body4data.data = response.data.distribution;
  763. if (this.body4data.data.length == 0) {
  764. this.jpContentMap.body4 = 1
  765. } else {
  766. this.jpContentMap.body4 = 2
  767. //this.getbody3()
  768. this.getbody4()
  769. }
  770. }).catch(error => {
  771. uni.showToast({
  772. title: error,
  773. icon: "none"
  774. })
  775. })
  776. },
  777. getInfo(){
  778. uni.showLoading({
  779. title: "加载中",
  780. mask: true,
  781. })
  782. var obj = {
  783. id: this.id
  784. }
  785. this.jpContentMap.body8 =0
  786. API.lockDetails(obj).then((res) => {
  787. this.info = res.data.floorlockInfo
  788. this.title =this.info.parkingName
  789. uni.hideLoading();
  790. this.jpContentMap.body8 =2
  791. //this.getWhiteList()
  792. }).catch(error => {
  793. uni.hideLoading();
  794. uni.showToast({
  795. title: error,
  796. icon: "none"
  797. })
  798. })
  799. },
  800. getbody1() {
  801. var key = "body1pie1"
  802. var myChart = this.echartsList[key];
  803. if (!myChart) {
  804. myChart = echarts.init(document.getElementById(key), null, {
  805. width: uni.upx2px(300 * 2),
  806. height: uni.upx2px(170 * 2)
  807. })
  808. }
  809. myChart.clear()
  810. var option = {
  811. grid: {
  812. top: 20,
  813. left: 0,
  814. right: 0,
  815. bottom: 0,
  816. containLabel: true
  817. },
  818. series: [{
  819. type: 'pie',
  820. radius: ['80%', '50%'],
  821. radius: [35, 50],
  822. data: [{
  823. itemStyle: {
  824. color: "#EB3C31"
  825. },
  826. value: 1048,
  827. name: '0.5小时\n20%',
  828. },
  829. {
  830. itemStyle: {
  831. color: "#EF8132"
  832. },
  833. value: 735,
  834. name: '2小时\n10%'
  835. },
  836. {
  837. itemStyle: {
  838. color: "#929292"
  839. },
  840. value: 580,
  841. name: '2-6小时\n30%'
  842. },
  843. ]
  844. }]
  845. };
  846. myChart.setOption(option);
  847. this.echartsList[key] = myChart;
  848. },
  849. getbody4() {
  850. var key = "body4pie1"
  851. var myChart = this.echartsList[key];
  852. if (!myChart) {
  853. myChart = echarts.init(document.getElementById(key), null, {
  854. width: uni.upx2px(300 * 2),
  855. height: uni.upx2px(170 * 2)
  856. })
  857. }
  858. myChart.clear()
  859. var dataApi = this.body4data.data;
  860. var data = []
  861. var num = 0
  862. var sum = 0
  863. Object.keys(dataApi).forEach(key1 => {
  864. num += dataApi[key1]
  865. });
  866. var i = 0
  867. Object.keys(dataApi).forEach(key1 => {
  868. var value = dataApi[key1]
  869. if(value!=0){
  870. var obj = {
  871. value: value,
  872. name: key1
  873. }
  874. if (num != 0) {
  875. var valueInt = parseInt(value / num * 100)
  876. if (valueInt == 0 && value != 0) {
  877. valueInt = 1
  878. }
  879. sum += valueInt;
  880. if (i == Object.keys(dataApi).length - 1) {
  881. if (sum != 100) {
  882. valueInt += (100 - sum)
  883. }
  884. }
  885. obj.name += '\n' + (valueInt) + '%'
  886. }
  887. data.push(obj)
  888. }
  889. i++;
  890. });
  891. var option = {
  892. grid: {
  893. top: 20,
  894. left: 0,
  895. right: 0,
  896. bottom: 0,
  897. containLabel: true
  898. },
  899. series: [{
  900. type: 'pie',
  901. radius: ['80%', '50%'],
  902. radius: [45, 60],
  903. data: data
  904. }]
  905. };
  906. myChart.setOption(option);
  907. this.echartsList[key] = myChart;
  908. },
  909. occupancyByTimeBar(init) {
  910. if (init) {
  911. var date = new Date();
  912. //test
  913. //this.body3data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  914. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  915. //this.body3data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  916. }
  917. this.jpContentMap.body3 = 0
  918. this.body3data.query.floorId = this.id
  919. API_index.occupancyByTimeBar(
  920. this.body3data.query
  921. ).then((response) => {
  922. this.body3data.data = [
  923. ...response.data.locksTimeList,
  924. // ...response.data.locksTimeList,
  925. ];
  926. if (this.body3data.data.length == 0) {
  927. this.jpContentMap.body3 = 1
  928. } else {
  929. this.jpContentMap.body3 = 2
  930. this.getbody3()
  931. }
  932. }).catch(error => {
  933. uni.showToast({
  934. title: error,
  935. icon: "none"
  936. })
  937. })
  938. },
  939. getbody3() {
  940. var key = "body3bar1"
  941. var myChart = this.echartsList[key];
  942. if (!myChart) {
  943. myChart = echarts.init(document.getElementById(key), null, {
  944. width: uni.upx2px(300 * 2),
  945. height: uni.upx2px(170 * 2)
  946. })
  947. }
  948. var dataApi = this.body3data.data;
  949. myChart.clear()
  950. var data1 = []
  951. var data2 = [] //useDays
  952. var i = 0
  953. dataApi[0].timeUseList.forEach(item => {
  954. Object.keys(item).forEach(key1 => {
  955. data1.push(key1 + '点')
  956. var num = 0
  957. dataApi.forEach(item2 => {
  958. num += item2.timeUseList[i][key1].useDays
  959. })
  960. data2.push(num)
  961. });
  962. i += 1
  963. })
  964. var axisLabel = {
  965. rotate: 40,
  966. interval: 0,
  967. textStyle: {
  968. color: "#333"
  969. }
  970. }
  971. if (data1.length < 7) {
  972. axisLabel = {
  973. interval: 0,
  974. textStyle: {
  975. color: "#333"
  976. },
  977. }
  978. } else {
  979. axisLabel.interval = 0;
  980. }
  981. var option = {
  982. xAxis: {
  983. type: 'category',
  984. data: data1,
  985. axisLabel: axisLabel,
  986. },
  987. tooltip: {
  988. trigger: 'axis',
  989. axisPointer: {
  990. type: 'shadow'
  991. },
  992. formatter: function(params) {
  993. var result = params[0].name + '<br/>';
  994. for (var i = 0; i < params.length; i++) {
  995. result += params[i].marker+ ' ' + params[i].value + '次<br/>';
  996. }
  997. return result;
  998. }
  999. },
  1000. yAxis: {
  1001. type: 'value'
  1002. },
  1003. grid: {
  1004. top: 20,
  1005. left: 0,
  1006. right: 0,
  1007. bottom: 0,
  1008. containLabel: true
  1009. },
  1010. series: [{
  1011. itemStyle: {
  1012. color: "#5A88E5"
  1013. },
  1014. data: data2,
  1015. type: 'bar'
  1016. }]
  1017. };
  1018. myChart.setOption(option);
  1019. this.echartsList[key] = myChart;
  1020. },
  1021. getbody2() {
  1022. var key = "body2line1"
  1023. var myChart = this.echartsList[key];
  1024. var dataApi = this.body2data.data;
  1025. var head = 20 * (parseInt(dataApi.length / 4)) + 20
  1026. if (!myChart) {
  1027. myChart = echarts.init(document.getElementById(key), null, {
  1028. width: uni.upx2px(300 * 2),
  1029. height: uni.upx2px((170 + head) * 2)
  1030. })
  1031. }
  1032. myChart.clear()
  1033. var data1 = []
  1034. var series = [];
  1035. dataApi.forEach(item => {
  1036. var obj = {
  1037. name: item.lockName,
  1038. areaStyle: {},
  1039. itemStyle: {
  1040. color: "#BBD4FB"
  1041. },
  1042. label: {
  1043. show: true,
  1044. position: 'top',
  1045. color: "#307AF6"
  1046. },
  1047. data: [],
  1048. type: 'line'
  1049. }
  1050. if (dataApi.length == 1) {
  1051. obj.label.color = "#307AF6"
  1052. obj.areaStyle = {}
  1053. obj.itemStyle = {
  1054. color: "#BBD4FB"
  1055. }
  1056. }
  1057. item.timeUseList.forEach(item2 => {
  1058. Object.keys(item2).forEach(key1 => {
  1059. obj.data.push(item2[key1].useRate)
  1060. });
  1061. })
  1062. series.push(obj)
  1063. })
  1064. dataApi[0].timeUseList.forEach(item => {
  1065. Object.keys(item).forEach(key1 => {
  1066. data1.push(key1)
  1067. });
  1068. })
  1069. var axisLabel = {
  1070. rotate: 40,
  1071. interval: 0,
  1072. textStyle: {
  1073. color: "#333"
  1074. }
  1075. }
  1076. if (data1.length < 7) {
  1077. axisLabel = {
  1078. interval: 0,
  1079. textStyle: {
  1080. color: "#333"
  1081. },
  1082. }
  1083. } else {
  1084. axisLabel.interval = 0;
  1085. }
  1086. var option = {
  1087. xAxis: {
  1088. type: 'category',
  1089. data: data1,
  1090. axisLabel: axisLabel,
  1091. },
  1092. tooltip: {
  1093. trigger: 'axis',
  1094. axisPointer: {
  1095. type: 'shadow'
  1096. },
  1097. formatter: function(params) {
  1098. var result = params[0].name + '点<br/>';
  1099. for (var i = 0; i < params.length; i++) {
  1100. result += params[i].marker+params[i].seriesName + ': ' + params[i].value + '%<br/>';
  1101. }
  1102. return result;
  1103. }
  1104. },
  1105. yAxis: {
  1106. type: 'value'
  1107. },
  1108. grid: {
  1109. top: (20 + head),
  1110. left: 0,
  1111. right: 0,
  1112. bottom: 0,
  1113. containLabel: true
  1114. },
  1115. series: series,
  1116. };
  1117. myChart.setOption(option);
  1118. this.echartsList[key] = myChart;
  1119. },
  1120. }
  1121. }
  1122. </script>
  1123. <style lang="scss">
  1124. .gradient-header {
  1125. height: 0px;
  1126. }
  1127. .jpback {
  1128. height: 268rpx;
  1129. background: linear-gradient(180deg, rgba(22, 119, 255, 1) 20%, rgba(121, 177, 255, 1) 100%);
  1130. }
  1131. .main {
  1132. padding: 32rpx;
  1133. .no_statistics {
  1134. margin-bottom: 24rpx;
  1135. }
  1136. .statistics {
  1137. border-radius: 8px;
  1138. background-color: rgba(255, 255, 255, 1);
  1139. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  1140. margin-bottom: 24rpx;
  1141. padding: 40rpx;
  1142. .title {
  1143. display: flex;
  1144. align-items: center;
  1145. margin-bottom: 32rpx;
  1146. font-weight: bold;
  1147. .img {
  1148. width: 36rpx;
  1149. height: 36rpx;
  1150. vertical-align: middle;
  1151. border-radius: 999px;
  1152. }
  1153. .change {
  1154. display: flex;
  1155. align-items: center;
  1156. .change-img {
  1157. width: 32rpx;
  1158. height: 32rpx;
  1159. vertical-align: middle;
  1160. }
  1161. text {
  1162. margin-left: 8rpx;
  1163. }
  1164. }
  1165. .text {
  1166. color: rgba(16, 16, 16, 1);
  1167. font-size: 36rpx;
  1168. margin-left: 16rpx;
  1169. display: flex;
  1170. justify-content: space-between;
  1171. align-items: center;
  1172. width: 100%;
  1173. .tag {
  1174. border-radius: 4px;
  1175. border: 1px solid rgba(187, 187, 187, 1);
  1176. color: rgba(51, 51, 51, 1);
  1177. font-size: 24rpx;
  1178. padding: 1px 8rpx;
  1179. margin-left: 8rpx;
  1180. }
  1181. }
  1182. .change {
  1183. margin-left: 16rpx;
  1184. font-size: 24rpx;
  1185. color: #838383;
  1186. }
  1187. .check-all {
  1188. margin-left: auto;
  1189. color: rgba(131, 131, 131, 1);
  1190. font-size: 24rpx;
  1191. }
  1192. }
  1193. }
  1194. }
  1195. .data1 {
  1196. display: flex;
  1197. align-items: center;
  1198. justify-content: space-between;
  1199. .item {
  1200. .line{
  1201. display: flex;
  1202. align-items: center;
  1203. }
  1204. .name {
  1205. color: rgba(51, 51, 51, 1);
  1206. font-size: 36rpx;
  1207. font-weight: bold;
  1208. margin-right: 8rpx;
  1209. }
  1210. .item-tags {
  1211. display: flex;
  1212. .tag {
  1213. border-radius: 4px;
  1214. background-color: rgba(39, 177, 72, 1);
  1215. color: rgba(255, 255, 255, 1);
  1216. font-size: 24rpx;
  1217. padding: 2rpx 8rpx;
  1218. margin-right: 8rpx;
  1219. }
  1220. .typeN1 {
  1221. background-color: rgba(22, 119, 255, 1);
  1222. }
  1223. .typeN2{
  1224. background-color: #8161ff;
  1225. background-color: #8161ff;
  1226. }
  1227. .statusN{
  1228. background-color:#838383
  1229. }
  1230. .lockStatusN {
  1231. background-color: rgba(153, 153, 153, 1);
  1232. }
  1233. .lockStatusN2 {
  1234. background-color: #03A9F4
  1235. }
  1236. }
  1237. }
  1238. .value {
  1239. .img {
  1240. margin-right: 8rpx;
  1241. width: 32rpx;
  1242. height: 32rpx;
  1243. }
  1244. }
  1245. }
  1246. .data2 {
  1247. height: 336rpx;
  1248. padding: 32rpx;
  1249. border-radius: 12px;
  1250. background: linear-gradient(180deg, rgba(222, 222, 222, 1) 3%, rgba(255, 255, 255, 1) 5%, rgba(232, 232, 232, 1) 56%, rgba(255, 255, 255, 1) 59%, rgba(236, 236, 236, 1) 95%, rgba(215, 215, 215, 1) 98%);
  1251. .top {
  1252. background-repeat: round;
  1253. background-image: url('@/assets/img/deviceTab/index3-2.png');
  1254. display: flex;
  1255. justify-content: space-around;
  1256. text-align: center;
  1257. height: 152rpx;
  1258. align-items: center;
  1259. .item {
  1260. .name {
  1261. color: rgba(16, 16, 16, 1);
  1262. font-size: 32rpx;
  1263. }
  1264. .value {
  1265. color: rgba(16, 16, 16, 1);
  1266. font-size: 48rpx;
  1267. font-weight: bold;
  1268. }
  1269. }
  1270. }
  1271. .body {
  1272. padding: 16rpx;
  1273. }
  1274. }
  1275. .body5data {
  1276. .line {
  1277. display: flex;
  1278. align-items: center;
  1279. justify-content: space-between;
  1280. .data {
  1281. display: flex;
  1282. width: 80%;
  1283. justify-content: space-between;
  1284. .item {
  1285. color: rgba(51, 51, 51, 1);
  1286. font-size: 16px;
  1287. }
  1288. .value {
  1289. color: rgba(119, 119, 119, 1);
  1290. font-size: 16px;
  1291. }
  1292. }
  1293. }
  1294. }
  1295. .body7data {
  1296. .line {
  1297. display: flex;
  1298. align-items: center;
  1299. justify-content: space-between;
  1300. .value {
  1301. width: 33%;
  1302. padding: 16rpx;
  1303. color: rgba(51, 51, 51, 1);
  1304. }
  1305. .value:nth-child(3) {
  1306. text-align: center;
  1307. }
  1308. }
  1309. /* 隔行变色: 偶数行设置背景色 */
  1310. .line:nth-child(odd) {
  1311. background-color: #F2F2F2;
  1312. /* 偶数行 */
  1313. }
  1314. .line:nth-child(even) {
  1315. background-color: #FFFFFF
  1316. /* 奇数行 */
  1317. }
  1318. }
  1319. .body8main {
  1320. .line {
  1321. display: flex;
  1322. align-items: center;
  1323. justify-content: space-between;
  1324. .value {
  1325. width: 33%;
  1326. padding: 16rpx;
  1327. text-align: center;
  1328. overflow: hidden;
  1329. white-space: nowrap;
  1330. text-overflow: ellipsis;
  1331. }
  1332. }
  1333. /* 隔行变色: 偶数行设置背景色 */
  1334. .line:nth-child(odd) {
  1335. color: rgba(119, 119, 119, 1);
  1336. font-size: 14px;
  1337. /* 偶数行 */
  1338. }
  1339. .line:nth-child(even) {
  1340. color: rgba(16, 16, 16, 1);
  1341. font-size: 16px;
  1342. /* 奇数行 */
  1343. }
  1344. }
  1345. .body6main {
  1346. .line {
  1347. display: flex;
  1348. justify-content: space-between;
  1349. }
  1350. .abnormal-item:last-of-type {
  1351. border-bottom: none !important;
  1352. padding-bottom: 0;
  1353. }
  1354. .abnormal-item {
  1355. width: 100%;
  1356. display: flex;
  1357. justify-content: space-between;
  1358. align-items: center;
  1359. padding: 16rpx;
  1360. border-bottom: 1px solid rgba(245, 245, 245, 1);
  1361. .item-title {
  1362. .level {
  1363. color: #fff;
  1364. border-radius: 8rpx;
  1365. font-weight: 400;
  1366. padding: 4rpx 8rpx;
  1367. font-size: 22rpx;
  1368. margin-right: 2px;
  1369. }
  1370. .level1 {
  1371. background: red;
  1372. }
  1373. .level2 {
  1374. background-color: rgba(255, 123, 0, 1);
  1375. }
  1376. color: rgba(51, 51, 51, 1);
  1377. width: 100%;
  1378. .img {
  1379. width: 32rpx;
  1380. height: 32rpx;
  1381. margin-right: 8rpx;
  1382. }
  1383. .name {
  1384. color: rgba(51, 51, 51, 1);
  1385. font-weight: bold;
  1386. overflow: hidden;
  1387. white-space: nowrap;
  1388. text-overflow: ellipsis;
  1389. }
  1390. .date {
  1391. color: rgba(119, 119, 119, 1);
  1392. font-size: 24rpx;
  1393. }
  1394. }
  1395. .item-value {
  1396. text-align: right;
  1397. display: flex;
  1398. align-items: center;
  1399. .more {
  1400. margin-left: 8rpx;
  1401. }
  1402. .value1 {
  1403. font-weight: bold;
  1404. color: rgba(51, 51, 51, 1);
  1405. }
  1406. .value2 {
  1407. color: rgba(119, 119, 119, 1);
  1408. font-size: 24rpx;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. // 地锁信息弹窗
  1414. .body8data-popup {
  1415. .content {
  1416. .headline {
  1417. height: 90rpx;
  1418. padding: 32rpx;
  1419. color: rgba(16, 16, 16, 1);
  1420. font-size: 36rpx;
  1421. text-align: center;
  1422. font-weight: bold;
  1423. //margin-bottom: 24rpx;
  1424. position: fixed;
  1425. width: 100%;
  1426. background: #fff;
  1427. }
  1428. .infos {
  1429. padding: 90rpx 32rpx;
  1430. .item:last-of-type {
  1431. border: none;
  1432. }
  1433. .item {
  1434. display: flex;
  1435. align-items: center;
  1436. //line-height: 48rpx;
  1437. padding: 20rpx 0;
  1438. border-bottom: 1px solid #cccccc;
  1439. .item-title {
  1440. color: rgba(51, 51, 51, 1);
  1441. width: 200rpx;
  1442. }
  1443. .item-value {
  1444. color: #666666;
  1445. flex: 1;
  1446. margin-left: 16rpx;
  1447. display: flex;
  1448. align-items: center;
  1449. justify-content: space-between;
  1450. .img{
  1451. width: 32rpx;
  1452. height: 32rpx;
  1453. transform: rotate(90deg);
  1454. margin-left: 96rpx;
  1455. }
  1456. }
  1457. }
  1458. }
  1459. .get {
  1460. height: 80rpx;
  1461. line-height: 80rpx;
  1462. border-radius: 4px;
  1463. background-color: rgba(22, 119, 255, 1);
  1464. color: rgba(255, 255, 255, 1);
  1465. font-size: 32rpx;
  1466. }
  1467. }
  1468. }
  1469. .top-span{
  1470. border-top: 1px solid rgba(245, 245, 245, 1);
  1471. display: flex;
  1472. flex-wrap: wrap;
  1473. padding-top: 16rpx;
  1474. margin-top: 16rpx;
  1475. .item-span{
  1476. white-space: pre;
  1477. display: flex;
  1478. align-items: center;
  1479. margin-top: 4rpx;
  1480. width: 33%;
  1481. font-size: 28rpx;
  1482. span{
  1483. margin: 0 8rpx;
  1484. }
  1485. img{
  1486. width: 28rpx;
  1487. height: 28rpx;
  1488. }
  1489. }
  1490. .lockStatusX1{
  1491. color: #00B962;
  1492. }
  1493. .lockStatusX2{
  1494. color: #1677FF;
  1495. }
  1496. .statusX1{
  1497. color: #00B962;
  1498. }
  1499. .statusX2{
  1500. color: #1677FF;
  1501. }
  1502. }
  1503. .floating-view{
  1504. display: flex;
  1505. justify-content: center;
  1506. background: #fff;
  1507. height: 100rpx;
  1508. width: 100%;
  1509. position: fixed;
  1510. bottom: 0;
  1511. }
  1512. .floating-button {
  1513. position: fixed;
  1514. bottom: 0; /* 距离底部 20px */
  1515. width: 80%;
  1516. display: flex;
  1517. height: 120rpx;
  1518. justify-content: center;
  1519. background-color: rgba(255,255,255,1);
  1520. .button{
  1521. margin-top: 24rpx;
  1522. border-radius: 50px;
  1523. height: 80rpx;
  1524. width: 80%;
  1525. display: flex;
  1526. align-items: center;
  1527. justify-content: center;
  1528. padding:12rpx;
  1529. background-color: rgba(22,119,255,1);
  1530. color: rgba(255,255,255,1);
  1531. font-size: 36rpx;
  1532. }
  1533. }
  1534. </style>