index.vue 55 KB

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