电速宝
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.wxml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.bjdexn.cn/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. <view class="canvasArea">
  16. <ec-canvas type="2d" id="dispace_charts" canvas-id="dispace_charts" ec="{{ ec_dispace_charts }}"></ec-canvas>
  17. <view class="data_box" style="background-image: url({{img_path}});background-size: 100% 100%; background-repeat: no-repeat;">
  18. <view class="titledata">
  19. <view>功率</view>
  20. </view>
  21. <view class="realtime1">
  22. <view class="realtime_left1">
  23. <view><text class="realtime_text">{{converter.formattoFixed(characteristic.power,1)}}</text><text class="realtime_unit">kW</text></view>
  24. <view class="realtime_title">当前功率</view>
  25. </view>
  26. <view class="realtime_right1">
  27. <view><text class="realtime_text">{{ectricdata.length}}/{{comStateunm}}</text>
  28. <!-- <text class="realtime_unit">h</text> -->
  29. </view>
  30. <view class="realtime_title">总设备数/在线数</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="canvasArea1">
  36. <view class="realtime2">
  37. <view class="realtime_left2">
  38. <view class="realtime_title">昨日收益</view>
  39. <view><text class="realtime_text">{{converter.formatAmount(characteristic.moneyDaily)}}</text><text class="realtime_unit">{{converter.formatAmounts(characteristic.moneyDaily)}}</text></view>
  40. </view>
  41. <view class="realtime_right2">
  42. <view class="realtime_title">累计收益</view>
  43. <view><text class="realtime_text">{{converter.formatAmount(characteristic.money)}} </text><text class="realtime_unit">{{converter.formatAmounts(characteristic.money)}}</text></view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="equipment">
  48. <view>电站总览 <text class="equipmenttext"> (今日:{{currentDate}})</text></view>
  49. <view class="details">
  50. <!-- <t-icon name="chevron-right-s" size="24" color="#999999" data-name="chevron-right-s" bind:tap="ondetails"/> -->
  51. </view>
  52. </view>
  53. <view class="electric">
  54. <view class="electric1" bind:tap="onIconTap">
  55. <view class="electric_rong">
  56. <view class="electric4">电量</view>
  57. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  58. </view>
  59. <view class="pic_pic">
  60. <ec-canvas id="mychart_line" canvas-id="mychart_line" ec="{{ ec }}"></ec-canvas>
  61. </view>
  62. </view>
  63. <view class="electric2">
  64. <view class="electric21" bind:tap="onIconTap">
  65. <view class="electric_rong">
  66. <view class="electric4">充电状态</view>
  67. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s" />
  68. </view>
  69. <!-- <view>{{between.list[0].chargetime}} <text class="electric3">h</text></view> -->
  70. <!-- 功率>0 放电 -->
  71. <!-- 功率<0 充电/ -->
  72. <!-- 功率==0 空闲 -->
  73. <view class="tag_type1" wx:if="{{characteristic.power>0}}">放电</view>
  74. <view class="tag_type2" wx:if="{{characteristic.power<0}}">充电</view>
  75. <view class="tag_type3" wx:if="{{characteristic.power==0}}">空闲</view>
  76. <view class="batteryccc">当前充放电状态</view>
  77. </view>
  78. <!-- <view class="electric22" bind:tap="onhealthy"> -->
  79. <view class="electric22">
  80. <!-- <view class="electric_rong">
  81. <view class="electric4">系统效率</view>
  82. <view class="battery">{{characteristic.efficiency}} <text class="batteryccc">%</text> </view>
  83. </view> -->
  84. <!-- <view class="battery_bottom"></view> -->
  85. <view ></view>
  86. <view class="batteryccc">累计充电 <text class="battery">{{converter.formattoFixed(characteristic.chargeEnergy,2)}} </text> <text>kwh</text> </view>
  87. <view class="batteryccc">累计放电 <text class="battery">{{converter.formattoFixed(characteristic.disChargeEnergy,2)}} </text> <text>kwh</text> </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. <wxs module="converter">
  93. var formattoFixed = function(amount,unm) {
  94. return amount.toFixed(unm*1);
  95. }
  96. var formatAmount = function(amount) {
  97. if (amount==undefined) {
  98. return '1000';
  99. }
  100. if (amount < 10000) {
  101. return amount.toFixed(2);
  102. } else {
  103. return (amount / 10000).toFixed(2);
  104. }
  105. }
  106. var formatAmounts = function(amount) {
  107. if (amount==undefined) {
  108. return '元';
  109. }
  110. if (amount < 10000) {
  111. return'元';
  112. } else {
  113. return'万元';
  114. }
  115. }
  116. module.exports = {
  117. formatAmount: formatAmount,
  118. formatAmounts: formatAmounts,
  119. formattoFixed:formattoFixed
  120. }
  121. </wxs>
  122. <!-- -->