<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{true}}" title="采集配置">
  <!-- <view slot="content">采集配置</view> -->
</cu-custom>
<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<view>
  <view class="title">当前设备状态</view>
  <view class="pz_info">
    <view class="pz_info_item">
      <view class="pz_info_label">IMEI编号</view>
      <view class="pz_info_val">{{deviceInfo.imei || "N/A"}}</view>
    </view>
    <!-- <view class="pz_info_item">
    <view class="pz_info_label">地址 </view>
    <view class="pz_info_val">{{address || "N/A"}}</view>
  </view> -->
    <view class="pz_info_item">
      <view class="pz_info_label">电压</view>
      <view class="pz_info_val">{{deviceInfo.power? deviceInfo.power+"V" : "N/A"}}</view>
    </view>
    <view class="pz_info_item">
      <view class="pz_info_label">信号强度 </view>
      <view class="pz_info_val">{{deviceInfo.signalLevel || "N/A"}}</view>
    </view>
    <view class="pz_info_item">
      <view class="pz_info_label">采温周期</view>
      <view class="pz_info_val">{{deviceInfo.acqCycle ? deviceInfo.acqCycle+"s" : "N/A"}}</view>
    </view>
    <view class="pz_info_item" wx:if="{{deviceInfo.hdVersion == 2}}">
      <view class="pz_info_label">包内温度数量</view>
      <view class="pz_info_val">{{deviceInfo.packageNum}}</view>
    </view>
  </view>
</view>
<view>
  <view class="title">设置</view>
  <view class="set_From">
    <view class="pz_info_form">
      <view>采温周期</view>
      <input placeholder="请输入采温周期" type='number' bindinput='setCycle' value='{{deviceInfo.cycle1}}'></input>
      <text>s</text>
    </view>
    <view class="pz_info_form" wx:if="{{deviceInfo.hdVersion == 2}}">
      <view>包内温度数量</view>
      <input placeholder="请输入包内温度数量" type='number' bindinput='setPackageNum'></input>
      <text>个</text>
    </view>
    <view class="pz_info_form" wx:if="{{deviceInfo.hdVersion == 2}}">
      <view>清除设备缓存</view>
      <view class="pz_info_val">
        <switch checked="{{deviceInfo.ifClean}}" data-changeName="ifClean" bindchange="setChecked"></switch>
      </view>
    </view>
  </view>
</view>

<view class='cu-btn bg-color lg reg_form_btn' bindtap="goSubmit">确认</view>
<view class="prem_win" wx:if="{{isSuccess}}">
  <view class="prem_win_mid">
    <text class="cuIcon-close lg text-gray prem_win_close" catchtap="closePremWin"></text>
    <image src="../../img/success.png" class="successImg"></image>
    <text>配置成功</text>
    <view class="textMsg">配置将在下次联网时生效</view>
    <view class="butMsg" bindtap="butMsg">
      好的
    </view>
  </view>
</view>
<!-- <view class="pz_info_foot">
  <view wx:if="{{}}">
    <view>—— 注意事项 ——</view>
    <view>保存成功后，您设置的所有设备的</view>
    <view>采集周期都将被修改</view>
  </view>
</view> -->