You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
3.3 KiB

1 year ago
  1. <!--index.wxml-->
  2. <view class="content position-relative">
  3. <view class="position-fixed bg-fff pb-2">
  4. <!-- <van-search value="{{ searchValue }}" placeholder="请输入搜索关键词" /> -->
  5. <van-search value="{{ searchValue }}" placeholder="请输入搜索关键词" use-action-slot bind:change="onChange" bind:search="onSearch">
  6. <view slot="action" bind:tap="onClick">搜索</view>
  7. </van-search>
  8. <!-- <view bindtap="zh">测试</view>
  9. <view>转化前:{{ces}}--转换后:{{ces1}}--解析后:{{ces2}}</view> -->
  10. <view class="Statistics">
  11. <view class="qrcode" bindtap="qrcodefun" wx:if="{{userInfo.type < 2}}">
  12. <view class="qrimg">
  13. <image src="../../static/images/qrcode.png" mode="widthFix"></image>
  14. </view>
  15. <view class="text">
  16. <view class="title">扫一扫</view>
  17. <view class="content">扫描二维码 查看绑定门锁</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="selectRoom" wx:if="{{userInfo.type < 2}}">
  22. <view class="picker" bindtap="bindroom">
  23. {{selectRoomName}}<view class="jt">▼</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view wx:for="devices_list" wx:key="deviceId">
  28. <view> {{item.name}}</view>
  29. </view>
  30. <view class="roomlist mt-43">
  31. <view class="cu-item mb-4" bindtap="godetail" data-item="{{item}}" wx:for="{{list}}" wx:for-index="{{index}}" wx:for-item="item">
  32. <view class="d-flex justify-content-between pa-2 b-line align-center">
  33. <view class="d-flex align-center w-100"><view class="iconfont icon-fangjianliebiao text-orange d-line {{item.deviceNum?'':'colorRed'}}"></view><view class="d-line ml-1 font-size-16 w-80 text-ellipsis">{{item.path}}</view></view>
  34. <!-- <view><van-button round type="info" size="mini" data-select="{{item}}" catchtap="bluetoothUnlockingMethods">蓝牙开锁</van-button></view> -->
  35. </view>
  36. <view class="content pa-2 d-flex justify-content-between">
  37. <view class="font-size-14 text-bold w-50 text-ellipsis">设备号:{{item.deviceNum?item.deviceNum:'无'}}</view>
  38. <view class="font-size-14 text-bold w-50 text-ellipsis">电量:<text class="{{item.battery<20?'color-red':item.battery<80?'color-orange':item.battery>80?'color-green':''}}">{{item.battery?item.battery:'无'}}</text></view>
  39. <view class="font-size-14 text-bold w-50 text-ellipsis">信号:<text class="{{item.rssi<15?'color-red':item.rssi<20?'color-orange':item.rssi>20?'color-green':''}}">{{item.rssi?item.rssi:'无'}}</text></view>
  40. <view class="font-size-14 colorhui w-50 text-ellipsis">联网:<text class="{{item.isOnline==0?'color-red':item.isOnline==1?'color-green':item.isOnline==2?'color-orange':''}}">{{item.isOnline===0?'离线':item.isOnline==1?'在线':item.isOnline==2?'异常':'无'}}</text></view>
  41. <!-- <view class="font-size-14 colorhui w-50 text-ellipsis" wx:if="item.count">入住人数:{{item.count}}</view> -->
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bgaddbackground" hidden="addlockRoom" bindtap="bindRoom"></view>
  46. <van-popup show="{{ show }}" bind:close="onClose" position="bottom" custom-style="height: 60%">
  47. <tree
  48. dataTree="{{dataList}}"
  49. selectKey="{{selectKey}}"
  50. bind:select="handleSelect"
  51. isSelectLastNode="true"
  52. isOpenAll="{{false}}"
  53. ></tree>
  54. </van-popup>
  55. </view>
  56. <!-- <loading></loading> -->