wifi.wxml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <import src="../../../common/head.wxml" />
  2. <import src="../../../common/foot.wxml" />
  3. <view class="container page" data-weui-theme="{{theme}}">
  4. <template is="head" data="{{title: 'Wi-Fi'}}"/>
  5. <view class="page-body">
  6. <view class="page-body-info">
  7. <scroll-view class="device-list" scroll-y>
  8. <view class="item" wx:for="{{wifiList}}" wx:key="{{index}}">
  9. <view class="list">
  10. <text>{{ item.SSID }}</text>
  11. <span class="wifi-icon">
  12. <span class="wifi-1"></span>
  13. <span class="wifi-2 {{item.strength < 2 ? 'off' : ''}}"></span>
  14. <span class="wifi-3 {{item.strength < 3 ? 'off' : ''}}"></span>
  15. <span class="wifi-4 {{item.strength < 4 ? 'off' : ''}}"></span>
  16. <span class="lock" wx:if="{{item.secure}}"></span>
  17. </span>
  18. </view>
  19. </view>
  20. </scroll-view>
  21. </view>
  22. <view class="btn-area">
  23. <button type="primary" bindtap="startSearch">搜索Wi-Fi</button>
  24. <button bindtap="stopSearch">停止搜索</button>
  25. </view>
  26. </view>
  27. <template is="foot" />
  28. </view>