search.wxml 1.1 KB

123456789101112131415161718
  1. <view class='main-wraper'>
  2. <navBar title='连接设备' bindback="back" bindhome="home" bindsearch="search2" background='#fff' back="{{true}}" iconTheme='block' ></navBar>
  3. </view>
  4. <view class="container">
  5. <scroll-view scroll-y style="width:690rpx;height:{{list_height}}rpx">
  6. <block wx:for="{{devicesList}}" wx:key="deviceId">
  7. <view class="list-item" id="{{item.deviceId}}" bindtap="Connect">
  8. <view style="display:flex;flex-direction:column;width:80%">
  9. <text style="font-size:medium;word-break:break-all">设备名称: {{item.localName}}</text>
  10. <text style="font-size:x-small;color:gray;word-break:break-all">设备ID: {{item.deviceId}}</text>
  11. <text style="font-size:x-small;color:gray;word-break:break-all">信号强度RSSI: {{item.RSSI}}</text>
  12. </view>
  13. <image style="width:36px;height:36px" mode="aspectFit" src="/subpagesTwo/images/zmdevice/bluetooth.png"></image>
  14. </view>
  15. </block>
  16. </scroll-view>
  17. <button type="primary" class="button" loading="{{searching}}" bindtap="Search">{{searching?"搜索中...":"搜索蓝牙设备"}}</button>
  18. </view>