<view><block wx:for="{{devices}}" wx:for-item="item" wx:for-index="__i0__" wx:key="code"><view class="device"><view class="col"><view class="switch"><switch checked="{{true}}" color="#007AFE" data-event-opts="{{[['change',[['switchChange',['$event']]]]]}}" bindchange="__e"></switch></view><view class="list" data-code="{{item.code}}" data-event-opts="{{[['tap',[['showDetail',['$event']]]]]}}" bindtap="__e">查看 ></view></view><text class="title">{{item.name}}</text><view class="content"><text>{{"设备SN："+item.sn}}</text><text>{{"设备类型："+item.type}}</text></view></view></block></view>