defendetail.wxml 2.2 KB
<!--日期弹出层 -->
<view class="register" wx:if="{{datechu}}">

  <view class="timewrap">
    <view class="detailhead">
      <view class="detailname {{timestate==1?'selactive':''}}" bindtap="seltime" data-id="1">选择时间</view>
      <view class="detailname {{timestate==2?'selactive':''}}" bindtap="seltime" data-id="2">选摄像头</view>
    </view>

    <!-- 开始时间和结束时间 -->

    <view class="timetwo">
      <view class="timebetin" bindtap="xuanshijan" data-time="1">

        <view class="timetop {{timesel==1?'seltimeactive':''}}">开始时间</view>
        <view class="timebottom {{timesel==1?'selnameactive':''}}">{{startdate}}</view>
      </view>
      <view class="timebetin" bindtap="xuanshijan" data-time="2">

        <view class="timetop {{timesel==2?'seltimeactive':''}}">结束时间</view>
        <view class="timebottom {{timesel==2?'selnameactive':''}}">{{enddate}}</view>
      </view>
    </view>

    <view class="timebox" wx:if="{{currentdate}}"> 
      <view class="timeboxitem {{sel==index?'timeboxactive':''}}" wx:for="{{timearr}}" wx:key="">
        <view class="itemcontent">{{item.year}}</view>
        <view class="itemcontent">{{item.month}}</view>
        <view class="itemcontent">{{item.day}}</view>
      </view>


    </view>
    <view class="qudingdate" wx:else bindtap='qudingxuandate'>确定</view>

   
    <view wx:if="{{currentdate}}">

      <date-picker id="date-picker" value="{{datePickerValue}}" isShow="{{datePickerIsShow}}" bindsureclick="datePickerOnSureClick" bindcancelclick="datePickerOnCancelClick"  />

    </view>
  </view>
</view>








<!-- 日期头部 -->

<view class="peoplestate" wx:if="{{state==1}}">
  <view class="date" bindtap="datexianshi">
    <view class="dateleft">
      <image src="/img/row.png"></image>
    </view>
    <view class="datetime">
      <view class="datesel">
        {{watertime}}
      </view>

      <view class="datepic">
        <image src="/img/row.png"></image>
      </view>
    </view>

    <view class="dateright">
      <image src="/img/row.png"></image>
    </view>
  </view>

 

<!-- 图表 -->

  <view class="containerzhe" wx:if="{{datechu==false}}">
    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec1 }}"></ec-canvas>
  </view>
</view>