<view class="item"><block wx:if="{{item.is_online==1}}"><view class="tag tag-on"></view></block><block wx:else><view class="tag tag-off"></view></block><view class="info"><text>{{"设备名称："+(item.device_name==""?"无":item.device_name)}}</text><block wx:if="{{item.is_online==1}}"><text class="state on">在线</text></block><block wx:else><text class="state off">离线</text></block></view><slot></slot></view>