deviceTest.wxml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <view class="container">
  2. <tui-list-cell hover="{{false}}" size="28">
  3. <view class="tui-line-cell">
  4. <view class="tui-title">设备号</view>
  5. <input placeholder-class="phcolor" class="tui-input" name="name" placeholder="扫一扫显示设备号" maxlength="50" type="text" value="{{deviceId}}" bindconfirm="inputConfirm" catchinput="inputedit" data-name="deviceId"/>
  6. <tui-icon name="sweep" size="30" bindtap="scanCodeEvent"></tui-icon>
  7. <tui-button type="primary" size="mini" tui-button-class="tui-mbtm" bindtap="inputConfirm" data-val="{{deviceId}}" data-type="btn">连接</tui-button>
  8. </view>
  9. </tui-list-cell>
  10. <tui-list-cell hover="{{false}}" size="28">
  11. <view class="tui-line-cell">
  12. <view class="tui-title">连接状态</view>
  13. <view class="tui-msg">
  14. <!-- <tui-loadmore wx:if="{{isconnect}}" visible="{{true}}"></tui-loadmore> -->
  15. <view wx:if="{{isloading}}" class="tui-loadmore-class tui-loadmore-connect">
  16. <view class="tui-loading-1"></view>
  17. <view class="tui-loadmore-tips">正在连接</view>
  18. </view>
  19. <text wx:else>{{deviceState==1?"已连接":"未连接"}}</text>
  20. </view>
  21. <view class="tui-tag-small tui-danger" bindtap="closediscovery" wx:if="{{deviceState==1}}">断开</view>
  22. </view>
  23. </tui-list-cell>
  24. <view class="grid col-2">
  25. <view wx:for="{{gridNum}}">
  26. <view class="margin padding-xs radius shadow-warp test-list-item" bindtap="openGrate" data-index="{{item}}">
  27. <text class='item-name'>{{item+1}}号格子</text>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="padding-lr">
  32. <tui-button bind:click="oneKeyOpen" type="primary" tui-button-class="tui-mbtm">一键开盖</tui-button>
  33. </view>
  34. </view>