device.wxml 719 B

1
  1. <view><block wx:for="{{devices}}" wx:for-item="item" wx:for-index="__i0__" wx:key="code"><view class="device"><view class="col"><view data-event-opts="{{[['tap',[['changeStatus',['$0'],[[['devices','code',item.code]]]]]]]}}" class="switch" bindtap="__e"><switch checked="{{item.useStatus}}" 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>