<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{true}}" title="{{devicetypeName}}"></cu-custom>
<!-- <view class="worker_search">
  <view class="worker_search_con">
    <input type="text" placeholder="请输入冷链编号" value="{{keyword}}" bindinput="setKeyword"></input>
    <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  </view>
</view> -->
<view>
  <scroll-view scroll-y enable-back-to-top>
    <view style="margin: 20rpx 20rpx 100rpx 20rpx;">
      <block wx:for="{{ detailsList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
        <view class="list {{item.isTouchMove ? 'touch-move-active' : ''}}" bindtouchstart="touchStart"
          bindtouchmove="touchMove" data-index="{{ index }}">
          <view class="listInfo" data-deviceCode="{{item.deviceCode}}" bindtap="{{!isAddLabel ? 'toInfo':'setTempRange'}}" data-id="{{item.id}}" style="padding-top: {{item.deviceSign == 1 ? '':''}}">
            <text class="mainLabel" wx:if="{{item.deviceSign1 == 1}}">
              主标签
            </text>
            <view class="code">
              <text style="width: 13%;">编号：</text>
              <text style="width: 87%;">{{item.deviceCode || '-'}}</text>
            </view>
            <view>
              <text>绑定状态：</text>
              <text wx:if="{{item.bindStatus == 1}}">监测中</text>
              <text wx:if="{{item.bindStatus == 0}}">已解除绑定</text>
            </view>
            <view class="flexBox">
              <view>
                <text>起始时间：</text>
                <text>{{item.bindTime || '--'}}</text>
              </view>
              <view wx:if="{{isAddLabel}}">
                <icon class="icon-box-img" type="success" color="#2D59E6" size="20"  wx:if="{{item.deviceSign == 1}}"></icon>
                <icon class="icon-small" type="circle" size="20" wx:else></icon>
              </view>
            </view>
            <view>
              <text>结束时间：</text>
              <text>{{item.unBindTime || '--'}}</text>
            </view>
          </view>
          <view class="scrollText">
            <!-- <view class="edit" bindtap="editList" data-index="{{ index }}" data-id="{{item.id}}" data-name="{{item.name}}"> 修改 </view> -->
            <view class="del" bindtap="delList" data-id="{{item.id}}"> 删除 </view>
          </view>
        </view>
      </block>
    </view>
  </scroll-view>
</view>
<!-- <view class="addLabel" bindtap="addLabel" wx:if="{{devicetypeName == 'X201' || devicetypeName == 'X202'||devicetypeName == 'X203' || devicetypeName == 'X104'}}">
  <text>添加</text>
</view> -->
<view class="addLabel" bindtap="{{!isAddLabel ? 'addLabel':'setAddlabelStatus'}}">
  <text wx:if="{{!isAddLabel}}">更换主标签</text>
  <text wx:else>完成</text>
</view>
<view class="zan-dialog {{ showDialog ? 'zan-dialog--show' : '' }}">
  <!-- 如果想点击弹窗外不隐藏，取消bindtap点击事件即可 -->
  <view class="zan-dialog__mask" bindtap="toggleDialog" />
  <view class="zan-dialog__container">
    <view class="cha_win_tit">请选择</view>
    <view class="selectInfo">
      <view bindtap="chainBind">
        <image src="/img/X202.png"></image>
        <view>扫描</view>
      </view>
      <!-- <view bindtap="inputBind">
        <image src="/img/input.png"></image>
        <view>手动输入编号</view>
      </view> -->
    </view>
    <view class="cha_win_close" bindtap="toggleDialog">
      <text>×</text>
    </view>
  </view>
</view>