electronicMonitoring.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. <template>
  2. <view>
  3. <view class="background">
  4. <u-picker v-model="tabsFrom.show1" mode="selector" :range="tabsFrom.selector1" range-key="label" @confirm="selector1confirm" ></u-picker>
  5. <u-picker-select title="日期选择" v-model="tabsFrom.show2"
  6. :defaultTime="tabsFrom.show2Index" :endYear="endYear" @cancel="selector2cancel"
  7. mode="time" :params="params" :noselect="false" @confirm="selector2confirm" @reset="selector2reset" ></u-picker-select>
  8. <u-navbar :background="background"
  9. @titleCk="titleCk" :title-icon="electricityMeterList.length>1?'arrow-down':''"
  10. back-icon-color="#fff" :title="title" title-color="#fff">
  11. <!-- <view class="u-nav-slot" slot="right" @click="tabsFrom.show2=true,params.day=true">
  12. <image class="img" src="@/assets/img/riLine-calendar-todo-line 1.svg" mode=""></image>
  13. </view> -->
  14. </u-navbar>
  15. <!-- 日期 -->
  16. <view class="date-box" v-if="false" >
  17. <view class="item" v-for="(item,i) in topDate"
  18. :class="{
  19. 'item-today':item.queryDate==FormData.queryDate
  20. }"
  21. @click="queryDate(item.queryDate,true)"
  22. :key="i">
  23. <view class="date">
  24. {{item.num}}
  25. </view>
  26. <view class="week">
  27. {{item.week}}
  28. </view>
  29. <view class="dot" v-if="item.today==0">
  30. </view>
  31. </view>
  32. <view class="item item-today" v-if="0">
  33. <view class="date">
  34. 26
  35. </view>
  36. <view class="week ">
  37. 今天
  38. </view>
  39. <view class="dot">
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 用电量 -->
  45. <view class="electricity-consumption">
  46. <view class="title">
  47. 用电量统计(kW·h)
  48. </view>
  49. <view class="degree">
  50. <view class="item">
  51. <view class="item-text">
  52. 百万
  53. </view>
  54. <view class="item-number" v-text="showTop[0]">
  55. 0
  56. </view>
  57. </view>
  58. <view class="item">
  59. <view class="item-text">
  60. 拾万
  61. </view>
  62. <view class="item-number" v-text="showTop[1]" >
  63. 0
  64. </view>
  65. </view>
  66. <view class="item">
  67. <view class="item-text">
  68. </view>
  69. <view class="item-number" v-text="showTop[2]">
  70. 0
  71. </view>
  72. </view>
  73. <view class="item">
  74. <view class="item-text">
  75. </view>
  76. <view class="item-number" v-text="showTop[3]">
  77. 0
  78. </view>
  79. </view>
  80. <view class="item">
  81. <view class="item-text">
  82. </view>
  83. <view class="item-number" v-text="showTop[4]">
  84. 0
  85. </view>
  86. </view>
  87. <view class="item">
  88. <view class="item-text">
  89. </view>
  90. <view class="item-number" v-text="showTop[5]">
  91. 7
  92. </view>
  93. </view>
  94. <view class="item">
  95. <view class="item-text">
  96. 1
  97. </view>
  98. <view class="item-number" v-text="showTop[6]">
  99. 7
  100. </view>
  101. </view>
  102. <view class="item">
  103. <view class="item-text">
  104. 0.1
  105. </view>
  106. <view class="item-number decimal" v-text="showTop[7]">
  107. 7
  108. </view>
  109. </view>
  110. </view>
  111. <view class="radio">
  112. <u-radio-group v-model="value" @change="radioGroupChange">
  113. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  114. :disabled="item.disabled">
  115. {{item.name}}
  116. </u-radio>
  117. </u-radio-group>
  118. </view>
  119. </view>
  120. <!-- 各时段用电量 -->
  121. <view class="electricity-chart">
  122. <view class="title">
  123. <view class="text">
  124. <view class="icon">
  125. </view> 各时段用电量 (度)
  126. </view>
  127. <view @click="tabsFrom.show2=true,params.day=true" >
  128. {{queryDay}}<u-icon name="arrow-down"></u-icon>
  129. </view>
  130. </view>
  131. <view class="chart">
  132. <view id="pieEcharts" >
  133. </view>
  134. <view style="
  135. text-align: center;
  136. background: white;" >当日电量合计:{{sumQuantity}}度</view>
  137. </view>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. import {
  143. parseUnixTime,
  144. beforeTimeStamp,
  145. getWeek
  146. } from '@/apis/utils'
  147. import * as API from '@/apis/pagejs/tenantElectricityMeter.js'
  148. import * as echarts from "echarts";
  149. export default {
  150. data() {
  151. return {
  152. queryDay:'',
  153. title:"查询中",
  154. myChart:null,
  155. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  156. topDate:[],
  157. electricityMeterList:[],
  158. FormData:{
  159. },
  160. FormData2:{
  161. },
  162. endYear:'',
  163. params: {
  164. year: true,
  165. month: true,
  166. day: true,
  167. hour: false,
  168. minute: false,
  169. second: false
  170. },
  171. tabsFrom: {
  172. show1: false,
  173. show1Index:0,
  174. show2Index:'',
  175. show2: false,
  176. show1Text: "全部类型",
  177. show2Text: "全部时间",
  178. selector1:[
  179. {
  180. label: '全部类型',
  181. value: '',
  182. },
  183. {
  184. label: '线上充值',
  185. value: '1',
  186. },
  187. {
  188. label: '线下充值',
  189. value: '2',
  190. },
  191. ]
  192. },
  193. background: {
  194. backgroundColor: '#1677FF',
  195. },
  196. list: [
  197. {
  198. id:1,
  199. name: '当月用电量',
  200. disabled: false
  201. },
  202. {
  203. id:4,
  204. name: '当日用电量',
  205. disabled: false
  206. },
  207. {
  208. id:2,
  209. name: '上月用电量',
  210. disabled: false
  211. },
  212. {
  213. id:3,
  214. name: '当年用电量',
  215. disabled: false
  216. }, {
  217. id:0,
  218. name: '总用电量',
  219. disabled: false
  220. }, {
  221. id:10,
  222. name: '指定月份',
  223. disabled: false
  224. }
  225. ],
  226. sumQuantity:0,
  227. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  228. value: '1',
  229. oldvalue: '1',
  230. intervalId: null, // 用于存储间隔ID
  231. intervalReady: true, // 用于存储间隔ID
  232. };
  233. },
  234. onLoad() {
  235. this.endYear=new Date().getFullYear()
  236. this.getElectricityMeterList();
  237. this.FormData.queryDate=parseUnixTime(new Date(), '{y}-{m}-{d}')
  238. this.FormData2.queryDate=parseUnixTime(new Date(), '{y}-{m}-{d}')
  239. this.FormData.type=1
  240. // for(var i =4;i>=0;i--){
  241. // var time=new Date(beforeTimeStamp(i,new Date()));
  242. // this.topDate.push({
  243. // num:time.getDate(),
  244. // week:i==0?'今日':getWeek(time),
  245. // today:i,
  246. // queryDate:parseUnixTime(time, '{y}-{m}-{d}')
  247. // })
  248. // }
  249. // console.log( this.topDate)
  250. },
  251. beforeDestroy() {
  252. this.clearTimer(); // 组件销毁前清除定时器
  253. this.intervalReady=false;
  254. console.log( "组件销毁前清除定时器")
  255. },
  256. methods: {
  257. clearTimer() {
  258. if (this.intervalId) {
  259. clearInterval(this.intervalId); // 清除定时器
  260. this.intervalId = null; // 重置定时器ID
  261. }
  262. },
  263. startInterval(){
  264. this.clearTimer(); // 组件销毁前清除定时器
  265. this.intervalId = setInterval(() => {
  266. // 每隔5秒运行的代码
  267. console.log('这段代码每隔5秒运行一次');
  268. this.getElectricityStatistics(true)
  269. }, 5000);
  270. },
  271. titleCk(){
  272. if(this.electricityMeterList.length>1){
  273. this.tabsFrom.show1=true
  274. }
  275. },
  276. selector1confirm(e){
  277. var index=e[0]
  278. this.tabsFrom.show1Index=index
  279. this.tabsFrom.show1Text=this.tabsFrom.selector1[index].label
  280. this.tabsFrom.title=this.tabsFrom.selector1[index].label
  281. this.FormData.meterId=this.tabsFrom.selector1[index].value
  282. this.FormData.queryDate=parseUnixTime(new Date(), '{y}-{m}-{d}')
  283. this.FormData2.meterId=this.tabsFrom.selector1[index].value
  284. this.FormData2.queryDate=parseUnixTime(new Date(), '{y}-{m}-{d}')
  285. this.FormData.type=1
  286. this.value="1"
  287. this.getTimeSlotStatistics()
  288. this.getElectricityStatistics()
  289. },
  290. queryDate(queryTime,day){
  291. if(day){
  292. this.FormData2.queryDate=queryTime;
  293. //this.FormData2.type =day?"9":"10"
  294. //this.value="-1"
  295. this.getTimeSlotStatistics()
  296. }else{
  297. this.FormData.queryDate=queryTime+"-01";
  298. this.FormData.type ="10"
  299. //this.value="-1"
  300. this.getElectricityStatistics()
  301. }
  302. },
  303. getElectricityStatistics(interval){
  304. // if(!this.intervalReady){
  305. // return
  306. // }
  307. if(!interval){
  308. uni.showLoading({
  309. title: "加载中",
  310. mask: true,
  311. })
  312. }
  313. var obj={
  314. ...this.FormData
  315. }
  316. // if(obj.type==10){
  317. // obj.queryDate+="-01"
  318. // }
  319. API.electricityStatistics(obj).then((response) => {
  320. if(!interval){
  321. uni.hideLoading();
  322. }
  323. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  324. var electricity = response.data.kwhMap.kwh+"";
  325. if (electricity) {
  326. var sz = electricity.split(".")
  327. var str1 = sz[0];
  328. var str2 = [];
  329. if (sz.length > 1) {
  330. str2 = sz[1];
  331. this.showTop[7] = str2[0];
  332. }
  333. var j = 0;
  334. for (var i in str1) {
  335. if (i != undefined) {
  336. this.showTop[6 - str1.length + j + 1] = str1[i]
  337. }
  338. j++;
  339. }
  340. this.$forceUpdate()
  341. }
  342. //this.electricityMeterList=response.data.meterList
  343. if(!interval){
  344. this.startInterval(); // 组件挂载后开始间隔
  345. }
  346. }).catch(error => {
  347. uni.showToast({
  348. title: error,
  349. icon: "none"
  350. })
  351. })
  352. },
  353. getTimeSlotStatistics(){
  354. uni.showLoading({
  355. title: "加载中",
  356. mask: true,
  357. })
  358. this.queryDay=parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  359. API.timeSlotStatistics(this.FormData2).then((response) => {
  360. uni.hideLoading();
  361. this.hourMap=response.data.hourMap
  362. this.getPle(this.hourMap)
  363. }).catch(error => {
  364. uni.showToast({
  365. title: error,
  366. icon: "none"
  367. })
  368. })
  369. },
  370. getPle(list){
  371. if (!this.myChart) {
  372. this.myChart = echarts.init(document.getElementById('pieEcharts'),null,{
  373. width:uni.upx2px(700),height:uni.upx2px(480)
  374. });
  375. }
  376. this.myChart.clear();
  377. var data1=[];
  378. var data2=[];
  379. var sumQuantity=0
  380. for(var i in list){
  381. data1.push(i)
  382. data2.push(list[i])
  383. sumQuantity+=list[i]
  384. }
  385. this.sumQuantity=sumQuantity.toFixed(2)
  386. var headitemby=""
  387. var showkey = "";
  388. var option = {
  389. tooltip: {
  390. trigger: 'axis'
  391. },
  392. grid: {
  393. top: '6%',
  394. left: '3%',
  395. right: '8%',
  396. bottom: '8%',
  397. containLabel: true
  398. },
  399. xAxis: {
  400. type: 'category',
  401. data: data1,
  402. axisLabel: {
  403. rotate:40,
  404. interval:0,
  405. textStyle: {
  406. color: "#333"
  407. }
  408. },
  409. },
  410. yAxis: {
  411. type: 'value',
  412. },
  413. series: [
  414. {
  415. name: '电量',
  416. data: data2,
  417. type: 'bar'
  418. }
  419. ]
  420. }
  421. console.log(option)
  422. this.myChart.setOption(option);
  423. },
  424. getElectricityMeterList(){
  425. uni.showLoading({
  426. title: "加载中",
  427. mask: true,
  428. })
  429. API.electricityMeterList().then((response) => {
  430. uni.hideLoading();
  431. this.electricityMeterList=response.data.meterList
  432. if(this.electricityMeterList.length){
  433. this.FormData.meterId=this.electricityMeterList[0].id
  434. this.FormData2.meterId=this.electricityMeterList[0].id
  435. this.title=this.electricityMeterList[0].name
  436. // {
  437. // label: '全部类型',
  438. // value: '',
  439. // }
  440. this.tabsFrom.selector1=[]
  441. this.tabsFrom.selector1=this.electricityMeterList.map(item=>{
  442. return {
  443. label:item.name,
  444. value:item.id
  445. }
  446. })
  447. this.getTimeSlotStatistics()
  448. this.getElectricityStatistics()
  449. }else{
  450. uni.showModal({
  451. title:"提示",
  452. content:"未绑定电表,请联系管理员!",
  453. showCancel:false,
  454. success() {
  455. uni.navigateBack()
  456. }
  457. })
  458. }
  459. }).catch(error => {
  460. uni.showToast({
  461. title: error,
  462. icon: "none"
  463. })
  464. })
  465. },
  466. selector2confirm(e){
  467. this.tabsFrom.show2Text=e.year+"年"+e.month+"月"
  468. this.tabsFrom.show2Index=e.year+"-"+e.month
  469. if(e.day){
  470. this.tabsFrom.show2Text+=e.day+"日"
  471. this.tabsFrom.show2Index+='-'+e.day
  472. this.queryDate(this.tabsFrom.show2Index,true)
  473. }else{
  474. this.queryDate(this.tabsFrom.show2Index,false)
  475. }
  476. },
  477. selector2reset(e){
  478. console.log(e)
  479. this.tabsFrom.show2Text='全部时间'
  480. this.tabsFrom.show2Index='';
  481. this.selector2cancel()
  482. },
  483. // 选中某个单选框时,由radio时触发
  484. radioChange(e) {
  485. //console.log(e);
  486. },
  487. // 选中任一radio时,由radio-group触发
  488. selector2cancel(){
  489. this.value=this.oldvalue;
  490. },
  491. radioGroupChange(e) {
  492. console.log(e);
  493. this.FormData.type=e
  494. if(e==10){
  495. this.tabsFrom.show2=true
  496. this.params.day=false
  497. }else{
  498. this.oldvalue= this.FormData.type;
  499. this.getElectricityStatistics()
  500. }
  501. }
  502. }
  503. };
  504. </script>
  505. <style lang="scss" scoped>
  506. page {
  507. padding-bottom: 100rpx;
  508. }
  509. .background {
  510. background-color: rgba(22, 119, 255, 1);
  511. padding-bottom: 100rpx;
  512. /deep/.u-border-bottom:after {
  513. border: none;
  514. }
  515. .u-nav-slot {
  516. margin-right: 32rpx;
  517. .img {
  518. width: 48rpx;
  519. height: 48rpx;
  520. vertical-align: middle;
  521. }
  522. }
  523. }
  524. .background::after {
  525. content: '';
  526. position: absolute;
  527. width: 160%;
  528. height: 80px;
  529. background-color: rgba(22, 119, 255, 1);
  530. left: -30%;
  531. border-radius: 0 0 50% 50%;
  532. }
  533. // // 日期
  534. .date-box {
  535. display: flex;
  536. align-items: center;
  537. justify-content: space-between;
  538. margin: 24rpx 32rpx;
  539. .item {
  540. border-radius: 8px;
  541. background-color: rgba(255, 255, 255, 0.1);
  542. border: 1px solid rgba(255, 255, 255, 0.15);
  543. width: 120rpx;
  544. height: 120rpx;
  545. color: #fff;
  546. text-align: center;
  547. display: flex;
  548. flex-direction: column;
  549. justify-content: center;
  550. align-items: center;
  551. .date {
  552. font-size: 40rpx;
  553. }
  554. .dot{
  555. width: 10rpx;
  556. height: 10rpx;
  557. background-color: rgba(255,150,0,1);
  558. border-radius: 999px;
  559. bottom: -5rpx;
  560. left: 50%;
  561. transform: translateX(-50%);
  562. }
  563. }
  564. .item-today {
  565. background-color: rgba(255, 255, 255, 1);
  566. position: relative;
  567. .date {
  568. color: rgba(22, 119, 255, 1);
  569. }
  570. .week {
  571. color: rgba(16, 16, 16, 1);
  572. }
  573. }
  574. }
  575. // 用电量
  576. .electricity-consumption {
  577. background-color: #fff;
  578. padding: 40rpx 32rpx 0rpx;
  579. border-radius: 8px;
  580. margin: -88rpx 32rpx 0;
  581. position: relative;
  582. .title{
  583. color: rgba(16,16,16,1);
  584. font-size: 36rpx;
  585. }
  586. .degree{
  587. display: flex;
  588. margin-top: 32rpx;
  589. .item{
  590. margin-right: 6rpx;
  591. text-align: center;
  592. .item-text{
  593. color: rgba(16,16,16,1);
  594. }
  595. .item-number{
  596. margin-top: 24rpx;
  597. width: 72rpx;
  598. height: 96rpx;
  599. background-color: rgba(16,16,16,1);
  600. color: #fff;
  601. font-size: 72rpx;
  602. }
  603. .decimal{
  604. background-color: #900005;
  605. }
  606. }
  607. }
  608. // .tab {
  609. // width: 240rpx;
  610. // height: 0;
  611. // border-width: 0px 48rpx 72rpx 0px;
  612. // border-radius: 8px 8px 0 0;
  613. // border-style: none solid solid none;
  614. // border-color: transparent transparent #fff;
  615. // position: absolute;
  616. // top: -72rpx;
  617. // left: 0rpx;
  618. // right: 0rpx;
  619. // color: #101010;
  620. // color: rgba(16, 16, 16, 1);
  621. // text-align: center;
  622. // line-height: 72rpx;
  623. // z-index: 999;
  624. // text-indent: 16rpx;
  625. // }
  626. // .tab2 {
  627. // width: 240rpx;
  628. // height: 0;
  629. // border-width: 0px 48rpx 72rpx 0px;
  630. // border-radius: 8px 8px 0 0;
  631. // border-style: none solid solid none;
  632. // border-color: transparent transparent #D4DBE4;
  633. // position: absolute;
  634. // top: -72rpx;
  635. // left: 210rpx;
  636. // right: 0rpx;
  637. // color: #777777;
  638. // text-align: center;
  639. // line-height: 72rpx;
  640. // text-indent: 16rpx;
  641. // }
  642. .radio {
  643. margin-top: 24rpx;
  644. /deep/.u-radio__label {
  645. font-size: 24rpx
  646. }
  647. /deep/.u-radio {
  648. margin-bottom: 16px;
  649. width: 200rpx !important;
  650. }
  651. }
  652. }
  653. //各时段用电量
  654. .electricity-chart {
  655. margin: 24rpx 32rpx;
  656. padding: 40rpx 0rpx;
  657. background-color: #fff;
  658. border-radius: 8px;
  659. .title {
  660. display: flex;
  661. align-items: center;
  662. justify-content: space-between;
  663. padding: 0 12rpx;
  664. margin-bottom: 40rpx;
  665. .icon {
  666. width: 36rpx;
  667. height: 36rpx;
  668. background-color: rgba(22, 119, 255, 1);
  669. border: 6px solid rgba(182, 212, 255, 1);
  670. border-radius: 100px;
  671. }
  672. .text {
  673. display: flex;
  674. align-items: center;
  675. color: rgba(51, 51, 51, 1);
  676. font-size: 36rpx;
  677. margin-left: 16rpx;
  678. }
  679. }
  680. .chart {
  681. width: 100%;
  682. //height: 440rpx;
  683. .img {
  684. width: 100%;
  685. height: 440rpx;
  686. }
  687. }
  688. }
  689. // 异常
  690. .abnormal {
  691. margin: 24rpx 32rpx;
  692. padding: 40rpx 32rpx;
  693. background-color: #fff;
  694. border-radius: 8px;
  695. .headline {
  696. display: flex;
  697. align-items: center;
  698. justify-content: space-between;
  699. }
  700. .title {
  701. display: flex;
  702. align-items: center;
  703. .icon {
  704. width: 36rpx;
  705. height: 36rpx;
  706. background-color: rgba(22, 119, 255, 1);
  707. border: 6px solid rgba(182, 212, 255, 1);
  708. border-radius: 100px;
  709. }
  710. .text {
  711. color: rgba(51, 51, 51, 1);
  712. font-size: 36rpx;
  713. margin-left: 16rpx;
  714. }
  715. }
  716. .more {
  717. color: #838383;
  718. font-size: 24rpx
  719. }
  720. .details {
  721. margin-top: 40rpx;
  722. .item {
  723. display: flex;
  724. align-items: center;
  725. justify-content: space-between;
  726. margin-top: 32rpx;
  727. .name {
  728. color: rgba(51, 51, 51, 1);
  729. }
  730. .time {
  731. color: rgba(119, 119, 119, 1);
  732. font-size: 24rpx;
  733. }
  734. }
  735. }
  736. }
  737. // 能源监测
  738. .energy-inspection,.data-analysis {
  739. margin: 24rpx 32rpx;
  740. padding: 40rpx 32rpx;
  741. background-color: #fff;
  742. border-radius: 8px;
  743. .title {
  744. display: flex;
  745. align-items: center;
  746. .icon {
  747. width: 36rpx;
  748. height: 36rpx;
  749. background-color: rgba(22, 119, 255, 1);
  750. border: 6px solid rgba(182, 212, 255, 1);
  751. border-radius: 100px;
  752. }
  753. .text {
  754. color: rgba(51, 51, 51, 1);
  755. font-size: 36rpx;
  756. margin-left: 16rpx;
  757. }
  758. }
  759. .grid {
  760. .icon {
  761. width: 128rpx;
  762. height: 128rpx;
  763. border-radius: 12px;
  764. background-color: rgba(35, 186, 178, 1);
  765. display: flex;
  766. align-items: center;
  767. justify-content: center;
  768. margin-bottom: 16rpx;
  769. .img {
  770. width: 80rpx;
  771. height: 80rpx;
  772. }
  773. }
  774. .icon2{
  775. background-color: rgba(42,186,72,1);
  776. }
  777. .icon3{
  778. background-color: rgba(78,96,246,1);
  779. }
  780. .icon4{
  781. background-color: rgba(22,119,255,1);
  782. }
  783. .icon5{
  784. background-color: rgba(35,186,178,1);
  785. }
  786. .icon6{
  787. background-color: rgba(42,186,72,1);
  788. }
  789. .icon7{
  790. background-color: rgba(22,119,255,1);
  791. }
  792. .icon8{
  793. background-color: rgba(35,186,178,1);
  794. }
  795. .grid-text {
  796. color: #333333;
  797. }
  798. }
  799. }
  800. </style>