<!--pages/wateranalysis/wateranalysis.wxml-->
<view class="container water-analysis">
  <view class="echart">
    <view class="header">
      <view class="unit fl-left">
        <text>年份：{{currentYear}}</text>
      </view>
      <view class="unit fl-left">
        <text>单位：吨（t）</text>
      </view>
    </view>
    <view class="weekbox" wx:if="period ==7">
      <ec-canvas id="weekChart" canvas-id="weekChart" ec="{{ ec }}"></ec-canvas>
      <view class="useVolume">
        <text class="col1">最高用水量</text>
        <text class="col2">最低用水量</text>
        <text class="col3">普通用水量</text>
      </view>
    </view>
    <view class="monthbox" wx:else></view>
  </view>
  <view class="useVolume-list">
    <view class="clearfix">
      <text class="fl-left">累计用水量</text>
      <text class="fl-right">{{waterInfo.totalUseVolume}}吨</text>
    </view>
    <view class="clearfix">
      <text class="fl-left">平均用水量</text>
      <text class="fl-right">{{waterInfo.averageUseVolume}}吨</text>
    </view>
    <view class="clearfix">
      <text class="fl-left">最高用水量</text>
      <text class="fl-right">{{waterInfo.maxUseWater.useVolume}}吨</text>
    </view>
    <view class="clearfix">
      <text class="fl-left">最低用水量</text>
      <text class="fl-right">{{waterInfo.minUseWater.useVolume}}吨</text>
    </view>
  </view>
</view>