index.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227
  1. <template>
  2. <view>
  3. <view class="top-cover">
  4. <view class="navbar-tit">
  5. <text><img src="../../assets/img/titleIcon.svg" alt=""></text>
  6. {{title}}</view>
  7. <view class="income">
  8. <!-- 今日收入 -->
  9. <view class="today-income">
  10. <view class="number">
  11. 10000.00<text><img src="../../assets/img/riLine-refresh-line.svg" alt=""></text>
  12. </view>
  13. <view class="text">
  14. 今日收入 (元)
  15. </view>
  16. </view>
  17. <!-- 其他 -->
  18. <view class="else">
  19. <view class="item">
  20. <view class="item-number">
  21. 3000.00
  22. </view>
  23. <view class="item-text">
  24. 利润(元)
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item-number">
  29. 8000.00
  30. </view>
  31. <view class="item-text">
  32. 今日电量 (度)
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="item-number">
  37. 10 / 2
  38. </view>
  39. <view class="item-text">
  40. 6折卡/月卡 (张)
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="statisticsData">
  46. <view class="statisticsChart" style="padding-top:20rpx;margin-bottom: 0px">
  47. <view class="statisticsChart-head ">
  48. <h4 class="h4-1"><img src="../../assets/img/riFill-numbers-fill.svg" alt="">充电统计</h4>
  49. <view class="navbar-screen ">
  50. <u-button text="月落" size="mini" class="headbotton1" style="border-radius: 10px 0 0 10px;"
  51. :type="current==1?'success':'info'" @click="changesub(1)">按天</u-button>
  52. <u-button text="月落" size="mini" class="headbotton2" style="border-radius: 0 10px 10px 0;"
  53. :type="current==2?'success':'info'" @click="changesub(2)">按月</u-button>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="detailstableHead" style="
  58. padding-top: 1px;
  59. ">
  60. <view id="pieEcharts" style="min-height:240px;margin-top: 20px">
  61. </view>
  62. </view>
  63. <view class="detailstableHead" v-if="indexData&&false">
  64. <view class="detailsline">
  65. <view class="details-row details-row-head-1 ">
  66. <view class="span1">今日收入</view>
  67. <view class="span2">{{indexData.todayAmount?indexData.todayAmount.toFixed(2):0}}<span>元</span>
  68. </view>
  69. </view>
  70. <view class="details-row details-row-head-2">
  71. <view class="span1">今日利润</view>
  72. <view class="span2">{{indexData.todayProfit?indexData.todayProfit.toFixed(2):0}}<span>元</span>
  73. </view>
  74. </view>
  75. <view class="details-row details-row-head-3">
  76. <view class="span1">今日笔数</view>
  77. <view class="span2">{{indexData.todayEQNum?indexData.todayEQNum:0}}<span>笔</span></view>
  78. </view>
  79. </view>
  80. <view class="detailsline">
  81. <view class="details-row details-row-head-1 ">
  82. <view class="span1">昨日收入</view>
  83. <view class="span2">
  84. {{indexData.yesterdayAmount?indexData.yesterdayAmount.toFixed(2):0}}<span>元</span>
  85. </view>
  86. </view>
  87. <view class="details-row details-row-head-2">
  88. <view class="span1">昨日利润</view>
  89. <view class="span2">
  90. {{indexData.yesterdayProfit?indexData.yesterdayProfit.toFixed(2):0}}<span>元</span>
  91. </view>
  92. </view>
  93. <view class="details-row details-row-head-3">
  94. <view class="span1">昨日笔数</view>
  95. <view class="span2">{{indexData.yesterdayEQNum?indexData.yesterdayEQNum:0}}<span>笔</span></view>
  96. </view>
  97. </view>
  98. <view class="detailsline—bottom">
  99. <view class="details-row details-row-head-1">
  100. <view class="span1">本月收入</view>
  101. <view class="span2">
  102. {{indexData.thisMonthAmount?indexData.thisMonthAmount.toFixed(2):0}}<span>元</span>
  103. </view>
  104. </view>
  105. <view class="details-row details-row-head-2">
  106. <view class="span1">本月利润</view>
  107. <view class="span2">
  108. {{indexData.thisMonthProfit?indexData.thisMonthProfit.toFixed(2):0}}<span>元</span>
  109. </view>
  110. </view>
  111. <view class="details-row details-row-head-3">
  112. <view class="span1">本月笔数</view>
  113. <view class="span2">{{indexData.thisMonthEQNum?indexData.thisMonthEQNum:0}}<span>笔</span></view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <u-picker mode="time" v-model="popupShow" @confirm="changedate" :default-time="queryTime" :params="params">
  120. </u-picker>
  121. <u-picker mode="time" v-model="popupShow2" @confirm="changedate2" :default-time="queryTime2+'-01'"
  122. :params="params"></u-picker>
  123. <u-picker mode="selector" v-model="popupShow3" @confirm="changedate3" :range="stationList" range-key="name"
  124. :default-selector="[selectstationIndex]"></u-picker>
  125. <view class="statisticsChart chargingpile" v-if="indexData4">
  126. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  127. <h4>充电枪运行情况</h4>
  128. </view>
  129. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  130. <p>
  131. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20" style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
  132. <g>
  133. <path fill="rgba(23.97,90.015,197.88,1)" d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z" ></path>
  134. </g>
  135. </svg>
  136. <!-- <img style=" vertical-align: bottom;" src="@/assets/img/riFill-charging-pile-fill.svg"></img>
  137. --> 快(超)充枪<span>共</span>
  138. <span
  139. style="color:#000">{{indexData4.fastGunFaultNum+indexData4.fastGunFreeNum+indexData4.fastGunWorkNum}}</span>
  140. <span>支</span>
  141. </p>
  142. <view class="detailsline">
  143. <view class="details-row details-row-1" @click="indexDate4Ck(1,1)">
  144. <view class="span1"><span class="bot bot1"></span>在用<span
  145. class="bot1span">{{indexData4.fastGunWorkNum}}</span>支
  146. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  147. </view>
  148. </view>
  149. <view class="details-row details-row-1" @click="indexDate4Ck(1,0)">
  150. <view class="span1"><span class="bot bot2"></span>空闲<span
  151. class="bot2span">{{indexData4.fastGunFreeNum}}</span>支
  152. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  153. </view>
  154. </view>
  155. <view class="details-row details-row-1" @click="indexDate4Ck(1,99)">
  156. <view class="span1"><span class="bot bot3"></span>故障<span
  157. class="bot3span">{{indexData4.fastGunFaultNum}}</span>支
  158. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  159. </view>
  160. </view>
  161. </view>
  162. <p style="margin-top: 16rpx;color:#00B962">
  163. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20" style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
  164. <g>
  165. <path fill="#00B962" d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z" ></path>
  166. </g>
  167. </svg>
  168. 慢充枪<span>共</span>
  169. <span
  170. style="color:#000">{{indexData4.slowGunFaultNum+indexData4.slowGunFreeNum+indexData4.slowGunWorkNum}}</span>
  171. <span>支</span>
  172. </p>
  173. <view class="detailsline—bottom">
  174. <view class="details-row details-row-1" @click="indexDate4Ck(2,1)">
  175. <view class="span1"><span class="bot bot1"></span>在用<span
  176. class="bot1span">{{indexData4.slowGunWorkNum}}</span>支
  177. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  178. </view>
  179. </view>
  180. <view class="details-row details-row-1" @click="indexDate4Ck(2,0)">
  181. <view class="span1"><span class="bot bot2"></span>空闲<span
  182. class="bot2span">{{indexData4.slowGunFreeNum}}</span>支
  183. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  184. </view>
  185. </view>
  186. <view class="details-row details-row-1" @click="indexDate4Ck(2,99)">
  187. <view class="span1"><span class="bot bot3"></span>故障<span
  188. class="bot3span">{{indexData4.slowGunFaultNum}}</span>支
  189. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  190. </view>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. <view class="statisticsChart chargingpile" v-if="indexData4">
  196. <view class="statisticsChart-head" style="margin-top: 20rpx;">
  197. <h4>电单车充电桩运行情况</h4>
  198. </view>
  199. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  200. <p style="color:#1677FF">
  201. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20" style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
  202. <g>
  203. <path fill="#1677FF" d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z" ></path>
  204. </g>
  205. </svg>
  206. 电单车充电桩<span>共</span>
  207. <span
  208. style="color:#000">{{indexData4.singleCarOnlineNum+indexData4.singleCarNotOnlineNum}}</span>
  209. <span>台</span>
  210. </p>
  211. <view class="detailsline">
  212. <view class="details-row details-row-1" @click="indexDate5Ck(1,1)">
  213. <view class="span1"><span class="bot bot1"></span>正常<span
  214. class="bot1span">{{indexData4.singleCarOnlineNum}}</span>台
  215. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  216. </view>
  217. </view>
  218. <view class="details-row details-row-1" @click="indexDate5Ck(0,99)">
  219. <view class="span1"><span class="bot bot3"></span>故障<span
  220. class="bot3span">{{indexData4.singleCarNotOnlineNum}}</span>台
  221. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  222. </view>
  223. </view>
  224. </view>
  225. </view>
  226. </view>
  227. <u-popup v-model="popupShow6" mode="bottom" border-radius="30" >
  228. <view class="indexData5content">
  229. <view class="contentTitle">
  230. 电单车充电桩{{indexData5Obj.type?'正常':'故障'}}明细
  231. </view>
  232. <scroll-view scroll-y="true" style="height: 520rpx;">
  233. <u-collapse style="padding-bottom: 30rpx;" >
  234. <u-collapse-item v-for="(item,index) in indexData5List" class="contentItem" v-show="item.deviceNum" :key="index" >
  235. <svg slot="title" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20" style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
  236. <g>
  237. <path fill="#1677FF" d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z" ></path>
  238. </g>
  239. </svg>
  240. <view slot="title" class="span1" >
  241. {{item.stationName}}
  242. </view>
  243. <view slot="title" >
  244. <span class="span2 color777">
  245. 共<span class="color333" >{{item.deviceNum}}</span>台
  246. </span>
  247. <span class="span3 color777">
  248. 通道数<span class="color333" >{{item.channelNum}}</span>
  249. </span>
  250. </view>
  251. <view style="padding-bottom: 30rpx;">
  252. <view class="contentBodyName" >
  253. {{item.stationName}}
  254. </view>
  255. <view class="contentBody" v-for="(gun,i) in item.device" :key="i">
  256. <view class="body1">{{gun.deviceName}}</view>
  257. <view class="body2" v-if="indexData5Obj.type">
  258. <view class="body2-0">在用<span class="body2-1">{{gun.useNum}}</span> </view>
  259. <view class="body2-2">| 空闲 {{gun.freeNum}}</view>
  260. </view>
  261. <view class="body3" v-else >故障</view>
  262. </view>
  263. </view>
  264. </u-collapse-item>
  265. </u-collapse>
  266. </scroll-view>
  267. <view class="confrim-btn">
  268. <u-button shape="square" type="primary"
  269. @click="popupShow6 = false;">关闭</u-button>
  270. </view>
  271. </view>
  272. </u-popup>
  273. <u-popup v-model="popupShow5" mode="bottom" border-radius="30" >
  274. <view class="indexData4content">
  275. <view class="contentTitle">
  276. {{indexData4Obj.typeName}}枪{{indexData4Obj.text}}明细
  277. <!-- <view v-show='indexData4Obj.value=="bot3span"' style="color:#777777;font-size: 12px;font-weight: normal;">
  278. 点击站点查看故障枪
  279. </view> -->
  280. </view>
  281. <scroll-view scroll-y="true" style="height: 520rpx;">
  282. <u-collapse class="u-collapse-bot3span" v-if='indexData4Obj.value=="bot3span"||indexData4Obj.value=="bot1span"' style="padding-bottom: 30rpx;" >
  283. <u-collapse-item class="contentItem" v-for="(item,index) in indexData4List"
  284. v-show="item.queryNum" :key="index" >
  285. <span class="span1" slot="title">
  286. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  287. src="@/assets/img/riFill-charging-pile-fill.svg">
  288. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  289. src="@/assets/img/riFill-charging-pile-fill3.svg">
  290. <img v-show="indexData4Obj.type==2"
  291. src="@/assets/img/riFill-charging-pile-fill2.svg">
  292. </img>
  293. {{item.stationName}}</span>
  294. <span class="span2 color777" slot="title">
  295. 共<span class="color333" >{{item.gunNum}}</span>支
  296. </span>
  297. <span class="span3 color333" slot="title">
  298. {{indexData4Obj.text}}<span class="color777" :class="indexData4Obj.value" >{{item.queryNum}}</span>支
  299. </span>
  300. <view style="padding-bottom: 30rpx;">
  301. <view class="contentBodyName" >
  302. {{item.stationName}}
  303. </view>
  304. <view class="contentBody" v-for="(gun,i) in item.gunList" :key="i">
  305. <view class="body1">
  306. <span v-if="gun.sortNo">{{gun.sortNo}}号<text>/</text></span>{{gun.deviceName}}{{'枪'+gun.channelNo}}
  307. </view>
  308. <view class="body3" v-if='indexData4Obj.value=="bot1span"' >{{gun.soc?gun.soc+'%':'充电中'}}</view>
  309. <view class="body3" v-if='indexData4Obj.value=="bot3span"' >{{gun.workStatusText}}</view>
  310. </view>
  311. </view>
  312. </u-collapse-item>
  313. </u-collapse>
  314. <view class="u-collapse-bot0span" style="padding-bottom: 30rpx;" v-else >
  315. <view class="contentItem" v-for="(item,index) in indexData4List"
  316. v-show="item.queryNum" :key="index" >
  317. <span class="span1">
  318. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  319. src="@/assets/img/riFill-charging-pile-fill.svg">
  320. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  321. src="@/assets/img/riFill-charging-pile-fill3.svg">
  322. <img v-show="indexData4Obj.type==2"
  323. src="@/assets/img/riFill-charging-pile-fill2.svg">
  324. </img>
  325. {{item.stationName}}</span>
  326. <span class="span2 color777">
  327. 共<span class="color333" >{{item.gunNum}}</span>支
  328. </span>
  329. <span class="span3 color333">
  330. {{indexData4Obj.text}}<span class="color777" :class="indexData4Obj.value" >{{item.queryNum}}</span>支
  331. </span>
  332. </view>
  333. </view>
  334. </scroll-view>
  335. <view class="confrim-btn">
  336. <u-button shape="square" type="primary"
  337. @click="popupShow5 = false;">关闭</u-button>
  338. </view>
  339. </view>
  340. </u-popup>
  341. <view class="statisticsChart">
  342. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  343. <h4>流水统计</h4>
  344. <!-- <view class="navbar-screen" >
  345. {{startTime}}至{{endTime}}
  346. </view> -->
  347. <view class="navbar-screen" @click="popupShow = true" v-if="false">
  348. <span>{{showTime(queryTime)}}</span>
  349. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow"></u-icon>
  350. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow"></u-icon>
  351. </view>
  352. </view>
  353. <u-calendar v-model="popupShow4" mode="range" @change="changedate4"></u-calendar>
  354. <view class="details detailstable">
  355. <p style="text-align: center; margin-bottom: 5px;" @click="popupShow4 = true">
  356. <img src="@/assets/img/riLine-calendar-todo-line.svg" align="absmiddle"
  357. style="height:40rpx;width: 40rpx ;">
  358. {{startTime}}至{{endTime}}
  359. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow4"></u-icon>
  360. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow4"></u-icon>
  361. </p>
  362. <view class="detailsline detailslineHead" v-if="stationFlowList.length>1">
  363. <view class="details-row ">
  364. <view class="span1">总收入</view>
  365. <view class="span2">{{(allMoneySum).toFixed(2)}}<span>元</span></view>
  366. </view>
  367. <view class="details-row">
  368. <view class="span1">总利润<span>(服务费+折扣卡)</span></view>
  369. <view class="span2">{{(serviceMoneySum).toFixed(2)}}<span>元</span></view>
  370. </view>
  371. </view>
  372. <view v-if="stationFlowList.length==0"
  373. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  374. 站点列表为空
  375. </view>
  376. <view v-if="stationFlowList.length"
  377. @click="gotoUrl('pagesFinance/statistics/list')"
  378. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  379. 查看站点流水统计 <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28">
  380. </u-icon>
  381. </view>
  382. </view>
  383. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  384. <h4>站主/桩主收益统计</h4>
  385. <!-- <view class="navbar-screen" >
  386. {{startTime}}至{{endTime}}
  387. </view> -->
  388. <!-- <view class="navbar-screen" @click="popupShow2 = true"><span>筛选</span>
  389. <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
  390. </view> -->
  391. </view>
  392. <view class="details" v-if="indexData2&&indexData2.incomeMap">
  393. <view class="details-row2">
  394. <p @click="popupShow3 = true">{{selectstationName}}
  395. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow3"></u-icon>
  396. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow3"></u-icon>
  397. </p>
  398. <p @click="popupShow2 = true">
  399. {{showTime(queryTime2)}}
  400. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow2"></u-icon>
  401. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow2"></u-icon>
  402. </p>
  403. </view>
  404. <view class="details-row">
  405. <p>充电总收入</p>
  406. <span>{{(indexData2.incomeMap.chargingAmount).toFixed(2)}}元</span>
  407. </view>
  408. <view class="details-row">
  409. <p>站主/桩主收入</p>
  410. <span>{{indexData2.incomeMap.incomeAmount.toFixed(2)}}元</span>
  411. </view>
  412. <view class="details-row">
  413. <p>预估用电度数</p>
  414. <span>{{(indexData2.incomeMap.electricQuantity/10000).toFixed(1)}}度</span>
  415. </view>
  416. <view class="details-row">
  417. <p>预估电费</p>
  418. <span>{{indexData2.incomeMap.costAmount.toFixed(2)}}元</span>
  419. </view>
  420. <view class="details-row">
  421. <p>服务费预估收益</p>
  422. <span>{{indexData2.incomeMap.serviceAmount.toFixed(2)}}元</span>
  423. </view>
  424. <view class="details-row">
  425. <p>折扣卡收益</p>
  426. <span>{{indexData2.incomeMap.cardIncomeAmount.toFixed(2)}}元</span>
  427. </view>
  428. <view class="details-row">
  429. <p>预估总利润</p>
  430. <span>{{(indexData2.incomeMap.serviceAmount+indexData2.incomeMap.cardIncomeAmount).toFixed(2)}}元</span>
  431. </view>
  432. </view>
  433. </view>
  434. <Tabbar :current="0" ref="tabbarMain"></Tabbar>
  435. <!-- <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
  436. -->
  437. </view>
  438. </template>
  439. <script>
  440. import Tabbar from '@/components/TabbarFinance.vue'
  441. import * as API from '@/apis/finance.js'
  442. import * as echarts from "echarts";
  443. //require("@/apis/echarts-5-3.min.js")
  444. //import * as echarts from "@/apis/echarts-5-3.min.js";
  445. import {
  446. daysDistance,
  447. beforeTimeStamp,
  448. currentTimeStamp,
  449. parseUnixTime,
  450. newDate
  451. } from '@/utils'
  452. export default {
  453. data() {
  454. return {
  455. popupShow3: false,
  456. params: {
  457. year: true,
  458. month: true,
  459. day: false,
  460. hour: false,
  461. minute: false,
  462. second: false
  463. },
  464. indexData4List:[],
  465. indexData4Obj:{},
  466. indexData5List:[],
  467. indexData5Obj:{},
  468. headitemby: "",
  469. isinit: true,
  470. form: {},
  471. form2: {},
  472. selecttype: "",
  473. selectstationId: "",
  474. selectdeviceNo: "",
  475. popupShow2: false,
  476. popupShow: false,
  477. popupShow4: false,
  478. popupShow5: false,
  479. popupShow6: false,
  480. popupShow7: false,
  481. nowTime: 0,
  482. selectstationId2: "",
  483. selectstationIndex: 0,
  484. selectstationName: "",
  485. info: {},
  486. title: "",
  487. showdate: false,
  488. showdate2: false,
  489. queryTime: "",
  490. queryTime2: "",
  491. indexData: {},
  492. indexData3: null,
  493. indexData2: null,
  494. indexData4: null,
  495. type_head: '1',
  496. startDate_head: '',
  497. changeitemBl: false,
  498. myChart: null,
  499. myChartReady: false,
  500. myChartTime: false,
  501. subsection: [{
  502. name: '金额'
  503. },
  504. {
  505. name: '笔数'
  506. }
  507. ],
  508. stationFlowList: [],
  509. serviceMoneySum: 0,
  510. allMoneySum: 0,
  511. stationList: [],
  512. stationListSon: [],
  513. tabbarList: [{
  514. iconPath: "bar-chart-box-fill",
  515. selectedIconPath: "bar-chart-box-fill",
  516. text: '统计',
  517. count: 0,
  518. isDot: true,
  519. customIcon: true,
  520. },
  521. {
  522. iconPath: "article-fill",
  523. selectedIconPath: "article-fill",
  524. text: '明细',
  525. midButton: true,
  526. customIcon: true,
  527. },
  528. {
  529. iconPath: "account-pin-box-fill",
  530. selectedIconPath: "account-pin-box-fill",
  531. text: '我的',
  532. count: 0,
  533. isDot: false,
  534. customIcon: true,
  535. },
  536. ],
  537. endTime: '',
  538. endTime2: '',
  539. current: 1,
  540. background: {
  541. background: 'none'
  542. },
  543. value: '',
  544. type: 'select',
  545. show: false,
  546. border: true,
  547. step: 0,
  548. stepname: '',
  549. startTime: '',
  550. stepid: 0,
  551. windowWidth:0,
  552. }
  553. },
  554. onShow() {
  555. if (this.$refs.tabbarMain) {
  556. this.$refs.tabbarMain.setcount(0);
  557. }
  558. API.homeChargingGunStatus().then((res) => {
  559. this.indexData4 = res.data;
  560. }).catch(error => {
  561. uni.showToast({
  562. title: error
  563. })
  564. })
  565. },
  566. onLoad() {
  567. this.info = this.carhelp.getPersonInfo()
  568. this.title = this.info.merchantAccountName
  569. uni.getSystemInfo().then(e=>{
  570. this.windowWidth=e[1].windowWidth
  571. })
  572. },
  573. components: {
  574. Tabbar
  575. },
  576. onReady() {
  577. var date = new Date();
  578. this.nowTime = 7
  579. this.queryTime = parseUnixTime(currentTimeStamp(), '{y}-{m}');
  580. this.queryTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}'),
  581. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  582. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  583. this.endTime = parseUnixTime(beforeTimeStamp(0), '{y}-{m}-{d}')
  584. //this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  585. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  586. this.getStation()
  587. },
  588. computed: {
  589. // startTime(){
  590. // return this.queryTime+'-1'
  591. // },
  592. startTime2() {
  593. return this.queryTime2 + '-01'
  594. },
  595. },
  596. methods: {
  597. indexDate5Ck(t,status) {
  598. //单车充电
  599. API.homeChargingGunStatus().then((res) => {
  600. this.indexData4 = res.data;
  601. }).catch(error => {
  602. uni.showToast({
  603. title: error
  604. })
  605. })
  606. this.indexData5Obj.type=t
  607. API.homeChargingSingleCarStatusDetail({
  608. status:status
  609. }).then((res) => {
  610. this.popupShow6=true;
  611. this.indexData5List = res.data.stationList;
  612. for(var i in this.indexData5List){
  613. var item=this.indexData5List[i];
  614. if(item.deviceNum){
  615. this.popupShow6 = true
  616. break
  617. }
  618. this.popupShow6 = false;
  619. }
  620. if(!this.popupShow6 ){
  621. uni.showToast({
  622. title:"电单车充电桩"+(t?"正常":"故障")+"0支"
  623. })
  624. }
  625. }).catch(error => {
  626. uni.showToast({
  627. title: error
  628. })
  629. })
  630. },
  631. indexDate4Ck(c, t) {
  632. //汽车充电
  633. API.homeChargingGunStatus().then((res) => {
  634. this.indexData4 = res.data;
  635. }).catch(error => {
  636. uni.showToast({
  637. title: error
  638. })
  639. })
  640. this.indexData4Obj.type=c
  641. if(c==1){
  642. this.indexData4Obj.typeName="快(超)充"
  643. }
  644. if(c==2){
  645. this.indexData4Obj.typeName="慢充"
  646. }
  647. if(t==1){
  648. this.indexData4Obj.text="在用"
  649. this.indexData4Obj.value="bot1span"
  650. }
  651. if(t==0){
  652. this.indexData4Obj.text="空闲"
  653. this.indexData4Obj.value="bot2span"
  654. }
  655. if(t==99){
  656. this.indexData4Obj.text="故障"
  657. this.indexData4Obj.value="bot3span"
  658. }
  659. API.homeChargingGunStatusDetail({
  660. type:c,
  661. status:t
  662. }).then((res) => {
  663. this.indexData4List = res.data.stationList;
  664. for(var i in this.indexData4List){
  665. var item=this.indexData4List[i];
  666. if(item.queryNum){
  667. this.popupShow5 = true
  668. break
  669. }
  670. this.popupShow5 = false;
  671. }
  672. if(!this.popupShow5 ){
  673. uni.showToast({
  674. title:this.indexData4Obj.typeName+"枪"+ this.indexData4Obj.text+"0支"
  675. })
  676. }
  677. }).catch(error => {
  678. uni.showToast({
  679. title: error
  680. })
  681. })
  682. },
  683. changeitem(e) {
  684. if (this.stationFlowList.length > 1 && e.index == this.stationFlowList.length - 1 && e.show) {
  685. this.changeitemBl = true;
  686. } else {
  687. this.changeitemBl = false;
  688. }
  689. },
  690. showTime(name) {
  691. if (!name) {
  692. return ''
  693. }
  694. return name.replace('-', '年') + '月';
  695. },
  696. getStation(bl) {
  697. API.stationList().then((res) => {
  698. this.stationList = res.data.stationList
  699. this.stationList.unshift({
  700. id: '',
  701. name: "全部站点"
  702. })
  703. this.selectstationName = "全部站点"
  704. this.stationListSon = res.data.deviceList
  705. this.getDataHome2()
  706. this.getData()
  707. this.getData2()
  708. }).catch(error => {
  709. uni.showToast({
  710. title: error
  711. })
  712. })
  713. },
  714. resetBtn() {
  715. this.nowTime = 7
  716. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  717. this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  718. this.selecttype = ""
  719. this.selectstationId = ""
  720. this.selectdeviceNo = ""
  721. this.form = {
  722. type: this.selecttype,
  723. stationId: this.selectstationId,
  724. deviceNo: this.selectdeviceNo,
  725. };
  726. this.popupShow = false;
  727. this.list = [];
  728. this.getData()
  729. },
  730. okbtn() {
  731. this.popupShow = false;
  732. this.form = {
  733. type: this.selecttype,
  734. stationId: this.selectstationId,
  735. deviceNo: this.selectdeviceNo,
  736. };
  737. this.list = [];
  738. this.getData()
  739. },
  740. resetBtn2() {
  741. this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  742. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  743. this.selectstationId2 = ""
  744. this.form2 = {
  745. stationId: this.selectstationId2,
  746. };
  747. this.popupShow2 = false;
  748. this.getData2()
  749. },
  750. okbtn2() {
  751. this.popupShow2 = false;
  752. this.form2 = {
  753. stationId: this.selectstationId2,
  754. };
  755. this.getData2()
  756. },
  757. getDataHome2() {
  758. var endtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  759. API.homeHeadChargingStatistics({
  760. type: this.type_head,
  761. startDate: this.startDate_head,
  762. endDate: endtime
  763. }).then((res) => {
  764. this.indexData3 = res.data;
  765. uni.hideLoading()
  766. // if( this.info.accountType==3){
  767. // //getPie2
  768. // this.getPie2()
  769. // }else{
  770. // //getPie
  771. // this.getPie()
  772. // }
  773. this.getPie(this.info.accountType)
  774. }).catch(error => {
  775. uni.showToast({
  776. title: error
  777. })
  778. })
  779. },
  780. // getDataHome() {
  781. // API.homeHeadStatistics().then((res) => {
  782. // this.indexData = res.data;
  783. // }).catch(error => {
  784. // uni.showToast({
  785. // title: error
  786. // })
  787. // })
  788. // },
  789. getData() {
  790. this.form.startDate = this.startTime,
  791. this.form.endDate = this.endTime
  792. API.homeFlowStatistics(this.form).then((res) => {
  793. this.stationFlowList = res.data.stationFlowList;
  794. this.nowTime = daysDistance(this.startTime, this.endTime) + 1;
  795. this.serviceMoneySum = 0;
  796. this.allMoneySum = 0;
  797. this.serviceMoneySum=res.data.allProfit;
  798. this.allMoneySum=res.data.allAmount;
  799. for (var i in this.stationFlowList) {
  800. var item = this.stationFlowList[i];
  801. // this.allMoneySum += item.actualMoney
  802. // this.serviceMoneySum += item.serviceMoney
  803. // this.serviceMoneySum += item.cardMoney
  804. }
  805. }).catch(error => {
  806. uni.showToast({
  807. title: error
  808. })
  809. })
  810. },
  811. getData2() {
  812. uni.showLoading({
  813. title: "加载中",
  814. mask: true,
  815. })
  816. this.form2.startDate = this.startTime2,
  817. this.form2.endDate = this.endTime2
  818. API.homeIncomeStatistics(this.form2).then((res) => {
  819. this.indexData2 = res.data
  820. uni.hideLoading()
  821. }).catch(error => {
  822. uni.showToast({
  823. title: error
  824. })
  825. })
  826. },
  827. changesub(e) {
  828. this.current = e
  829. this.type_head = e;
  830. uni.showLoading({
  831. title: "加载中",
  832. mask: true,
  833. })
  834. if (e == 1) {
  835. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  836. } else {
  837. this.startDate_head = parseUnixTime(beforeTimeStamp(365), '{y}-{m}-01')
  838. }
  839. // this.getPie()
  840. this.getDataHome2()
  841. },
  842. changedate4(e) {
  843. this.startTime = e.startDate
  844. this.endTime = e.endDate
  845. this.okbtn()
  846. },
  847. changedate3(e) {
  848. var index = e[0];
  849. var obj = this.stationList[index];
  850. this.selectstationId2 = obj.id;
  851. this.selectstationIndex = index;
  852. this.selectstationName = obj.name;
  853. this.okbtn2()
  854. },
  855. changedate(e) {
  856. this.queryTime = e.year + '-' + e.month;
  857. this.startTime = e.year + '-' + e.month + '-01';
  858. if (e.month == '12') {
  859. this.endTime = (e.year) + "-12-31"
  860. } else {
  861. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  862. var a = beforeTimeStamp(1, b);
  863. this.endTime = parseUnixTime(a, '{y}-{m}-{d}')
  864. }
  865. this.okbtn()
  866. },
  867. changedate2(e) {
  868. this.queryTime2 = e.year + '-' + e.month;
  869. if (e.month == '12') {
  870. this.endTime2 = (e.year) + "-12-31"
  871. } else {
  872. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  873. var a = beforeTimeStamp(1, b);
  874. this.endTime2 = parseUnixTime(a, '{y}-{m}-{d}')
  875. }
  876. this.okbtn2()
  877. },
  878. getPie(type) {
  879. //true 正常版本 false 个人版本
  880. var typebl = !(this.info.accountType == 3);
  881. var dataInterval = null;
  882. if (typebl) {
  883. if (this.type_head == 1) {
  884. dataInterval = [0, 75, 100,
  885. 125, 150, 200, 400, 500,
  886. 600, 1200, 1400, 1600, 1800,
  887. 2600, 2800,
  888. 3000, 4200,
  889. 4800, 5200, 6500, 7000, 7500, 8000, 12000, 14000, 16000, 18000, 20000,23000,
  890. 25000,30000,35000,40000, 999999
  891. ];
  892. } else {
  893. dataInterval = [0, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
  894. 90000, 100000, 120000, 140000, 160000, 180000, 200000, 220000, 240000,280000, 3200000, 3500000,400000, 500000,
  895. 999999
  896. ];
  897. }
  898. }
  899. this.headitemby = "";
  900. var showkey = "";
  901. var getData = this.indexData3.graphMap;
  902. for (var i in getData) {
  903. var item = getData[i]
  904. item.todayEQAmount2 = (item.todayEQAmount / 10000)
  905. }
  906. this.indexData3.graphMap = getData
  907. //var unit = this.current ? '笔' : '元'
  908. var colorName = "#333"
  909. // this.showlist1 = ['收入', '利润', '次数','新电途'];
  910. var showlistColor = ['#5872c0', '#de6e6a', '#f3c96b', '#69be8d', '#c661b4'];
  911. // this.showlist1 = ['收入', '利润', '电量', '新电途'];
  912. // var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount'];
  913. this.showlist1 = ['收入', '利润', '电量', '新电途', '快电'];
  914. var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount','todayKDAmount'];
  915. var zLevel = [20, 40, 10, 30,9];
  916. //var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  917. if (!this.myChart) {
  918. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  919. this.myChart.on("dataZoom", (res) => {
  920. showkey = "";
  921. this.headitemby = "";
  922. });
  923. }
  924. this.myChart.clear();
  925. //
  926. var timelist = []
  927. for (var i in getData) {
  928. if (this.type_head == 1) {
  929. timelist.push(i.substring(5))
  930. } else {
  931. timelist.push(i)
  932. }
  933. }
  934. var list = [];
  935. for (var j in this.showlist1) {
  936. var ap = {
  937. name: this.showlist1[j],
  938. type: 'line',
  939. lineStyle: {
  940. color: showlistColor[j]
  941. },
  942. itemStyle: {
  943. color: showlistColor[j]
  944. },
  945. z: zLevel[j],
  946. // label: {
  947. // show: true,
  948. // position: 'top'
  949. // },
  950. data: []
  951. }
  952. if (this.type_head == 1) {
  953. ap.symbolSize = 3;
  954. }
  955. var bl = true;
  956. for (var i in getData) {
  957. //var time=this.queryDate.replace("-","/").replace("-","/")
  958. //time+' '+i
  959. var obj = getData[i][sz2[j]];
  960. //**********
  961. if (typebl) {
  962. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  963. // 2.寻找在数据间隔里大于amount的最小值
  964. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  965. // 3.寻找 min_v 所在的下标
  966. const index = dataInterval.findIndex((v) => v === min_v);
  967. // 4.计算该amount在y轴上应该展示的位置
  968. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  969. obj = y_value;
  970. }
  971. //**********
  972. //'todayAmount', 'todayProfit', 'todayEQNum'
  973. // if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  974. // //&& &&getData[i].todayEQNum == 0
  975. // continue;
  976. // }
  977. bl = false;
  978. var time = i
  979. if (this.type_head == 1) {
  980. //time = i.substring(5)
  981. } else {
  982. }
  983. ap.data.push([time, obj]);
  984. }
  985. if (bl) {
  986. ap.data = [];
  987. for (var i in getData) {
  988. //var time=this.queryDate.replace("-","/").replace("-","/")
  989. //time+' '+i
  990. var obj = getData[i][sz2[j]];
  991. var time = i
  992. if (this.type_head == 1) {
  993. time = i.substring(5)
  994. } else {
  995. }
  996. // if(j!=2){
  997. // obj=obj.toFixed(2)
  998. // }
  999. ap.data.push([time, obj]);
  1000. }
  1001. }
  1002. list.push(ap)
  1003. }
  1004. var yshow = 0;
  1005. // 指定图表的配置项和数据
  1006. var option = {
  1007. tooltip: {
  1008. position: (e)=>{
  1009. var x=e[0]
  1010. var y=e[1]
  1011. // if(y<50){
  1012. // y+=20
  1013. // }
  1014. // console.log(e)
  1015. // return [x,y]
  1016. if(this.windowWidth){
  1017. if(y<100){
  1018. if(x<this.windowWidth/2){
  1019. return ['30%','60%']
  1020. }else{
  1021. return ['10%','60%']
  1022. }
  1023. }else{
  1024. if(x<this.windowWidth/2){
  1025. return ['30%','-45%']
  1026. }else{
  1027. return ['10%','-45%']
  1028. }
  1029. }
  1030. }
  1031. },
  1032. formatter: (value) => {
  1033. //getPie
  1034. var name = value[0].data[0];
  1035. var info = getData[name];
  1036. var style = "float: right;margin-left: 3px;"
  1037. var text1 = ""
  1038. for (var i in value) {
  1039. var u = "元"
  1040. var num = info[sz2[value[i].seriesIndex]];
  1041. if(!num){
  1042. num=0;
  1043. }
  1044. if (value[i].seriesName == '电量') {
  1045. u = '度'
  1046. num = num.toFixed(2)
  1047. } else if (value[i].seriesName == '次数') {
  1048. u = '次'
  1049. } else {
  1050. num = num.toFixed(2)
  1051. }
  1052. var markerU="";
  1053. if(value[i].seriesName == "收入"){
  1054. }
  1055. if (this.type_head == 2&&value[i].seriesName == "收入") {
  1056. markerU="(含卡)"
  1057. u="万元"
  1058. num=info.todayAmountW
  1059. if(!num){
  1060. num=0;
  1061. }
  1062. num = num.toFixed(2)
  1063. }
  1064. if (this.type_head == 2&&value[i].seriesName == "电量") {
  1065. //markerU="(含卡)"
  1066. u="万度"
  1067. // num=info.todayAmountW
  1068. if(!num){
  1069. num=0;
  1070. }
  1071. num = (num/10000).toFixed(2)
  1072. }
  1073. text1 += "<p>" + value[i].marker + value[i].seriesName+markerU + '<span style="' + style +
  1074. '">' + num + u + '</span></p>';
  1075. if (this.type_head == 2) {
  1076. console.log(i,this.queryTime2)
  1077. if (value[i].seriesName == "收入") {
  1078. if(name!=this.queryTime2){
  1079. if(info.yoyNum!=null){
  1080. text1 += "<p>" + value[i].marker + "收入同比"+(info.yoyNum<0?'减少':'增长') + '<span style="' + style +
  1081. '">' + (info.yoyNum<0?info.yoyNum*-1:info.yoyNum) + '%' + '</span></p>';
  1082. }else{
  1083. text1 += "<p>" + value[i].marker + "收入同比"+ '<span style="' + style +
  1084. '">' +'无数据' + '</span></p>';
  1085. }
  1086. if(info.qoqNum!=null){
  1087. text1 += "<p>" + value[i].marker + "收入环比" +(info.qoqNum<0?'减少':'增长') + '<span style="' + style +
  1088. '">' + (info.qoqNum<0?info.qoqNum*-1:info.qoqNum) + '%' + '</span></p>';
  1089. }else{
  1090. text1 += "<p>" + value[i].marker + "收入环比"+ '<span style="' + style +
  1091. '">' +'无数据' + '</span></p>';
  1092. }
  1093. }
  1094. }
  1095. }
  1096. if(i==value.length-1){
  1097. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>6折卡数量"+ '<span style="' + style +
  1098. '">' +(info.discountCardBuyNum?info.discountCardBuyNum:0) + '张</span></p>';
  1099. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>月卡数量"+ '<span style="' + style +
  1100. '">' +(info.monthCardBuyNum?info.monthCardBuyNum:0) + '张</span></p>';
  1101. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>折扣卡金额"+ '<span style="' + style +
  1102. '">' +(info.cardBuyFee?info.cardBuyFee:0).toFixed(2) + '元</span></p>';
  1103. }
  1104. }
  1105. if (this.type_head == 1) {
  1106. //time = i.substring(5)
  1107. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  1108. var now = newDate(name);
  1109. var day = now.getDay();
  1110. var week = weeks[day];
  1111. return `<p>${name} ${week}</p>` + text1
  1112. } else {
  1113. return `<p>${name}</p>` + text1
  1114. }
  1115. },
  1116. trigger: 'axis',
  1117. borderColor: "#F0F0F0",
  1118. borderWidth: 1,
  1119. backgroundColor: "#ffffff",
  1120. textStyle: {
  1121. color: "#333"
  1122. }
  1123. },
  1124. legend: {
  1125. itemGap :1,
  1126. data: this.showlist1,
  1127. textStyle: {
  1128. color: "#333"
  1129. }
  1130. },
  1131. grid: {
  1132. top: '16%',
  1133. left: '3%',
  1134. right: '8%',
  1135. bottom: '8%',
  1136. containLabel: true
  1137. },
  1138. xAxis: {
  1139. //type: 'value',
  1140. type: 'category',
  1141. splitNumber: 4,
  1142. boundaryGap: false,
  1143. axisLabel: {
  1144. formatter: (value) => {
  1145. if (this.headitemby == "") {
  1146. this.headitemby = value
  1147. }
  1148. var i = 0
  1149. if (this.type_head == 1) {
  1150. i = 0;
  1151. } else {
  1152. i = 3;
  1153. }
  1154. var showvalue = "";
  1155. var key = value.substring(0, 8 - i);
  1156. if (showkey == "" || value == this.headitemby) {
  1157. showkey = key
  1158. showvalue = value
  1159. showvalue = value.substring(5 - i)
  1160. } else {
  1161. if (key != showkey) {
  1162. showkey = key
  1163. showvalue = value
  1164. showvalue = value.substring(5 - i)
  1165. } else {
  1166. showvalue = value.substring(8 - i)
  1167. }
  1168. }
  1169. return showvalue.replace("-", ".");
  1170. },
  1171. textStyle: {
  1172. color: "#333"
  1173. }
  1174. },
  1175. axisLine: {
  1176. show: true,
  1177. lineStyle: {
  1178. color: "#333"
  1179. }
  1180. },
  1181. },
  1182. yAxis: {
  1183. type: 'value',
  1184. // name: '单位('+this.typeN+')',
  1185. axisLabel: {
  1186. formatter: (v, i) => {
  1187. //console.log(v,i)
  1188. if (dataInterval == null) {
  1189. return v
  1190. }
  1191. if (i == 0) {
  1192. yshow = 0
  1193. return 0
  1194. }
  1195. if (yshow != parseInt(v / 10)) {
  1196. yshow = parseInt(v / 10);
  1197. return dataInterval[parseInt(v / 10)]
  1198. } else {
  1199. return ''
  1200. }
  1201. },
  1202. textStyle: {
  1203. color: "#333"
  1204. }
  1205. },
  1206. axisLine: {
  1207. show: true,
  1208. lineStyle: {
  1209. color: "#333"
  1210. }
  1211. },
  1212. },
  1213. series: list
  1214. };
  1215. // option.dataZoom = [{
  1216. // type: 'inside',
  1217. // start: 0,
  1218. // end: 100
  1219. // },
  1220. // {
  1221. // start: 0,
  1222. // end: 100
  1223. // }
  1224. // ]
  1225. if (this.type_head == 1) {
  1226. } else {
  1227. //timelist.push(i)
  1228. }
  1229. //console.log(option)
  1230. // 使用刚指定的配置项和数据显示图表。
  1231. this.myChart.setOption(option);
  1232. }
  1233. }
  1234. }
  1235. </script>
  1236. <style>
  1237. page {
  1238. /* background: url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  1239. background-size: 100%; */
  1240. }
  1241. </style>
  1242. <style lang="scss" scoped>
  1243. .contentBodyName{
  1244. padding: 0 36rpx 12rpx 36rpx;
  1245. }
  1246. .contentBody{
  1247. color: #777777 ;
  1248. font-size: 28rpx;
  1249. display: flex;
  1250. justify-content: space-between;
  1251. flex-direction: row;
  1252. padding: 0 16rpx;
  1253. margin-bottom: 16rpx;
  1254. .body1{
  1255. color:#333333;
  1256. margin-left: 20rpx;
  1257. }
  1258. .body2{
  1259. display: flex;
  1260. .body2-0{
  1261. width: 110rpx;
  1262. }
  1263. .body2-1{
  1264. padding: 0 8rpx;
  1265. color: #00B962;
  1266. }
  1267. .body2-2{
  1268. width: 120rpx;
  1269. }
  1270. }
  1271. .body3{
  1272. padding: 0 8rpx;
  1273. color:#FF3D00 ;
  1274. }
  1275. }
  1276. .indexData5content {
  1277. padding: 40rpx 20rpx;
  1278. .contentTitle{
  1279. color:#333333;
  1280. font-size: 40rpx;
  1281. text-align: center;
  1282. font-weight: bold;
  1283. margin-bottom: 8px;
  1284. }
  1285. .contentItem{
  1286. border-bottom: 1px solid #ededed;
  1287. // margin: 16rpx;
  1288. // padding:12rpx;
  1289. img,svg{
  1290. vertical-align: bottom;
  1291. height: 44rpx;
  1292. //margin-right: 8rpx;
  1293. }
  1294. .span1{
  1295. text-align: left;
  1296. font-weight: bold;
  1297. font-size: 36rpx;
  1298. width: 310rpx;
  1299. overflow: hidden;
  1300. text-overflow: ellipsis;
  1301. white-space: nowrap;
  1302. }
  1303. .color777{
  1304. color: #777777;
  1305. }
  1306. .color333{
  1307. color: #333333;
  1308. }
  1309. .span2{
  1310. border-right: 1px solid #ededed;
  1311. width: 120rpx;
  1312. padding: 0 8rpx;
  1313. span{
  1314. padding: 0 8rpx;
  1315. }
  1316. }
  1317. .span3{
  1318. padding: 0 0 0 12rpx;
  1319. span{
  1320. padding: 0 8rpx;
  1321. }
  1322. width: 154rpx;
  1323. .bot1span {
  1324. color: #00B962;
  1325. }
  1326. .bot2span {
  1327. color: #AAAAAA;
  1328. }
  1329. .bot3span {
  1330. color: #FF3D00;
  1331. }
  1332. }
  1333. }
  1334. }
  1335. .indexData4content {
  1336. padding: 40rpx 20rpx;
  1337. .contentTitle{
  1338. color:#333333;
  1339. font-size: 40rpx;
  1340. text-align: center;
  1341. font-weight: bold;
  1342. margin-bottom: 8px;
  1343. }
  1344. .contentItem{
  1345. border-bottom: 1px solid #ededed;
  1346. justify-content: space-between;
  1347. flex-direction: row;
  1348. margin: 16rpx;
  1349. padding:12rpx;
  1350. .span1{
  1351. img{
  1352. vertical-align: bottom;
  1353. height: 44rpx;
  1354. margin-right: 8rpx;
  1355. }
  1356. font-weight: bold;
  1357. font-size: 36rpx;
  1358. width: 400rpx;
  1359. overflow: hidden;
  1360. text-overflow: ellipsis;
  1361. white-space: nowrap;
  1362. }
  1363. .color777{
  1364. color: #777777;
  1365. }
  1366. .color333{
  1367. color: #333333;
  1368. }
  1369. .span2{
  1370. border-right: 1px solid #ededed;
  1371. width: 120rpx;
  1372. padding: 0 16rpx;
  1373. span{
  1374. padding: 0 8rpx;
  1375. }
  1376. }
  1377. .span3{
  1378. padding: 0 0 0 16rpx;
  1379. span{
  1380. padding: 0 8rpx;
  1381. }
  1382. width: 154rpx;
  1383. color: #333;
  1384. .bot1span {
  1385. color: #00B962;
  1386. }
  1387. .bot2span {
  1388. color: #AAAAAA;
  1389. }
  1390. .bot3span {
  1391. color: #FF3D00;
  1392. }
  1393. }
  1394. }
  1395. .u-collapse-bot0span{
  1396. .contentItem{
  1397. display: flex;
  1398. }
  1399. }
  1400. .u-collapse-bot3span{
  1401. .contentItem{
  1402. margin:0;
  1403. padding:0;
  1404. .span1{
  1405. width: 310rpx;
  1406. }
  1407. }
  1408. }
  1409. }
  1410. .chargingpile {
  1411. img {
  1412. vertical-align: bottom;
  1413. height: 44rpx;
  1414. margin-right: 8rpx;
  1415. }
  1416. p {
  1417. color: #185AC6;
  1418. font-size: 36rpx;
  1419. font-weight: bold;
  1420. span {
  1421. color: #777777;
  1422. margin-left: 8rpx;
  1423. font-size: 32rpx;
  1424. font-weight: normal;
  1425. }
  1426. }
  1427. .detailstablepile {
  1428. .details-row-main {
  1429. border-bottom: 1px solid #ededed;
  1430. padding: 10px 0;
  1431. }
  1432. span {
  1433. margin: 0 8rpx;
  1434. }
  1435. .bot {
  1436. display: inline-block;
  1437. width: 24rpx;
  1438. height: 24rpx;
  1439. margin-left: 4rpx;
  1440. border-radius: 999px;
  1441. }
  1442. .bot1 {
  1443. background-color: #00B962;
  1444. }
  1445. .bot2 {
  1446. //margin-left: 16rpx;
  1447. background-color: #AAAAAA;
  1448. }
  1449. .bot3 {
  1450. //margin-left: 16rpx;
  1451. background-color: #FF3D00;
  1452. }
  1453. .bot1span {
  1454. color: #00B962;
  1455. }
  1456. .bot2span {
  1457. color: #AAAAAA;
  1458. }
  1459. .bot3span {
  1460. color: #FF3D00;
  1461. }
  1462. .detailsline {
  1463. border-bottom: 1px solid #ededed;
  1464. }
  1465. .detailsline,
  1466. .detailsline—bottom {
  1467. display: flex;
  1468. .details-row {
  1469. width: 33%;
  1470. // display: flex;
  1471. // justify-content: space-between;
  1472. // flex-direction: column;
  1473. padding-left: 16rpx;
  1474. margin-bottom: 16rpx;
  1475. margin-top: 16rpx;
  1476. .span1 {
  1477. color: rgba(136, 136, 136, 100);
  1478. font-size: 28rpx;
  1479. width: 100%;
  1480. color: #333333;
  1481. }
  1482. }
  1483. }
  1484. .details-row-1 {
  1485. width: 47%;
  1486. padding-left: 0px !important;
  1487. //border-right: 1px solid #ededed;
  1488. }
  1489. }
  1490. }
  1491. .viewgun {
  1492. position: relative;
  1493. top: 200px;
  1494. text-align: center;
  1495. .viewspan {
  1496. width: 30%;
  1497. margin-left: 16rpx;
  1498. display: inline;
  1499. }
  1500. }
  1501. .headbotton1:after {
  1502. border-radius: 15px 0 0 15px;
  1503. }
  1504. .headbotton2:after {
  1505. border-radius: 0 15px 15px 0;
  1506. }
  1507. .detailstable {
  1508. padding: 30rpx 30rpx !important;
  1509. }
  1510. .detailstableHead {
  1511. .span1 {
  1512. font-size: 32rpx !important;
  1513. }
  1514. .details-row-head-1 {}
  1515. .details-row-head-2 {}
  1516. .details-row-head-3 {
  1517. width: 30% !important;
  1518. max-width: 150rpx;
  1519. .span {}
  1520. }
  1521. .span2 {
  1522. font-size: 44rpx !important;
  1523. font-weight: bold;
  1524. width: 100%;
  1525. color: #101010;
  1526. span {
  1527. font-size: 24rpx !important;
  1528. }
  1529. }
  1530. }
  1531. .detailslineHead {
  1532. border-top: 1px solid #ededed;
  1533. ;
  1534. .details-row {
  1535. padding-left: 8rpx !important;
  1536. }
  1537. font-size: 30rpx !important;
  1538. .span1 span {
  1539. font-size: 28rpx;
  1540. }
  1541. }
  1542. .detailstable,
  1543. .detailstableHead {
  1544. font-size: 16px;
  1545. p {
  1546. font-size: 14px;
  1547. }
  1548. .details-row-main {
  1549. border-bottom: 1px solid #ededed;
  1550. padding: 10px 0;
  1551. }
  1552. .detailsline {
  1553. border-bottom: 1px solid #ededed;
  1554. }
  1555. .detailsline,
  1556. .detailsline—bottom {
  1557. display: flex;
  1558. .details-row {
  1559. width: 50%;
  1560. display: flex;
  1561. justify-content: space-between;
  1562. flex-direction: column;
  1563. padding-left: 16rpx;
  1564. margin-bottom: 20rpx;
  1565. .span1 {
  1566. color: rgba(136, 136, 136, 100);
  1567. font-size: 28rpx;
  1568. width: 100%;
  1569. }
  1570. .span2 {
  1571. font-size: 36rpx;
  1572. width: 100%;
  1573. color: #101010;
  1574. span {
  1575. font-size: 24rpx;
  1576. }
  1577. }
  1578. }
  1579. }
  1580. .details-row-1 {
  1581. width: 47%;
  1582. padding-left: 0px !important;
  1583. border-right: 1px solid #ededed;
  1584. }
  1585. }
  1586. .details {
  1587. padding: 32rpx;
  1588. background-color: #fff;
  1589. border-radius: 8px;
  1590. }
  1591. .details-title {
  1592. margin-bottom: 16px;
  1593. h4 {
  1594. font-weight: normal;
  1595. font-size: 16px;
  1596. position: relative;
  1597. padding-left: 10px;
  1598. &::after {
  1599. content: '';
  1600. position: absolute;
  1601. height: 12px;
  1602. width: 4px;
  1603. background-color: #27B148;
  1604. left: 0;
  1605. top: 5px;
  1606. }
  1607. }
  1608. }
  1609. .details-row {
  1610. display: flex;
  1611. justify-content: space-between;
  1612. align-items: center;
  1613. margin-top: 30rpx;
  1614. p {
  1615. color: #37393c;
  1616. font-weight: bold;
  1617. }
  1618. }
  1619. .details-row2 {
  1620. display: flex;
  1621. justify-content: space-between;
  1622. align-items: center;
  1623. // margin-top: 15px;
  1624. p {
  1625. // color: #37393c;
  1626. // font-weight: bold;
  1627. }
  1628. }
  1629. .popup-screen {
  1630. padding: 20px;
  1631. position: relative;
  1632. .screen {
  1633. padding-bottom: 30px;
  1634. }
  1635. .screen-item {
  1636. margin-bottom: 20px;
  1637. .screen-head {
  1638. margin-bottom: 8px;
  1639. font-size: 16px;
  1640. }
  1641. .screen-main {
  1642. display: flex;
  1643. // display: -webkit-box;
  1644. flex-wrap: wrap;
  1645. }
  1646. .screen-entry {
  1647. width: 29%;
  1648. padding: 6px 0;
  1649. display: flex;
  1650. align-items: center;
  1651. justify-content: center;
  1652. background-color: #F2F5FA;
  1653. text-align: center;
  1654. margin-bottom: 10px;
  1655. border-radius: 3px;
  1656. margin-right: 6px;
  1657. }
  1658. .screen-entry.active {
  1659. background-color: #185AC6;
  1660. color: #fff;
  1661. }
  1662. }
  1663. .screen-foot {
  1664. position: fixed;
  1665. left: 0;
  1666. right: 0;
  1667. bottom: 0;
  1668. display: flex;
  1669. height: 50px;
  1670. border-top: 1px solid #ededed;
  1671. .screen-btn-l {
  1672. background-color: #fff;
  1673. flex: 0.2;
  1674. text-align: center;
  1675. line-height: 50px;
  1676. }
  1677. .screen-btn-r {
  1678. flex: 0.8;
  1679. text-align: center;
  1680. line-height: 50px;
  1681. background-color: #185AC6;
  1682. color: #fff;
  1683. }
  1684. }
  1685. }
  1686. .navbar-tit {
  1687. color: #fff;
  1688. font-size: 20px;
  1689. line-height: 20px;
  1690. padding-left: 15px;
  1691. padding-top: 10px;
  1692. text{
  1693. margin-right: 8rpx;
  1694. }
  1695. }
  1696. .statisticsData {
  1697. background-color: #fff;
  1698. margin: 0px 24rpx 24rpx;
  1699. //padding:0px 24rpx 24rpx;
  1700. border-radius: 8px;
  1701. }
  1702. .statisticsDataMain {
  1703. flex-wrap: wrap;
  1704. display: flex;
  1705. }
  1706. .statisticsData-item {
  1707. flex: 1;
  1708. width: 40%;
  1709. .statisticsData-head {
  1710. display: flex;
  1711. align-items: center;
  1712. p {
  1713. color: #637AA2;
  1714. font-size: 12px;
  1715. }
  1716. }
  1717. .statisticsData-main {
  1718. margin-top: 4px;
  1719. font-size: 18px;
  1720. }
  1721. .statisticsData-foot {
  1722. display: flex;
  1723. align-items: center;
  1724. margin-top: 16px;
  1725. p {
  1726. color: #637AA2;
  1727. }
  1728. h4 {
  1729. margin-left: 8px;
  1730. }
  1731. }
  1732. }
  1733. .statisticsChart {
  1734. margin: 32rpx;
  1735. .statisticsChart-head {
  1736. margin-bottom: 10rpx;
  1737. display: flex;
  1738. justify-content: space-between;
  1739. align-items: center;
  1740. h4 {
  1741. font-weight: normal;
  1742. font-size: 16px;
  1743. position: relative;
  1744. padding-left: 10px;
  1745. &::after {
  1746. content: '';
  1747. position: absolute;
  1748. height: 12px;
  1749. width: 4px;
  1750. background-color: #4E8DF6;
  1751. left: 0;
  1752. top: 5px;
  1753. }
  1754. }
  1755. .h4-1{
  1756. display: flex;
  1757. align-items: center;
  1758. padding-left: 0;
  1759. color: rgba(16, 16, 16, 1);
  1760. img{
  1761. margin-right: 8rpx;
  1762. }
  1763. &::after{
  1764. content: none;
  1765. }
  1766. }
  1767. .statisticsChart-time {
  1768. display: flex;
  1769. align-items: center;
  1770. p {
  1771. color: #666;
  1772. }
  1773. }
  1774. }
  1775. .statisticsChart-main {
  1776. background-color: #fff;
  1777. padding: 10px 16px 16px 16px;
  1778. border-radius: 8px;
  1779. }
  1780. }
  1781. .top-cover{
  1782. // height: 470px;
  1783. // margin-bottom: 70px;
  1784. background: linear-gradient(179.94deg, rgba(0,185,98,1) 71.55%,rgba(0,196,104,0) 99.35%);
  1785. .income{
  1786. padding: 64rpx 32rpx 24rpx 32rpx;
  1787. color: rgba(255, 255, 255, 1);
  1788. .today-income{
  1789. text-align: center;
  1790. .number{
  1791. font-size: 36px;
  1792. text{
  1793. margin-left: 8rpx;
  1794. }
  1795. }
  1796. .text{
  1797. font-size: 16px;
  1798. }
  1799. }
  1800. .else{
  1801. margin-top: 32rpx;
  1802. display: flex;
  1803. justify-content: space-between;
  1804. .item{
  1805. text-align: center;
  1806. .item-number{
  1807. font-size: 48rpx;
  1808. margin-bottom: 8rpx;
  1809. }
  1810. }
  1811. }
  1812. }
  1813. }
  1814. </style>