储能智慧云小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.wxml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!-- echarts -->
  2. <view class="container">
  3. <view class="navigation-container" style="{{'height: ' + navStatusBarHeight +'px'}}">
  4. <!--空白来占位状态栏-->
  5. <view style="{{'height: ' + statusBarHeight +'px'}}"></view>
  6. <!--自定义导航栏 -->
  7. <view class="navigation-bar" style="{{'height:' + navBarHeight +'px'}}">
  8. <picker bindchange="bindPickerChange" range="{{objectArray}}" range-key="name" value="{{stationindex}}">
  9. <view class="title_1" bindtap="rotateImage">{{stationName}}<image class="title_image" src="https://esos-iot.com/wx_images/switch.png" mode="" animation="{{animationData}}"/></view>
  10. </picker>
  11. </view>
  12. </view>
  13. <view style="{{'height: ' + navStatusBarHeight +'px'}}"></view>
  14. <!-- <view class="title_2">电站额定容量:{{characteristic.ratedCap}}kWh</view> -->
  15. <!--
  16. -->
  17. <view class="canvasArea">
  18. <ec-canvas type="2d" id="dispace_charts" canvas-id="dispace_charts" ec="{{ ec_dispace_charts }}"></ec-canvas>
  19. <view class="data_box" style="background-image: url({{img_path}});background-size: 100% 100%; background-repeat: no-repeat;">
  20. <view class="titledata">
  21. <view>功率</view>
  22. </view>
  23. <view class="realtime1">
  24. <view class="realtime_left1">
  25. <view><text class="realtime_text">{{characteristic.power}}</text><text class="realtime_unit">kW</text></view>
  26. <view class="realtime_title">当前功率</view>
  27. </view>
  28. <view class="realtime_right1">
  29. <view><text class="realtime_text">{{ectricdata.length}}/{{comStateunm}}</text>
  30. <!-- <text class="realtime_unit">h</text> -->
  31. </view>
  32. <view class="realtime_title">总设备数/在线数</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="canvasArea1">
  38. <view class="realtime2">
  39. <view class="realtime_left2">
  40. <view class="realtime_title">昨日收益</view>
  41. <view><text class="realtime_text">{{converter.formatAmount(characteristic.moneyDaily)}}</text><text class="realtime_unit">{{converter.formatAmounts(characteristic.moneyDaily)}}</text></view>
  42. </view>
  43. <view class="realtime_right2">
  44. <view class="realtime_title">累计收益</view>
  45. <view><text class="realtime_text">{{converter.formatAmount(characteristic.money)}} </text><text class="realtime_unit">{{converter.formatAmounts(characteristic.money)}}</text></view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="equipment">
  50. <view>电站总览 <text class="equipmenttext"> (今日:{{characteristic.updatetime}})</text></view>
  51. <view class="details">
  52. <!-- <t-icon name="chevron-right-s" size="24" color="#999999" data-name="chevron-right-s" bind:tap="ondetails"/> -->
  53. </view>
  54. </view>
  55. <view class="electric">
  56. <view class="electric1" bind:tap="onIconTap">
  57. <view class="electric_rong">
  58. <view class="electric4">电量</view>
  59. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  60. </view>
  61. <view class="pic_pic">
  62. <ec-canvas id="mychart_line" canvas-id="mychart_line" ec="{{ ec }}"></ec-canvas>
  63. </view>
  64. </view>
  65. <view class="electric2">
  66. <view class="electric21" bind:tap="onIconTap">
  67. <view class="electric_rong">
  68. <view class="electric4">充电状态</view>
  69. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" />
  70. </view>
  71. <!-- <view>{{between.list[0].chargetime}} <text class="electric3">h</text></view> -->
  72. <!-- 功率>0 放电 -->
  73. <!-- 功率<0 充电/ -->
  74. <!-- 功率==0 空闲 -->
  75. <view class="tag_type1" wx:if="{{characteristic.power>0}}">放电</view>
  76. <view class="tag_type2" wx:if="{{characteristic.power<0}}">充电</view>
  77. <view class="tag_type3" wx:if="{{characteristic.power==0}}">空闲</view>
  78. <view class="batteryccc">当前充放电状态</view>
  79. </view>
  80. <!-- <view class="electric22" bind:tap="onhealthy"> -->
  81. <view class="electric22">
  82. <!-- <view class="electric_rong">
  83. <view class="electric4">系统效率</view>
  84. <view class="battery">{{characteristic.efficiency}} <text class="batteryccc">%</text> </view>
  85. </view> -->
  86. <!-- <view class="battery_bottom"></view> -->
  87. <view ></view>
  88. <view class="batteryccc">累计充电 <text class="battery">{{converter.formattoFixed(characteristic.chargeEnergy,2)}} </text> <text>kWh</text> </view>
  89. <view class="batteryccc">累计放电 <text class="battery">{{converter.formattoFixed(characteristic.disChargeEnergy,2)}} </text> <text>kWh</text> </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <wxs module="converter">
  95. var formattoFixed = function(amount,unm) {
  96. return amount.toFixed(unm*1);
  97. }
  98. var formatAmount = function(amount) {
  99. if (amount==undefined) {
  100. return '0';
  101. }
  102. if (amount < 10000) {
  103. return amount.toFixed(2);
  104. } else {
  105. return (amount / 10000).toFixed(2);
  106. }
  107. }
  108. var formatAmounts = function(amount) {
  109. if (amount==undefined) {
  110. return '元';
  111. }
  112. if (amount < 10000) {
  113. return'元';
  114. } else {
  115. return'万元';
  116. }
  117. }
  118. module.exports = {
  119. formatAmount: formatAmount,
  120. formatAmounts: formatAmounts,
  121. formattoFixed:formattoFixed
  122. }
  123. </wxs>
  124. <!--
  125. 343.4-672.6
  126. -->