<!--pages/Bluetooth1/Bluetooth1.wxml-->
<view class="">
  <view wx:if="{{deviceInfo.roomId}}" class="btnlist">
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="adduser">添加用户</van-button> -->
    <van-button type="info" size="small" color="" class="btnli" bindtap="openTheDoor" data-current="0">蓝牙开锁</van-button>
    <van-button type="info" size="small" color="" class="btnli" bindtap="addAdmin" data-current="1">初始化管理员</van-button>
    <!-- <van-button type="info" size="small" color="" class="btnli" >设置NB网关</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="deleteUser">删除用户</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="synchronizationTime">同步时间</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" >蓝牙添加密码</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="addFingerPrints">添加指纹</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="setVoice">设置音量</van-button> -->
    <!-- 
    <van-button type="info" size="small" color="" class="btnli" >上传开锁记录</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" >固件升级</van-button> -->
    <!-- <van-button type="info" size="small" color="" class="btnli" bindtap="readLockStatus">读取锁状态</van-button> -->
    <van-button type="info" size="small" color="" class="btnli" bindtap="unbindRoom">房间解绑</van-button>
    <van-button type="info" size="small" color="" class="btnli" bindtap="resetLock" data-current="2">重置门锁</van-button>
    <!-- <van-button type="info" size="small" color="" class="btnli" >设置WiFi</van-button>
    <van-button type="info" size="small" color="" class="btnli" >下发5组密钥</van-button> -->
  </view>
  <view class="bindRoom" wx:else>
    <van-button type="default" size="large" bindtap="bindroom">绑定房间</van-button>
  </view>
  <view class="locktext" wx:if="{{deviceInfo.roomId && lockStatus}}">
    <view class="lockli">版本号：{{lockStatus.softWareVersion}}</view>
    <view class="lockli">电量：{{lockStatus.power}}</view>
    <view class="lockli">NB信号：{{lockStatus.nbSignal}}</view>
    <view class="lockli">IMEI：{{lockStatus.nbIMEI}}</view>
    <view class="lockli">IMSI：{{lockStatus.nvIMSI}}</view>
    <view class="lockli">用户数量：{{lockStatus.appUserCount}}</view>
    <view class="lockli">黑名单用户数量：{{lockStatus.blackListCount}}</view>
    <view class="lockli">蓝牙扣数量：{{lockStatus.bleKeyCount}}</view>
    <view class="lockli">剩余可添加用户数量：{{lockStatus.remainCount}}</view>
    <view class="lockli">未上传开锁记录数量：{{lockStatus.notUploadCount}}</view>
    <view class="lockli">密码数量：{{lockStatus.pwdCount}}</view>
    <view class="lockli">指纹数量：{{lockStatus.fingerPrintsCount}}</view>
    <view class="lockli">门卡数量：{{lockStatus.RFCount}}</view>
    <view class="lockli">锁当前时间：{{lockStatus.lockTime}}</view>
    <view class="lockli">锁型号：{{lockStatus.lockerMode}}</view>
    <view class="lockli">锁SN号：{{lockStatus.lockSn}}</view>
    <view class="lockli">WiFi名：{{lockStatus.wifiSsid}}</view>
    <view class="lockli">服务器：{{lockStatus.serverIp}}</view>
    <view class="lockli">服务器端口：{{lockStatus.serverPort}}</view>
  </view>
  <van-popup show="{{ show }}" bind:close="onClose"  position="bottom" custom-style="height: 60%">
    <tree
    dataTree="{{dataList}}"
    selectKey="{{selectKey}}"
    bind:select="handleSelect"
    isSelectLastNode="true"
    isOpenAll="{{false}}"
  ></tree>
  </van-popup>
	<van-action-sheet show="{{ show1 }}" actions="{{ actions }}" bind:close="onClose1" bind:select="onSelect1" />
  <!-- <view bindtap="readLockStatus">读取锁状态</view>
  <view bindtap="resetLock1">重置</view> -->
</view>

