index.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245
  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}}{{info.accountType==3?'':'运管中心'}}</view>
  7. <view class="income">
  8. <!-- 今日收入 -->
  9. <view class="today-income">
  10. <view class="number" @click="changesub(1)">
  11. {{showTopobj.todayAmount}}<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. {{showTopobj.todayProfit}}
  22. </view>
  23. <view class="item-text">
  24. 利润(元)
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item-number">
  29. {{showTopobj.todayEQAmount2?showTopobj.todayEQAmount2.toFixed(2):0}}
  30. </view>
  31. <view class="item-text">
  32. 今日电量 (度)
  33. </view>
  34. </view>
  35. <view class="item" v-if="showMonthlyCard">
  36. <view class="item-number">
  37. {{showTopobj.discountCardBuyNum}} / {{showTopobj.monthCardBuyNum}}
  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. showTopobj:{},
  553. showMonthlyCard:false,
  554. }
  555. },
  556. onShow() {
  557. if (this.$refs.tabbarMain) {
  558. this.$refs.tabbarMain.setcount(0);
  559. }
  560. API.homeChargingGunStatus().then((res) => {
  561. this.indexData4 = res.data;
  562. }).catch(error => {
  563. uni.showToast({
  564. title: error
  565. })
  566. })
  567. },
  568. onLoad() {
  569. this.info = this.carhelp.getPersonInfo()
  570. this.info = this.carhelp.getPersonInfo()
  571. if(this.info &&this.info.showMonthlyCard){
  572. this.showMonthlyCard=this.info.showMonthlyCard;
  573. }
  574. this.title = this.info.merchantAccountName
  575. uni.getSystemInfo().then(e=>{
  576. this.windowWidth=e[1].windowWidth
  577. })
  578. },
  579. components: {
  580. Tabbar
  581. },
  582. onReady() {
  583. var date = new Date();
  584. this.nowTime = 7
  585. this.queryTime = parseUnixTime(currentTimeStamp(), '{y}-{m}');
  586. this.queryTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}'),
  587. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  588. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  589. this.endTime = parseUnixTime(beforeTimeStamp(0), '{y}-{m}-{d}')
  590. //this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  591. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  592. this.getStation()
  593. },
  594. computed: {
  595. // startTime(){
  596. // return this.queryTime+'-1'
  597. // },
  598. startTime2() {
  599. return this.queryTime2 + '-01'
  600. },
  601. },
  602. methods: {
  603. indexDate5Ck(t,status) {
  604. //单车充电
  605. API.homeChargingGunStatus().then((res) => {
  606. this.indexData4 = res.data;
  607. }).catch(error => {
  608. uni.showToast({
  609. title: error
  610. })
  611. })
  612. this.indexData5Obj.type=t
  613. API.homeChargingSingleCarStatusDetail({
  614. status:status
  615. }).then((res) => {
  616. this.popupShow6=true;
  617. this.indexData5List = res.data.stationList;
  618. for(var i in this.indexData5List){
  619. var item=this.indexData5List[i];
  620. if(item.deviceNum){
  621. this.popupShow6 = true
  622. break
  623. }
  624. this.popupShow6 = false;
  625. }
  626. if(!this.popupShow6 ){
  627. uni.showToast({
  628. title:"电单车充电桩"+(t?"正常":"故障")+"0支"
  629. })
  630. }
  631. }).catch(error => {
  632. uni.showToast({
  633. title: error
  634. })
  635. })
  636. },
  637. indexDate4Ck(c, t) {
  638. //汽车充电
  639. API.homeChargingGunStatus().then((res) => {
  640. this.indexData4 = res.data;
  641. }).catch(error => {
  642. uni.showToast({
  643. title: error
  644. })
  645. })
  646. this.indexData4Obj.type=c
  647. if(c==1){
  648. this.indexData4Obj.typeName="快(超)充"
  649. }
  650. if(c==2){
  651. this.indexData4Obj.typeName="慢充"
  652. }
  653. if(t==1){
  654. this.indexData4Obj.text="在用"
  655. this.indexData4Obj.value="bot1span"
  656. }
  657. if(t==0){
  658. this.indexData4Obj.text="空闲"
  659. this.indexData4Obj.value="bot2span"
  660. }
  661. if(t==99){
  662. this.indexData4Obj.text="故障"
  663. this.indexData4Obj.value="bot3span"
  664. }
  665. API.homeChargingGunStatusDetail({
  666. type:c,
  667. status:t
  668. }).then((res) => {
  669. this.indexData4List = res.data.stationList;
  670. for(var i in this.indexData4List){
  671. var item=this.indexData4List[i];
  672. if(item.queryNum){
  673. this.popupShow5 = true
  674. break
  675. }
  676. this.popupShow5 = false;
  677. }
  678. if(!this.popupShow5 ){
  679. uni.showToast({
  680. title:this.indexData4Obj.typeName+"枪"+ this.indexData4Obj.text+"0支"
  681. })
  682. }
  683. }).catch(error => {
  684. uni.showToast({
  685. title: error
  686. })
  687. })
  688. },
  689. changeitem(e) {
  690. if (this.stationFlowList.length > 1 && e.index == this.stationFlowList.length - 1 && e.show) {
  691. this.changeitemBl = true;
  692. } else {
  693. this.changeitemBl = false;
  694. }
  695. },
  696. showTime(name) {
  697. if (!name) {
  698. return ''
  699. }
  700. return name.replace('-', '年') + '月';
  701. },
  702. getStation(bl) {
  703. API.stationList().then((res) => {
  704. this.stationList = res.data.stationList
  705. this.stationList.unshift({
  706. id: '',
  707. name: "全部站点"
  708. })
  709. this.selectstationName = "全部站点"
  710. this.stationListSon = res.data.deviceList
  711. this.getDataHome2()
  712. this.getData()
  713. this.getData2()
  714. }).catch(error => {
  715. uni.showToast({
  716. title: error
  717. })
  718. })
  719. },
  720. resetBtn() {
  721. this.nowTime = 7
  722. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  723. this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  724. this.selecttype = ""
  725. this.selectstationId = ""
  726. this.selectdeviceNo = ""
  727. this.form = {
  728. type: this.selecttype,
  729. stationId: this.selectstationId,
  730. deviceNo: this.selectdeviceNo,
  731. };
  732. this.popupShow = false;
  733. this.list = [];
  734. this.getData()
  735. },
  736. okbtn() {
  737. this.popupShow = false;
  738. this.form = {
  739. type: this.selecttype,
  740. stationId: this.selectstationId,
  741. deviceNo: this.selectdeviceNo,
  742. };
  743. this.list = [];
  744. this.getData()
  745. },
  746. resetBtn2() {
  747. this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  748. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  749. this.selectstationId2 = ""
  750. this.form2 = {
  751. stationId: this.selectstationId2,
  752. };
  753. this.popupShow2 = false;
  754. this.getData2()
  755. },
  756. okbtn2() {
  757. this.popupShow2 = false;
  758. this.form2 = {
  759. stationId: this.selectstationId2,
  760. };
  761. this.getData2()
  762. },
  763. getDataHome2() {
  764. var endtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  765. API.homeHeadChargingStatistics({
  766. type: this.type_head,
  767. startDate: this.startDate_head,
  768. endDate: endtime
  769. }).then((res) => {
  770. this.indexData3 = res.data;
  771. uni.hideLoading()
  772. // if( this.info.accountType==3){
  773. // //getPie2
  774. // this.getPie2()
  775. // }else{
  776. // //getPie
  777. // this.getPie()
  778. // }
  779. this.getPie(this.info.accountType)
  780. }).catch(error => {
  781. uni.showToast({
  782. title: error
  783. })
  784. })
  785. },
  786. // getDataHome() {
  787. // API.homeHeadStatistics().then((res) => {
  788. // this.indexData = res.data;
  789. // }).catch(error => {
  790. // uni.showToast({
  791. // title: error
  792. // })
  793. // })
  794. // },
  795. getData() {
  796. this.form.startDate = this.startTime,
  797. this.form.endDate = this.endTime
  798. API.homeFlowStatistics(this.form).then((res) => {
  799. this.stationFlowList = res.data.stationFlowList;
  800. this.nowTime = daysDistance(this.startTime, this.endTime) + 1;
  801. this.serviceMoneySum = 0;
  802. this.allMoneySum = 0;
  803. this.serviceMoneySum=res.data.allProfit;
  804. this.allMoneySum=res.data.allAmount;
  805. for (var i in this.stationFlowList) {
  806. var item = this.stationFlowList[i];
  807. // this.allMoneySum += item.actualMoney
  808. // this.serviceMoneySum += item.serviceMoney
  809. // this.serviceMoneySum += item.cardMoney
  810. }
  811. }).catch(error => {
  812. uni.showToast({
  813. title: error
  814. })
  815. })
  816. },
  817. getData2() {
  818. uni.showLoading({
  819. title: "加载中",
  820. mask: true,
  821. })
  822. this.form2.startDate = this.startTime2,
  823. this.form2.endDate = this.endTime2
  824. API.homeIncomeStatistics(this.form2).then((res) => {
  825. this.indexData2 = res.data
  826. uni.hideLoading()
  827. }).catch(error => {
  828. uni.showToast({
  829. title: error
  830. })
  831. })
  832. },
  833. changesub(e) {
  834. this.current = e
  835. this.type_head = e;
  836. uni.showLoading({
  837. title: "加载中",
  838. mask: true,
  839. })
  840. if (e == 1) {
  841. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  842. } else {
  843. this.startDate_head = parseUnixTime(beforeTimeStamp(365), '{y}-{m}-01')
  844. }
  845. // this.getPie()
  846. this.getDataHome2()
  847. },
  848. changedate4(e) {
  849. this.startTime = e.startDate
  850. this.endTime = e.endDate
  851. this.okbtn()
  852. },
  853. changedate3(e) {
  854. var index = e[0];
  855. var obj = this.stationList[index];
  856. this.selectstationId2 = obj.id;
  857. this.selectstationIndex = index;
  858. this.selectstationName = obj.name;
  859. this.okbtn2()
  860. },
  861. changedate(e) {
  862. this.queryTime = e.year + '-' + e.month;
  863. this.startTime = e.year + '-' + e.month + '-01';
  864. if (e.month == '12') {
  865. this.endTime = (e.year) + "-12-31"
  866. } else {
  867. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  868. var a = beforeTimeStamp(1, b);
  869. this.endTime = parseUnixTime(a, '{y}-{m}-{d}')
  870. }
  871. this.okbtn()
  872. },
  873. changedate2(e) {
  874. this.queryTime2 = e.year + '-' + e.month;
  875. if (e.month == '12') {
  876. this.endTime2 = (e.year) + "-12-31"
  877. } else {
  878. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  879. var a = beforeTimeStamp(1, b);
  880. this.endTime2 = parseUnixTime(a, '{y}-{m}-{d}')
  881. }
  882. this.okbtn2()
  883. },
  884. getPie(type) {
  885. //true 正常版本 false 个人版本
  886. var typebl = !(this.info.accountType == 3);
  887. var dataInterval = null;
  888. if (typebl) {
  889. if (this.type_head == 1) {
  890. dataInterval = [0, 75, 100,
  891. 125, 150, 200, 400, 500,
  892. 600, 1200, 1400, 1600, 1800,
  893. 2600, 2800,
  894. 3000, 4200,
  895. 4800, 5200, 6500, 7000, 7500, 8000, 12000, 14000, 16000, 18000, 20000,23000,
  896. 25000,30000,35000,40000, 999999
  897. ];
  898. } else {
  899. dataInterval = [0, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
  900. 90000, 100000, 120000, 140000, 160000, 180000, 200000, 220000, 240000,280000, 3200000, 3500000,400000, 500000,
  901. 999999
  902. ];
  903. }
  904. }
  905. this.headitemby = "";
  906. var showkey = "";
  907. var getData = this.indexData3.graphMap;
  908. for (var i in getData) {
  909. var item = getData[i]
  910. item.todayEQAmount2 = (item.todayEQAmount / 10000)
  911. console.log(i)
  912. if (this.type_head == 1) {
  913. this.showTopobj=item;
  914. }
  915. }
  916. console.log(this.showTopobj)
  917. this.indexData3.graphMap = getData
  918. //var unit = this.current ? '笔' : '元'
  919. var colorName = "#333"
  920. // this.showlist1 = ['收入', '利润', '次数','新电途'];
  921. var showlistColor = ['#5872c0', '#de6e6a', '#f3c96b', '#69be8d', '#c661b4'];
  922. // this.showlist1 = ['收入', '利润', '电量', '新电途'];
  923. // var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount'];
  924. this.showlist1 = ['收入', '利润', '电量', '新电途', '快电'];
  925. var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount','todayKDAmount'];
  926. var zLevel = [20, 40, 10, 30,9];
  927. //var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  928. if (!this.myChart) {
  929. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  930. this.myChart.on("dataZoom", (res) => {
  931. showkey = "";
  932. this.headitemby = "";
  933. });
  934. }
  935. this.myChart.clear();
  936. //
  937. var timelist = []
  938. for (var i in getData) {
  939. if (this.type_head == 1) {
  940. timelist.push(i.substring(5))
  941. } else {
  942. timelist.push(i)
  943. }
  944. }
  945. var list = [];
  946. for (var j in this.showlist1) {
  947. var ap = {
  948. name: this.showlist1[j],
  949. type: 'line',
  950. lineStyle: {
  951. color: showlistColor[j]
  952. },
  953. itemStyle: {
  954. color: showlistColor[j]
  955. },
  956. z: zLevel[j],
  957. // label: {
  958. // show: true,
  959. // position: 'top'
  960. // },
  961. data: []
  962. }
  963. if (this.type_head == 1) {
  964. ap.symbolSize = 3;
  965. }
  966. var bl = true;
  967. for (var i in getData) {
  968. //var time=this.queryDate.replace("-","/").replace("-","/")
  969. //time+' '+i
  970. var obj = getData[i][sz2[j]];
  971. //**********
  972. if (typebl) {
  973. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  974. // 2.寻找在数据间隔里大于amount的最小值
  975. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  976. // 3.寻找 min_v 所在的下标
  977. const index = dataInterval.findIndex((v) => v === min_v);
  978. // 4.计算该amount在y轴上应该展示的位置
  979. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  980. obj = y_value;
  981. }
  982. //**********
  983. //'todayAmount', 'todayProfit', 'todayEQNum'
  984. // if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  985. // //&& &&getData[i].todayEQNum == 0
  986. // continue;
  987. // }
  988. bl = false;
  989. var time = i
  990. if (this.type_head == 1) {
  991. //time = i.substring(5)
  992. } else {
  993. }
  994. ap.data.push([time, obj]);
  995. }
  996. if (bl) {
  997. ap.data = [];
  998. for (var i in getData) {
  999. //var time=this.queryDate.replace("-","/").replace("-","/")
  1000. //time+' '+i
  1001. var obj = getData[i][sz2[j]];
  1002. var time = i
  1003. if (this.type_head == 1) {
  1004. time = i.substring(5)
  1005. } else {
  1006. }
  1007. // if(j!=2){
  1008. // obj=obj.toFixed(2)
  1009. // }
  1010. ap.data.push([time, obj]);
  1011. }
  1012. }
  1013. list.push(ap)
  1014. }
  1015. var yshow = 0;
  1016. // 指定图表的配置项和数据
  1017. var option = {
  1018. tooltip: {
  1019. position: (e)=>{
  1020. var x=e[0]
  1021. var y=e[1]
  1022. // if(y<50){
  1023. // y+=20
  1024. // }
  1025. // console.log(e)
  1026. // return [x,y]
  1027. if(this.windowWidth){
  1028. if(y<100){
  1029. if(x<this.windowWidth/2){
  1030. return ['30%','60%']
  1031. }else{
  1032. return ['10%','60%']
  1033. }
  1034. }else{
  1035. if(x<this.windowWidth/2){
  1036. return ['30%','-45%']
  1037. }else{
  1038. return ['10%','-45%']
  1039. }
  1040. }
  1041. }
  1042. },
  1043. formatter: (value) => {
  1044. //getPie
  1045. var name = value[0].data[0];
  1046. var info = getData[name];
  1047. var style = "float: right;margin-left: 3px;"
  1048. var text1 = ""
  1049. for (var i in value) {
  1050. var u = "元"
  1051. var num = info[sz2[value[i].seriesIndex]];
  1052. if(!num){
  1053. num=0;
  1054. }
  1055. if (value[i].seriesName == '电量') {
  1056. u = '度'
  1057. num = num.toFixed(2)
  1058. } else if (value[i].seriesName == '次数') {
  1059. u = '次'
  1060. } else {
  1061. num = num.toFixed(2)
  1062. }
  1063. var markerU="";
  1064. if(value[i].seriesName == "收入"){
  1065. }
  1066. if (this.type_head == 2&&(value[i].seriesName == "利润"||value[i].seriesName == "收入")&&this.showMonthlyCard) {
  1067. markerU="(含卡)"
  1068. }
  1069. if (this.type_head == 2&&value[i].seriesName == "收入") {
  1070. u="万元"
  1071. num=info.todayAmountW
  1072. if(!num){
  1073. num=0;
  1074. }
  1075. num = num.toFixed(2)
  1076. }
  1077. if (this.type_head == 2&&value[i].seriesName == "电量") {
  1078. //markerU="(含卡)"
  1079. u="万度"
  1080. // num=info.todayAmountW
  1081. if(!num){
  1082. num=0;
  1083. }
  1084. num = (num/10000).toFixed(2)
  1085. }
  1086. text1 += "<p>" + value[i].marker + value[i].seriesName+markerU + '<span style="' + style +
  1087. '">' + num + u + '</span></p>';
  1088. if (this.type_head == 2) {
  1089. console.log(i,this.queryTime2)
  1090. if (value[i].seriesName == "收入") {
  1091. if(name!=this.queryTime2){
  1092. if(info.yoyNum!=null){
  1093. text1 += "<p>" + value[i].marker + "收入同比"+(info.yoyNum<0?'减少':'增长') + '<span style="' + style +
  1094. '">' + (info.yoyNum<0?info.yoyNum*-1:info.yoyNum) + '%' + '</span></p>';
  1095. }else{
  1096. text1 += "<p>" + value[i].marker + "收入同比"+ '<span style="' + style +
  1097. '">' +'无数据' + '</span></p>';
  1098. }
  1099. if(info.qoqNum!=null){
  1100. text1 += "<p>" + value[i].marker + "收入环比" +(info.qoqNum<0?'减少':'增长') + '<span style="' + style +
  1101. '">' + (info.qoqNum<0?info.qoqNum*-1:info.qoqNum) + '%' + '</span></p>';
  1102. }else{
  1103. text1 += "<p>" + value[i].marker + "收入环比"+ '<span style="' + style +
  1104. '">' +'无数据' + '</span></p>';
  1105. }
  1106. }
  1107. }
  1108. }
  1109. if(i==value.length-1 && this.showMonthlyCard){
  1110. 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 +
  1111. '">' +(info.discountCardBuyNum?info.discountCardBuyNum:0) + '张</span></p>';
  1112. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>月卡数量"+ '<span style="' + style +
  1113. '">' +(info.monthCardBuyNum?info.monthCardBuyNum:0) + '张</span></p>';
  1114. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>折扣卡金额"+ '<span style="' + style +
  1115. '">' +(info.cardBuyFee?info.cardBuyFee:0).toFixed(2) + '元</span></p>';
  1116. }
  1117. }
  1118. if (this.type_head == 1) {
  1119. //time = i.substring(5)
  1120. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  1121. var now = newDate(name);
  1122. var day = now.getDay();
  1123. var week = weeks[day];
  1124. return `<p>${name} ${week}</p>` + text1
  1125. } else {
  1126. return `<p>${name}</p>` + text1
  1127. }
  1128. },
  1129. trigger: 'axis',
  1130. borderColor: "#F0F0F0",
  1131. borderWidth: 1,
  1132. backgroundColor: "#ffffff",
  1133. textStyle: {
  1134. color: "#333"
  1135. }
  1136. },
  1137. legend: {
  1138. itemGap :1,
  1139. data: this.showlist1,
  1140. textStyle: {
  1141. color: "#333"
  1142. }
  1143. },
  1144. grid: {
  1145. top: '16%',
  1146. left: '3%',
  1147. right: '8%',
  1148. bottom: '8%',
  1149. containLabel: true
  1150. },
  1151. xAxis: {
  1152. //type: 'value',
  1153. type: 'category',
  1154. splitNumber: 4,
  1155. boundaryGap: false,
  1156. axisLabel: {
  1157. formatter: (value) => {
  1158. if (this.headitemby == "") {
  1159. this.headitemby = value
  1160. }
  1161. var i = 0
  1162. if (this.type_head == 1) {
  1163. i = 0;
  1164. } else {
  1165. i = 3;
  1166. }
  1167. var showvalue = "";
  1168. var key = value.substring(0, 8 - i);
  1169. if (showkey == "" || value == this.headitemby) {
  1170. showkey = key
  1171. showvalue = value
  1172. showvalue = value.substring(5 - i)
  1173. } else {
  1174. if (key != showkey) {
  1175. showkey = key
  1176. showvalue = value
  1177. showvalue = value.substring(5 - i)
  1178. } else {
  1179. showvalue = value.substring(8 - i)
  1180. }
  1181. }
  1182. return showvalue.replace("-", ".");
  1183. },
  1184. textStyle: {
  1185. color: "#333"
  1186. }
  1187. },
  1188. axisLine: {
  1189. show: true,
  1190. lineStyle: {
  1191. color: "#333"
  1192. }
  1193. },
  1194. },
  1195. yAxis: {
  1196. type: 'value',
  1197. // name: '单位('+this.typeN+')',
  1198. axisLabel: {
  1199. formatter: (v, i) => {
  1200. //console.log(v,i)
  1201. if (dataInterval == null) {
  1202. return v
  1203. }
  1204. if (i == 0) {
  1205. yshow = 0
  1206. return 0
  1207. }
  1208. if (yshow != parseInt(v / 10)) {
  1209. yshow = parseInt(v / 10);
  1210. return dataInterval[parseInt(v / 10)]
  1211. } else {
  1212. return ''
  1213. }
  1214. },
  1215. textStyle: {
  1216. color: "#333"
  1217. }
  1218. },
  1219. axisLine: {
  1220. show: true,
  1221. lineStyle: {
  1222. color: "#333"
  1223. }
  1224. },
  1225. },
  1226. series: list
  1227. };
  1228. // option.dataZoom = [{
  1229. // type: 'inside',
  1230. // start: 0,
  1231. // end: 100
  1232. // },
  1233. // {
  1234. // start: 0,
  1235. // end: 100
  1236. // }
  1237. // ]
  1238. if (this.type_head == 1) {
  1239. } else {
  1240. //timelist.push(i)
  1241. }
  1242. //console.log(option)
  1243. // 使用刚指定的配置项和数据显示图表。
  1244. this.myChart.setOption(option);
  1245. }
  1246. }
  1247. }
  1248. </script>
  1249. <style>
  1250. page {
  1251. /* background: url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  1252. background-size: 100%; */
  1253. }
  1254. </style>
  1255. <style lang="scss" scoped>
  1256. .contentBodyName{
  1257. padding: 0 36rpx 12rpx 36rpx;
  1258. }
  1259. .contentBody{
  1260. color: #777777 ;
  1261. font-size: 28rpx;
  1262. display: flex;
  1263. justify-content: space-between;
  1264. flex-direction: row;
  1265. padding: 0 16rpx;
  1266. margin-bottom: 16rpx;
  1267. .body1{
  1268. color:#333333;
  1269. margin-left: 20rpx;
  1270. }
  1271. .body2{
  1272. display: flex;
  1273. .body2-0{
  1274. width: 110rpx;
  1275. }
  1276. .body2-1{
  1277. padding: 0 8rpx;
  1278. color: #00B962;
  1279. }
  1280. .body2-2{
  1281. width: 120rpx;
  1282. }
  1283. }
  1284. .body3{
  1285. padding: 0 8rpx;
  1286. color:#FF3D00 ;
  1287. }
  1288. }
  1289. .indexData5content {
  1290. padding: 40rpx 20rpx;
  1291. .contentTitle{
  1292. color:#333333;
  1293. font-size: 40rpx;
  1294. text-align: center;
  1295. font-weight: bold;
  1296. margin-bottom: 8px;
  1297. }
  1298. .contentItem{
  1299. border-bottom: 1px solid #ededed;
  1300. // margin: 16rpx;
  1301. // padding:12rpx;
  1302. img,svg{
  1303. vertical-align: bottom;
  1304. height: 44rpx;
  1305. //margin-right: 8rpx;
  1306. }
  1307. .span1{
  1308. text-align: left;
  1309. font-weight: bold;
  1310. font-size: 36rpx;
  1311. width: 310rpx;
  1312. overflow: hidden;
  1313. text-overflow: ellipsis;
  1314. white-space: nowrap;
  1315. }
  1316. .color777{
  1317. color: #777777;
  1318. }
  1319. .color333{
  1320. color: #333333;
  1321. }
  1322. .span2{
  1323. border-right: 1px solid #ededed;
  1324. width: 120rpx;
  1325. padding: 0 8rpx;
  1326. span{
  1327. padding: 0 8rpx;
  1328. }
  1329. }
  1330. .span3{
  1331. padding: 0 0 0 12rpx;
  1332. span{
  1333. padding: 0 8rpx;
  1334. }
  1335. width: 154rpx;
  1336. .bot1span {
  1337. color: #00B962;
  1338. }
  1339. .bot2span {
  1340. color: #AAAAAA;
  1341. }
  1342. .bot3span {
  1343. color: #FF3D00;
  1344. }
  1345. }
  1346. }
  1347. }
  1348. .indexData4content {
  1349. padding: 40rpx 20rpx;
  1350. .contentTitle{
  1351. color:#333333;
  1352. font-size: 40rpx;
  1353. text-align: center;
  1354. font-weight: bold;
  1355. margin-bottom: 8px;
  1356. }
  1357. .contentItem{
  1358. border-bottom: 1px solid #ededed;
  1359. justify-content: space-between;
  1360. flex-direction: row;
  1361. margin: 16rpx;
  1362. padding:12rpx;
  1363. .span1{
  1364. img{
  1365. vertical-align: bottom;
  1366. height: 44rpx;
  1367. margin-right: 8rpx;
  1368. }
  1369. font-weight: bold;
  1370. font-size: 36rpx;
  1371. width: 400rpx;
  1372. overflow: hidden;
  1373. text-overflow: ellipsis;
  1374. white-space: nowrap;
  1375. }
  1376. .color777{
  1377. color: #777777;
  1378. }
  1379. .color333{
  1380. color: #333333;
  1381. }
  1382. .span2{
  1383. border-right: 1px solid #ededed;
  1384. width: 120rpx;
  1385. padding: 0 16rpx;
  1386. span{
  1387. padding: 0 8rpx;
  1388. }
  1389. }
  1390. .span3{
  1391. padding: 0 0 0 16rpx;
  1392. span{
  1393. padding: 0 8rpx;
  1394. }
  1395. width: 154rpx;
  1396. color: #333;
  1397. .bot1span {
  1398. color: #00B962;
  1399. }
  1400. .bot2span {
  1401. color: #AAAAAA;
  1402. }
  1403. .bot3span {
  1404. color: #FF3D00;
  1405. }
  1406. }
  1407. }
  1408. .u-collapse-bot0span{
  1409. .contentItem{
  1410. display: flex;
  1411. }
  1412. }
  1413. .u-collapse-bot3span{
  1414. .contentItem{
  1415. margin:0;
  1416. padding:0;
  1417. .span1{
  1418. width: 310rpx;
  1419. }
  1420. }
  1421. }
  1422. }
  1423. .chargingpile {
  1424. img {
  1425. vertical-align: bottom;
  1426. height: 44rpx;
  1427. margin-right: 8rpx;
  1428. }
  1429. p {
  1430. color: #185AC6;
  1431. font-size: 36rpx;
  1432. font-weight: bold;
  1433. span {
  1434. color: #777777;
  1435. margin-left: 8rpx;
  1436. font-size: 32rpx;
  1437. font-weight: normal;
  1438. }
  1439. }
  1440. .detailstablepile {
  1441. .details-row-main {
  1442. border-bottom: 1px solid #ededed;
  1443. padding: 10px 0;
  1444. }
  1445. span {
  1446. margin: 0 8rpx;
  1447. }
  1448. .bot {
  1449. display: inline-block;
  1450. width: 24rpx;
  1451. height: 24rpx;
  1452. margin-left: 4rpx;
  1453. border-radius: 999px;
  1454. }
  1455. .bot1 {
  1456. background-color: #00B962;
  1457. }
  1458. .bot2 {
  1459. //margin-left: 16rpx;
  1460. background-color: #AAAAAA;
  1461. }
  1462. .bot3 {
  1463. //margin-left: 16rpx;
  1464. background-color: #FF3D00;
  1465. }
  1466. .bot1span {
  1467. color: #00B962;
  1468. }
  1469. .bot2span {
  1470. color: #AAAAAA;
  1471. }
  1472. .bot3span {
  1473. color: #FF3D00;
  1474. }
  1475. .detailsline {
  1476. border-bottom: 1px solid #ededed;
  1477. }
  1478. .detailsline,
  1479. .detailsline—bottom {
  1480. display: flex;
  1481. .details-row {
  1482. width: 33%;
  1483. // display: flex;
  1484. // justify-content: space-between;
  1485. // flex-direction: column;
  1486. padding-left: 16rpx;
  1487. margin-bottom: 16rpx;
  1488. margin-top: 16rpx;
  1489. .span1 {
  1490. color: rgba(136, 136, 136, 100);
  1491. font-size: 28rpx;
  1492. width: 100%;
  1493. color: #333333;
  1494. }
  1495. }
  1496. }
  1497. .details-row-1 {
  1498. width: 47%;
  1499. padding-left: 0px !important;
  1500. //border-right: 1px solid #ededed;
  1501. }
  1502. }
  1503. }
  1504. .viewgun {
  1505. position: relative;
  1506. top: 200px;
  1507. text-align: center;
  1508. .viewspan {
  1509. width: 30%;
  1510. margin-left: 16rpx;
  1511. display: inline;
  1512. }
  1513. }
  1514. .headbotton1:after {
  1515. border-radius: 15px 0 0 15px;
  1516. }
  1517. .headbotton2:after {
  1518. border-radius: 0 15px 15px 0;
  1519. }
  1520. .detailstable {
  1521. padding: 30rpx 30rpx !important;
  1522. }
  1523. .detailstableHead {
  1524. .span1 {
  1525. font-size: 32rpx !important;
  1526. }
  1527. .details-row-head-1 {}
  1528. .details-row-head-2 {}
  1529. .details-row-head-3 {
  1530. width: 30% !important;
  1531. max-width: 150rpx;
  1532. .span {}
  1533. }
  1534. .span2 {
  1535. font-size: 44rpx !important;
  1536. font-weight: bold;
  1537. width: 100%;
  1538. color: #101010;
  1539. span {
  1540. font-size: 24rpx !important;
  1541. }
  1542. }
  1543. }
  1544. .detailslineHead {
  1545. border-top: 1px solid #ededed;
  1546. ;
  1547. .details-row {
  1548. padding-left: 8rpx !important;
  1549. }
  1550. font-size: 30rpx !important;
  1551. .span1 span {
  1552. font-size: 28rpx;
  1553. }
  1554. }
  1555. .detailstable,
  1556. .detailstableHead {
  1557. font-size: 16px;
  1558. p {
  1559. font-size: 14px;
  1560. }
  1561. .details-row-main {
  1562. border-bottom: 1px solid #ededed;
  1563. padding: 10px 0;
  1564. }
  1565. .detailsline {
  1566. border-bottom: 1px solid #ededed;
  1567. }
  1568. .detailsline,
  1569. .detailsline—bottom {
  1570. display: flex;
  1571. .details-row {
  1572. width: 50%;
  1573. display: flex;
  1574. justify-content: space-between;
  1575. flex-direction: column;
  1576. padding-left: 16rpx;
  1577. margin-bottom: 20rpx;
  1578. .span1 {
  1579. color: rgba(136, 136, 136, 100);
  1580. font-size: 28rpx;
  1581. width: 100%;
  1582. }
  1583. .span2 {
  1584. font-size: 36rpx;
  1585. width: 100%;
  1586. color: #101010;
  1587. span {
  1588. font-size: 24rpx;
  1589. }
  1590. }
  1591. }
  1592. }
  1593. .details-row-1 {
  1594. width: 47%;
  1595. padding-left: 0px !important;
  1596. border-right: 1px solid #ededed;
  1597. }
  1598. }
  1599. .details {
  1600. padding: 32rpx;
  1601. background-color: #fff;
  1602. border-radius: 8px;
  1603. }
  1604. .details-title {
  1605. margin-bottom: 16px;
  1606. h4 {
  1607. font-weight: normal;
  1608. font-size: 16px;
  1609. position: relative;
  1610. padding-left: 10px;
  1611. &::after {
  1612. content: '';
  1613. position: absolute;
  1614. height: 12px;
  1615. width: 4px;
  1616. background-color: #27B148;
  1617. left: 0;
  1618. top: 5px;
  1619. }
  1620. }
  1621. }
  1622. .details-row {
  1623. display: flex;
  1624. justify-content: space-between;
  1625. align-items: center;
  1626. margin-top: 30rpx;
  1627. p {
  1628. color: #37393c;
  1629. font-weight: bold;
  1630. }
  1631. }
  1632. .details-row2 {
  1633. display: flex;
  1634. justify-content: space-between;
  1635. align-items: center;
  1636. // margin-top: 15px;
  1637. p {
  1638. // color: #37393c;
  1639. // font-weight: bold;
  1640. }
  1641. }
  1642. .popup-screen {
  1643. padding: 20px;
  1644. position: relative;
  1645. .screen {
  1646. padding-bottom: 30px;
  1647. }
  1648. .screen-item {
  1649. margin-bottom: 20px;
  1650. .screen-head {
  1651. margin-bottom: 8px;
  1652. font-size: 16px;
  1653. }
  1654. .screen-main {
  1655. display: flex;
  1656. // display: -webkit-box;
  1657. flex-wrap: wrap;
  1658. }
  1659. .screen-entry {
  1660. width: 29%;
  1661. padding: 6px 0;
  1662. display: flex;
  1663. align-items: center;
  1664. justify-content: center;
  1665. background-color: #F2F5FA;
  1666. text-align: center;
  1667. margin-bottom: 10px;
  1668. border-radius: 3px;
  1669. margin-right: 6px;
  1670. }
  1671. .screen-entry.active {
  1672. background-color: #185AC6;
  1673. color: #fff;
  1674. }
  1675. }
  1676. .screen-foot {
  1677. position: fixed;
  1678. left: 0;
  1679. right: 0;
  1680. bottom: 0;
  1681. display: flex;
  1682. height: 50px;
  1683. border-top: 1px solid #ededed;
  1684. .screen-btn-l {
  1685. background-color: #fff;
  1686. flex: 0.2;
  1687. text-align: center;
  1688. line-height: 50px;
  1689. }
  1690. .screen-btn-r {
  1691. flex: 0.8;
  1692. text-align: center;
  1693. line-height: 50px;
  1694. background-color: #185AC6;
  1695. color: #fff;
  1696. }
  1697. }
  1698. }
  1699. .navbar-tit {
  1700. color: #fff;
  1701. font-size: 20px;
  1702. line-height: 20px;
  1703. padding-left: 15px;
  1704. padding-top: 10px;
  1705. font-weight: bold;
  1706. text{
  1707. margin-right: 8rpx;
  1708. }
  1709. }
  1710. .statisticsData {
  1711. background-color: #fff;
  1712. margin: 0px 24rpx 24rpx;
  1713. //padding:0px 24rpx 24rpx;
  1714. border-radius: 8px;
  1715. }
  1716. .statisticsDataMain {
  1717. flex-wrap: wrap;
  1718. display: flex;
  1719. }
  1720. .statisticsData-item {
  1721. flex: 1;
  1722. width: 40%;
  1723. .statisticsData-head {
  1724. display: flex;
  1725. align-items: center;
  1726. p {
  1727. color: #637AA2;
  1728. font-size: 12px;
  1729. }
  1730. }
  1731. .statisticsData-main {
  1732. margin-top: 4px;
  1733. font-size: 18px;
  1734. }
  1735. .statisticsData-foot {
  1736. display: flex;
  1737. align-items: center;
  1738. margin-top: 16px;
  1739. p {
  1740. color: #637AA2;
  1741. }
  1742. h4 {
  1743. margin-left: 8px;
  1744. }
  1745. }
  1746. }
  1747. .statisticsChart {
  1748. margin: 32rpx;
  1749. .statisticsChart-head {
  1750. margin-bottom: 10rpx;
  1751. display: flex;
  1752. justify-content: space-between;
  1753. align-items: center;
  1754. h4 {
  1755. font-weight: normal;
  1756. font-size: 16px;
  1757. position: relative;
  1758. padding-left: 10px;
  1759. &::after {
  1760. content: '';
  1761. position: absolute;
  1762. height: 12px;
  1763. width: 4px;
  1764. background-color: #4E8DF6;
  1765. left: 0;
  1766. top: 5px;
  1767. }
  1768. }
  1769. .h4-1{
  1770. display: flex;
  1771. align-items: center;
  1772. padding-left: 0;
  1773. color: rgba(16, 16, 16, 1);
  1774. img{
  1775. margin-right: 8rpx;
  1776. }
  1777. &::after{
  1778. content: none;
  1779. }
  1780. }
  1781. .statisticsChart-time {
  1782. display: flex;
  1783. align-items: center;
  1784. p {
  1785. color: #666;
  1786. }
  1787. }
  1788. }
  1789. .statisticsChart-main {
  1790. background-color: #fff;
  1791. padding: 10px 16px 16px 16px;
  1792. border-radius: 8px;
  1793. }
  1794. }
  1795. .top-cover{
  1796. // height: 470px;
  1797. // margin-bottom: 70px;
  1798. background: linear-gradient(179.94deg, rgba(0,185,98,1) 71.55%,rgba(0,196,104,0) 99.35%);
  1799. .income{
  1800. padding: 64rpx 32rpx 24rpx 32rpx;
  1801. color: rgba(255, 255, 255, 1);
  1802. .today-income{
  1803. text-align: center;
  1804. .number{
  1805. font-weight: bold;
  1806. font-size: 36px;
  1807. text{
  1808. margin-left: 8rpx;
  1809. }
  1810. }
  1811. .text{
  1812. font-size: 16px;
  1813. }
  1814. }
  1815. .else{
  1816. margin-top: 32rpx;
  1817. display: flex;
  1818. justify-content: space-between;
  1819. .item{
  1820. text-align: center;
  1821. .item-number{
  1822. font-weight: bold;
  1823. font-size: 48rpx;
  1824. margin-bottom: 8rpx;
  1825. }
  1826. }
  1827. }
  1828. }
  1829. }
  1830. </style>