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


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

    <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="register searchregister" wx:if="{{historyshow}}">
    <view class="searchname">搜素历史</view>
    <view class="historybox">
        <view class='historyitem' bindtap="golist" wx:for="{{historylist}}" wx:key="">{{item}}</view>
        
    </view>
</view>

<!-- 企业信息输入 -->
<view class="qiyexinxi" wx:if="{{qiyexinxi}}">

  <view class="searchbox">

    <view class="searchinput">
      <input placeholder='输入企业信息' placeholder-class='qiyeinfo' placeholder-class='enterqiname' bindconfirm="enterqiye" value="{{qiyeinfoname}}" />
    </view>
    <view class="quxiao" bindtap="cancelqisinxi">
      取消
    </view>
  </view>

  <!-- 企业列表 -->

  <view class="qiyebox">

    <view class="qiyeitem">
      <view class="qiyename">企业名称</view>
      <view class="qiyeshuru">
        <input placeholder='请输入企业姓名' value="{{qiyename}}" bindinput="enterqiyename" />
      </view>
    </view>


    <view class="qiyetime" bindtap="begintime">

      <view class="qiyetimeleft">
        <view class='qiyetimeleft'>开始时间</view>

        <view class="starttime">{{startdate}}</view>
      </view>

      <view class="qiyerowimg">
        <image src="/img/qiyerow.png"></image>
      </view>
    </view>

    <view class="qiyetime" bindtap="begintime">
      <view class="qiyetimeleft">
        <view class='qiyetimeleft'>结束时间</view>

        <view class="starttime">{{enddate}}</view>
      </view>

      <view class="qiyerowimg">
        <image src="/img/qiyerow.png"></image>
      </view>
    </view>
  </view>

  <view class="chaxun" wx:if="{{chaxun}}">查询</view>

  <view class="chaxun cha" wx:else bindtap="chauxn">查询</view>

  <view class="reset" wx:if="{{reset}}">重置</view>
  <view class="reset re" wx:else>重置</view>
</view>

<!-- 企业列表 -->

<view class="qiyecontent" wx:else>
  <view class="searchbox">

    <view class="searchinput">
      <input placeholder='输入企业信息' placeholder-class='qiyeinfo' placeholder-class='enterqiname' bindconfirm="enterqiye" value="{{qiyeinfoname}}" />

      <view class="quxiaoimg" wx:if="{{qiyexinxi==false}}" bindtap="clear">
        <image src="/img/chahao.png"></image>
      </view>
    </view>
    <view class="quxiao" bindtap="cancellist">
      取消
    </view>
  </view>


  <view class="qiyelsit">
    <view class="warn_msg" wx:for="{{list}}" wx:key="">

      <view class="msg_detail">
        <view class="msg_box">
          <view class="detail_single detail_title">
            <view class="{{item.type == 1?'detail_symbol':''}}"></view>
            <view>{{item.title}}</view>
          </view>
          <view class="detail_single">企业名称:{{item.name}}</view>
          <view class="detail_single">报警时间:{{item.time}}</view>
          <view class="detail_single">报警描述:{{item.des}}</view>
          <view class="watch_detail" bindtap='toDetail' data-item="{{item}}">
            查看详情
            <view class="watch_icon">
              <image src='/img/demo25.png'></image>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>