detail.wxml 1.7 KB
<!--pages/qiyeyongdian/detail/detail.wxml-->
<!-- 日期选择 -->
<view class="modal-mask" bindtap="hideModal" wx:if="{{showModal}}"></view>
<view wx:if="{{showModal}}">
  <view class="modal-content">
    <!-- 年份 -->

    <view class="modal_year">
      <picker bindchange="bindyearChange" value="{{index}}" range="{{yeararray}}">
        <view class="picker">
          {{yearname}}年
        </view>
      </picker>
      <!-- 2019年 -->
    </view>
    <!-- 月份 -->
    <view class="modal_month">
      <view class="month_single {{item.sel==true?'change':''}}" wx:for="{{monthList}}" wx:key="" data-id="{{index}}" catchtap="choice">{{item.name}}</view>
    </view>
    <view class="date_descript {{showt==true?'tactive':''}}" bindtap="three">近30天</view>
    <view class='btns'>
      <view class="cacle" bindtap="hideModal">取消</view>
      <view class="cacle sure" bindtap="hideModal">确定</view>
    </view>
  </view>
</view>
<!-- 月份 -->
<view class="search_month">
  <view class="rowimg">
    <image src='/img/row.png' class="left"></image>
  </view>
  <view class="date_time" bindtap='toShowModal'>
    <!-- 近30天(2019.03.01-2019.03.30) -->
    {{time}}
    <view class="rowimg">
      <image src='/img/row.png' class="down"></image>
    </view>
  </view>
  <view class="rowimg">
    <image src='/img/row.png'></image>
  </view>
</view>
<!-- 折线图 -->
<view class="charts_line" wx:if="{{showModal==false}}">
  <view class="chart">
    <ec-canvas id="mychart" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
    <!-- <ec-canvas id="mychart-dom-graph" canvas-id="mychart-graph" ec="{{ec}}"></ec-canvas> -->
  </view>

  <view class="total_power">
    <view>当月:1788kw.h</view>
    <view>累计:5898kw.h</view>
  </view>

</view>